Community discussions

MikroTik App
 
silvanogai
just joined
Topic Author
Posts: 2
Joined: Fri Aug 10, 2012 7:30 pm

ospf-in route-tag

Fri Jan 31, 2014 7:07 pm

RB750GL running RouterOS 6.9

I receive on router "one" an ospf external route type1 with a route tag of 0x3 from another router (router "three").

[admin@one] > rout ospf lsa prin det

........


instance=default area=external type=as-external id=0.0.0.0 originator=0.0.0.3
sequence-number=0x80000002 age=90 checksum=0x3EFD options="E" body=
netmask=0.0.0.0
forwarding-address=10.0.2.3
metric=1
route-tag=0x3
type1

I am trying to pick it up with an ospf-in filter

[admin@one] > rout filter print
Flags: X - disabled
0 chain=ospf-in protocol=ospf route-tag=3 invert-match=no action=log set-routing-mark="pppoe"
set-bgp-prepend-path=""

but it does not work, nothing in the log,

[admin@one] > rou ospf rout print
# DST-ADDRESS STATE COST GATEWAY INTERFACE
0 0.0.0.0/0 ext-1 11 10.0.0.5 ether3-slave-local
1 10.0.0.0/24 intra-area 10 0.0.0.0 ether3-slave-local
2 10.0.1.0/24 intra-area 10 0.0.0.0 ether4-slave-local
3 10.0.2.0/24 intra-area 20 10.0.0.5 ether3-slave-local
10.0.1.5 ether4-slave-local
4 192.168.88.0/24 intra-area 20 10.0.0.5 ether3-slave-local

[admin@one] > ip rou print det
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 ADo dst-address=0.0.0.0/0 gateway=10.0.0.5 gateway-status=10.0.0.5 reachable via ether3-slave-local
distance=110 scope=20 target-scope=10 ospf-metric=11 ospf-type=external-type-1

1 ADC dst-address=10.0.0.0/24 pref-src=10.0.0.3 gateway=ether3-slave-local
gateway-status=ether3-slave-local reachable distance=0 scope=10

2 ADC dst-address=10.0.1.0/24 pref-src=10.0.1.3 gateway=ether4-slave-local
gateway-status=ether4-slave-local reachable distance=0 scope=10

3 ADo dst-address=10.0.2.0/24 gateway=10.0.1.5,10.0.0.5
gateway-status=10.0.1.5 reachable via ether4-slave-local,10.0.0.5 reachable via ether3-slave-
local
distance=110 scope=20 target-scope=10 ospf-metric=20 ospf-type=intra-area

4 ADo dst-address=192.168.88.0/24 gateway=10.0.0.5
gateway-status=10.0.0.5 reachable via ether3-slave-local distance=110 scope=20 target-scope=10
ospf-metric=20 ospf-type=intra-area

If i set inverse-match=yes all routes get tagged as pppoe

What am I doing wrong?

Thanks

-- Silvano

Who is online

Users browsing this forum: manish and 17 guests