Configuring route redistribution to RIP

Configure a redistribute entry to announce certain routes into the RIP domain, including static routes, direct routes, RIP, Open Shortest Path First (OSPF), IS-IS, or Border Gateway Protocol (BGP). Optionally, use a route policy to control the redistribution of routes.

Before you begin

  • Enable RIP globally.

  • Configure a route policy.

Procedure

  1. Enter RIP Router Configuration mode:

    enable

    configure terminal

    router rip

  2. Create the redistribution instance:

    redistribute <bgp|direct|isis|ospf|rip|static> [vrf-src WORD<1-16>]

  3. Apply a route policy, if required:

    redistribute <bgp|direct|isis|ospf|rip|static> route-map WORD<0-64> [vrf-src WORD<1-16>]

  4. Configure other parameters.
  5. Enable the redistribution:

    redistribute <bgp|direct|isis|ospf|rip|static> enable [vrf-src WORD<1-16>]

  6. Ensure that the configuration is correct:

    show ip rip redistribute [vrf WORD<1-16>] [vrfids WORD<0-512>]

  7. Exit to Global Configuration mode:

    exit

  8. Apply the redistribution:

    ip rip apply redistribute <bgp|direct|isis|ospf|rip|static> [vrf WORD<1-16>] [vrf-src WORD<1-16>]

Example

Create the redistribution instance, apply a route policy, enable the redistribution, and apply the redistribution.

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#router rip
Switch:1(config-rip)#redistribute rip
Switch:1(config-rip)#redistribute rip route-map test1
Switch:1(config-rip)#redistribute rip enable
Switch:1(config-rip)#exit
Switch:1(config)#ip rip apply redistribute rip

Variable definitions

The following table defines parameters for the redistribute command.

Variable

Value

metric <0-65535>

Configures the metric to apply to redistributed routes.

route-map WORD<0-64>

Configures the route policy to apply to redistributed routes.

[vrf-src WORD<1-16>]

Specifies the optional source VRF instance. You can use this variable with the other command variables.

WORD<0–32>

Specifies the type of routes to redistribute (the protocol source). Valid options are bgp, isis, direct, rip, ospf, or static.

The following table defines parameters for the show ip rip redistribute command.

Variable

Value

vrf WORD<1-16>

Specifies the VRF instance.

vrfids WORD<1-512>

Specifies a range of VRF IDs.

The following table defines parameters for the ip rip apply redistribute command.

Variable

Value

vrf WORD<1-16>

Specifies the VRF instance.

vrf-src WORD<1-16>

Specifies the source VRF instance. You do not need to configure this parameter for redistribution within the same VRF.

<bgp|direct|isis|ospf|rip|static>

Specifies the type of routes to redistribute (the protocol source). Valid options are bgp, isis, direct, rip, ospf, or static.