redistribute (RIP)

To redistribute routes from another routing domain into the Routing Information Protocol (RIP), use the redistribute command. To restore the system to its default condition in which the software does not redistribute routes, use the no form of this command.

redistribute {bgp id | direct | eigrp id | ospf id | static} route-map map-name

Syntax Description


Redistributes routes from the Border Gateway Protocol (BGP).


Redistributes routes from directly connected routes only.


Redistributes routes from the Enhanced Interior Gateway Routing Protocol (EIGRP).


Redistributes routes from the Open Shortest Path First (OSPF) protocol.


Redistributes routes from IP static routes.


For the bgp keyword, an autonomous system number. The range for 2-byte numbers is from 1 to 65535. The range for 4-byte numbers is from 1.0 to 65535.65535.

For the eigrp keyword, an EIGRP instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.

For the ospf keyword, an OSPF instance name from which routes are to be redistributed. The value takes the form of a string. A decimal number can be entered, but it is stored internally as a string.

route-map map-name

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

Command Default

Route redistribution is disabled.

Command Modes

Router address-family configuration mode

Command History



This command was introduced.

Usage Guidelines

Cisco NX-OS filters redistributed routing information using a route map. You can configure the route map to set the RIP metric used for redistributed routes. If you do not set the RIP metric with a route map, Cisco NX-OS determines the metric based on the redistributed protocol or by the default-metric command. If Cisco NX-OS cannot determine a valid metric, then it does not redistribute the routes.


This example shows how to redistribute BGP routes into a RIP process:

switch(config)# router rip Enterprise
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# redistribute bgp 64496

Related Commands



Enters address-family configuration mode.

default-information originate

Generates a default route for routes redistributed into RIP.


Sets default metric values for routes redistributed from other protocols into RIP.

show ip rip

Displays a summary of RIP information for all RIP instances.