Hello, We need to filter a single route in the OSPF advertisements from a router to another. I tested distribute-list and it works fine, but we have the following problem:
Suppose we have following routes advertised via OSPF:
192.168.1.0/24
192.168.1.0/26
How can we filter only 192.168.1.0/24 and allow the advertisement of
192.168.1.0/26? The following configuration blocks both routes:
access list 10 deny 192.168.1.0 0.0.0.255 router ospf 20 distribute-list 10 in
We tested with
access list 10 deny 192.168.1.0 0.0.0.0 access list 10 deny 192.168.1.0
but the result is the same. Any help will be appreciated. Thank you.
Regards,
German