cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
355
Views
0
Helpful
2
Replies

Subnet filtering on OSPF

jealvarez
Level 1
Level 1

One of our modem servers (Lucent Max) is sending route information for 0.0.0.0/0 and 10.0.0.0/8 via OSPF. Our core router (Cisco 7507 w/IOS 12.2.7a) accepts them even though these are not on the OSPF network list. Is there a way to force the router to ignore these routes? Other routes from that modem

server are correct and should be acceptet. The 0.0.0.0/0 route seems to be advertised by default on the modem server (there is no option to turn it off). The 10.0.0.0/8 is real but is for a private subnet that should not go beyond the modem server.

1 Accepted Solution

Accepted Solutions

donewald
Level 6
Level 6

Try a distribution list (inbound) on the interface your modem server is connected to:

router(config)#access-list 1 deny 0.0.0.0 255.255.255.255

router(config)#access-list 1 deny 10.0.0.0 255.255.255.255

router(config)#access-list 1 permit any

router(config)#router ospf 1

7500-R4(config-router)#distribute-list 1 in

Hope this helps,

Don

View solution in original post

2 Replies 2

donewald
Level 6
Level 6

Try a distribution list (inbound) on the interface your modem server is connected to:

router(config)#access-list 1 deny 0.0.0.0 255.255.255.255

router(config)#access-list 1 deny 10.0.0.0 255.255.255.255

router(config)#access-list 1 permit any

router(config)#router ospf 1

7500-R4(config-router)#distribute-list 1 in

Hope this helps,

Don

Thanks. That worked very well. Wound up using 0.255.255.255 on the mask.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: