ip rip route-filter

To filter the Routing Information Protocol (RIP) routes coming in or out of an interface, use the route-filter command. To remove filtering from an interface, use the no form of this command.

ip rip route filter {prefix-list list-name | route-map map-name} {in | out}

Syntax Description

prefix-list list-name

Associates a prefix list to filter RIP packets.

route-map map-name

Associates a route map to set the redistribution policy for RIP.

in

Filters incoming routes.

out

Filters outgoing routes.


Command Default

Route filtering is disabled.

Command Modes

Interface configuration mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

Use the ip rip route-filter command to filter incoming or outgoing routes on an interface.

This command does not require a license.


Note Make sure the LAN Base Services license is installed on the switch to enable Layer 3 interfaces.


Examples

This example shows how to use a route map to filter routes for a RIP interface:

switch(config)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# ip rip route-filter route-map InRipFilter in

Related Commands

Command
Description

route-map

Creates a route map.

prefix-list

Creates a prefix list.