distribute-list

Use this command to filter networks received and to suppress networks from being advertised in RIP updates.

Syntax

distribute-list access-list-number {in vlan vlan-id | out vlan vlan-id}
no distribute-list access-list-number {in vlan vlan-id | out vlan vlan-id}

Parameters

access-list-number Specifies the number of the IP access list. This list defines which networks are to be advertised and which are to be suppressed in routing updates.
in vlan vlan-id | out vlan vlan-id Applies the access list to incoming or outgoing routing updates on the specified VLAN. This VLAN must be configured for IP routing.

Defaults

None.

Mode

RIP configuration command mode.

Usage

The “no” form of this command removes the filter.

Example

This example shows how to suppress the network 192.5.34.0 from being advertised in outgoing routing updates on VLAN 5:

System(rw-config)->access-list 1 deny 192.5.34.0 0.0.0.255
System(rw-config)->router rip
System(rw-config-rip)->distribute-list 1 out vlan 5