December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to apply a filter so that OSPF populates only certain routes into the routing table.
You can filter inbound routes to prevent the router from putting them in its routing table:
Router5#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router5(config)#access-list1denyRouter5(config)#172.20.10.0access-list1permit anyRouter5(config)#router ospfRouter5(config-router)#87distribute-list1inRouter5(config-router)#Ethernet0/0exitRouter5(config)#endRouter5#
The OSPF algorithm requires that every router in an area receives all of the LSAs for that area, so you cannot filter outbound routing information in the same way:
Router5#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router5(config)#router ospfRouter5(config-router)#87distribute-list1out% Interface not allowed with OUT for OSPF Router5(config-router)#Ethernet0/0exitRouter5(config)#endRouter5#
Filtering outbound LSAs is possible only if you filter out all of the LSAs. There are two ways to do this. For point-to-multipoint media, you can filter LSAs by going to a particular neighbor:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#router ospfRouter1(config-router)#87neighbor192.168.1.3database-filter all outRouter1(config-router)#exitRouter1(config)#endRouter1#
And on broadcast, nonbroadcast, and point-to-point media, you can prevent the router ...