Name

distribute-list out — router

Synopsis

distribute-list access-list out [interface | routing-process]
no distribute-list access-list out [interface | routing-process]

Configures

A filter list to be applied to outbound routing updates

Default

None

Description

This command applies the given access list to outbound routing updates. The access list must be a standard IP access list; it defines which networks will be denied or permitted. The interface name applies the list to routing updates going out a specific interface. (This does not apply to OSPF.) The routing-process applies the access list to routes going to another routing process. The connected and static keywords may be used to specify a routing process.

Example

route rip
  network 10.0.0.0
  distribute-list 1 out
!
! 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

Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.