cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
854
Views
5
Helpful
5
Replies

Using Prefix-List for marching only one IP address

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

1 Accepted Solution

Accepted Solutions

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

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

5 Replies 5

Richard Burts
Hall of Fame
Hall of Fame

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?

HTH

Rick

I want to use

 distribute-list

in OSPF to filter 10.149.42.254 address, so preventing it to insert in the routing table.

 

 

 

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

can you more elaborate ?

anyway this link for OSPF route filter 

http://www.ccieordie.com/2-3-g-ospf-filtering

 

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

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul