Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Filter OSPF hosts

HI

Whe have ospf processes on ours routers

router ospf 1

log-adjacency-changes

area 0 authentication message-digest

network X.X.X.X X.X.X.X area 0

network Y.Y.Y.Y Y.Y.Y.Y area 0

distribute-list 80 in

access-list 80 permit Z.Z.Z.Z Z.Z.Z.Z

access-list 80 deny any log

and "distribut-lists" to filter some network.

We want to filter some "hosts" rather than networks

When we use "access-list 80 permit host Z.Z.Z.Z" the route does not appear

thank you very much for your help

2 REPLIES
Silver

Re: Filter OSPF hosts

Hi,

Are you saying that you dont want to accept routes from some ospf neighbours?

Or dont want to form ospf adjancencies with some neighbours?

Or are you asking that you dont want to allow some networks into the routing table?

If you could let us know.

HTH

LR

Hall of Fame Super Bronze

Re: Filter OSPF hosts

In order to filter that IP address, that IP address must be in the routing table.

You can't pick a network route entry and block just a portion of the network and allow the rest. The host or network entry must be in the RIB in order to match the ACL.

BTW, ACLs in OSPF are not recommended as OSPF will block the routes from entering the routing table but OSPF will still keep the LSA on its database (show ip os data to confirm). In other words, if you are connected to another device, they will receive your LSA information and the route(s) you just blocked will appear in their routing table.

__

Edison.

234
Views
0
Helpful
2
Replies