prefix-list (RIP)

Applies a pre-configured prefix list to permit or deny RIP routes globally.
Syntax
prefix-list name { in | out }
no prefix-list name { in | out }
ip rip prefix-list name { in | out }
no ip rip prefix-list name { in | out }
Parameters
name
Specifies the pre-configured prefix list to be applied.
in
Applies the specified prefix list to routes the device learns from its neighbors.
out
Applies the specified prefix list to routes the device advertises to its neighbors.
Modes

RIP router configuration mode

Usage Guidelines

The no form of the command removes the prefix filter.

Prefix lists must be configured with the ip prefix-list command before they are applied.

The ip rip prefix-list command can be used to apply a prefix list at the interface level.

Examples

The following command globally applies the prefix list named list1 to routes that the RIP router learns from its neighbors.

device# configure terminal
device(config)# router rip
device(config-rip-router)# prefix-list list1 in

The following command applies the prefix list named test1 to RIP routes advertised on Ethernet interface 1/1/2.

device# configure terminal
device(config)# interface ethernet 1/1/2
device(config-if-e10000-1/1/2)# ip rip prefix-list test1 out