05-18-2022 09:56 PM
Hi all;
Suppose I receive routes with "10.149.42.0/24" prefix from adjacent router and I want to match exactly the "10.149.42.254" IP address, for filtering purpose. How can I match exactly this IP address using a prefix list?
Thanks
Solved! Go to Solution.
05-19-2022
03:11 AM
- last edited on
05-31-2022
04:31 AM
by
Translator
Hello
Note:- The example below will ONLY filter from that router and NOT the ospf D?B
Example:
ip prefix-list HOST deny 10.149.42.254/32
ip prefix-list HOST permit 0.0.0.0/0 le 32
router ospf x
distribute-list prefix HOST in
05-18-2022 10:09 PM
Can you clarify what kind of filtering purpose you are asking about? Is it filtering routing information about that host address or is it filtering traffic to or from that host address?
05-18-2022
10:58 PM
- last edited on
05-31-2022
04:32 AM
by
Translator
I want to use
distribute-list
in OSPF to filter 10.149.42.254 address, so preventing it to insert in the routing table.
05-18-2022 11:40 PM
Are you receiving a route advertisement for that specific IP ?
It sounds from your description as you are only receiving the /24 so you can't then stop a specific IP from that range being inserted in the routing table.
Can you clarify ?
Jon
05-19-2022 12:45 AM - edited 05-19-2022 03:14 AM
can you more elaborate ?
anyway this link for OSPF route filter
http://www.ccieordie.com/2-3-g-ospf-filtering
05-19-2022
03:11 AM
- last edited on
05-31-2022
04:31 AM
by
Translator
Hello
Note:- The example below will ONLY filter from that router and NOT the ospf D?B
Example:
ip prefix-list HOST deny 10.149.42.254/32
ip prefix-list HOST permit 0.0.0.0/0 le 32
router ospf x
distribute-list prefix HOST in
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide