Configuring interVRF route redistribution for RIP

Configure a redistribute entry to announce certain routes into the RIP domain, including static routes, direct routes, RIP, OSPF, IS-IS, or BGP. Use a route policy to control the redistribution of routes.

Before you begin

  • Enable RIP globally.

  • Configure a route policy.

  • Configure the VRFs.

Procedure

  1. Enter VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    router vrf WORD<1-16>

  2. Create the redistribution instance:

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

  3. Apply a route policy, if required:

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

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

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

  6. Ensure that the configuration is correct:

    show ip rip redistribute [vrf WORD<1-16>] [vrfids WORD<1-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<0-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#router vrf red
Switch:1(router-vrf)#ip rip redistribute ospf
Switch:1(router-vrf)#ip rip redistribute ospf route-map test1
Switch:1(router-vrf)#ip rip redistribute ospf enable
Switch:1(router-vrf)#exit
Switch:1(config)#ip rip apply redistribute ospf

Variable definitions

The following table defines parameters for the ip rip redistribute <bgp|isis|ospf|static|direct|rip> command.

Variable

Value

<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.

vrf-src WORD<0-16>

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

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.

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<0-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.