ip rip prefix-list

Applies a pre-configured prefix-list to a RIP interface.
Syntax
ip rip prefix-list name { in | out }
no ip rip prefix-list name { in | out }
Command Default

By default, all routes are learned from and advertised to RIP neighbors.

Parameters
name
Designates the RIP prefix list to be applied.
in
Applies the designated prefix list as a filter to incoming routes; that, is to routes learned from RIP neighbors.
out
Applies the designated prefix list as a filter to outgoing routes; that, is to routes advertised to RIP neighbors.
Modes

Interface configuration mode

Usage Guidelines

The no form of the command removes the prefix list from the interface.

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

Prefix lists can be applied globally with the prefix-list command.

Examples

The following example applies the prefix list named list2 to RIP routes learned on Ethernet interface 1/1/2 and a different prefix list, list 3, to RIP routes advertised on the same interface.

device# configure terminal
device(config)# interface ethernet 1/1/2
device(config-if-e1000-1/1/2)# ip rip prefix-list list2 in
device(config-if-e1000-1/1/2)# ip rip prefix-list list3 out