ip rip prefix-list
By default, all routes are learned from and advertised to RIP neighbors.
Interface configuration mode
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.
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