redistribute (RIP)

Configures the device to redistribute connected routes, learned static routes, OSPF routes, or BGP4 routes through RIP. The RIP router can then advertise these routes to RIP neighbors.
Syntax
redistribute { connected | bgp | ospf | static [ metric value | route-map name ] }
no redistribute { connected | bgp | ospf | static [ metric value | route-map name ] }
Command Default

By default, redistribution of other routes is disabled. Once redistribution of a particular type of route is enabled, the default action is to permit redistribution, even with redistribution filters applied to the virtual routing interface.

Parameters
connected
Redistributes connected routes.
bgp
Redistributes BGP routes.
ospf
Redistributes OSPF routes.
static
Redistributes IP static routes.
metric
Sets a RIP route metric to the value specified.
value
Specifies the RIP route metric as a value from 1 through 15.
route-map
Applies the specified route map to routes designated for redistribution.
name
Specifies the route-map to be applied.
Modes

RIP router configuration mode

Usage Guidelines

The no form of the command removes redistribution actions specified in the command.

To control redistribution tightly, apply a filter to deny all routes and give it the highest ID. Then apply filters to allow specific routes.

RIP redistribution filters apply to all interfaces. Use route maps to define where to deny or permit redistribution. Refer to the route-map command for information on configuring route maps for RIP.

Examples

The following example redistributes connected routes and adds 10 to the metric for each route.

device# configure terminal
device(config)# router rip
device(config-rip-router)# redistribute connected metric 10

The following example discontinues redistribution and the added metric applied in the previous example.

device# configure terminal
device(config)# router rip
device(config-rip-router)# no redistribute connected metric 10

The following example redistributes all connected route types based on the specifics of the route map named routemap1.

device# configure terminal
device(config)# router rip
device(config-rip-router)# redistribute connected route-map routemap1