distribute-list in — router
interface] no distribute-list
An access list to filter incoming routing updates
This command allows you to apply an access list to incoming route updates to a routing protocol. If no interface is specified, the access list is applied to all incoming route updates. If an interface is specified, the access list is applied only to route updates received on that interface. The access list should be a standard access list.
The following distribute list applies access list 1 to incoming routes:
route rip network 10.0.0.0 distribute-list 1 in ! ! Deny network 10.1.1.0 access-list 1 deny 10.1.1.0 ! Permit everything else access-list 1 permit 0.0.0.0 255.255.255.255