Question

S-Series OSPF Router Filtering


Userlevel 1
Hi there,

I’m trying to filter which OSPF routes are imported from a specific neighbor on an S-Series.
The only way i can think of doing this is to restrict the route map to the specific interface the neighbor is connected to.
I don't want the route map to apply globally to the OSPF process, only this specific neighbor.

I have set up the following:

!
ip access-list standard Guest_OSPF
permit 10.80.8.0 0.0.3.255
permit 10.159.28.0 0.0.1.255
permit 10.20.0.0 0.0.255.255
exit
!


!
route-map filter Guest_OSPF permit 10
match interface vlan.0.2002
match ip address Guest_OSPF
exit
!

!
router ospf 1
distribute-list route-map Guest_OSPF in
!

I want to allow the following subnets to be learned, and everything else ignored:
10.80.8.0/22
10.159.28.0/23
10.20.0.0/16

I’m getting some strange behavior, for instance 10.20.193.0/28 is being advertised but will only appear in the routing table if I remove the route-map from the OSPF process.

Am i approaching this the right way?

Thanks,
Mark.

0 replies

Be the first to reply!

Reply