distribute-list

With the distribute-list command you can control what kind of updates go into other routing tables. What is injected into the routing table and what does stay just there waiting.

Here is a short example. If you don’t want network 192.168.5.0/24 to be distributed into rip, then add the access-list and the distribute-list command. Here is the example:

router rip
redistribute ospf 1
network 192.168.4.0
default-metric 4
distribute-list 10 out Ethernet0
!
ip http server
ip classless
!
!
access-list 10 deny 192.168.5.0 0.0.0.255
access-list 10 permit any any

Leave a Reply