Configuring DvR route redistribution

About this task

Configure redistribution of direct or static routes into the DvR domain, on the Global Router or for a specific VRF instance.

Procedure

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

    enable

    configure terminal

    Optional: router vrf WORD<1-16>

  2. Configure route redistribution of direct routes:
    1. Configure route redistribution of direct routes on a VRF. The route type is internal.

      dvr redistribute direct [metric <0-65535>]|[route-map WORD<1-64>]

    2. Enable route redistribution.

      dvr redistribute direct enable

    3. Apply the configuration:

      dvr apply redistribute direct

    4. Optional: Disable route redistribution of direct routes.

      no dvr redistribute direct

  3. Configure route redistribution of static routes:
    1. Configure route redistribution of static routes on a VRF. The route type is external.

      dvr redistribute static [metric <0-65535>]|[route-map WORD<1-64>]

    2. Enable route redistribution.

      dvr redistribute static enable

    3. Apply the configuration.

      dvr apply redistribute static

    4. Optional: Disable route redistribution of static routes.

      no dvr redistribute static

  4. Verify the route redistribution configuration. You can also verify it on a specific VRF instance.

    show dvr redistribute [vrf WORD<1-16>]

Example

Configure route redistribution of direct and static routes on the Global Router. Ensure that you apply the configuration.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch:1(config)#dvr redistribute static
Switch:1(config)#dvr redistribute static metric 200
Switch:1(config)#dvr redistribute static enable
Switch:1(config)#dvr apply redistribute static
Switch:1(config)#dvr redistribute direct
Switch:1(config)#dvr redistribute direct metric 100
Switch:1(config)#dvr redistribute direct enable
Switch:1(config)#dvr apply redistribute direct

Verify configuration on the Global Router:

Switch:1(config)#show dvr redistribute 
===========================================================================
                    DVR Redistribute List - GlobalRouter 
===========================================================================

SOURCE MET MTYPE      ENABLE RPOLICY
---------------------------------------------------------------------------
STAT   200 External   TRUE  -
LOC    100 Internal   TRUE  -

Configure redistribution of direct and static routes on the specific VRF instance vrf1. Ensure that you apply the configuration.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch:1(config)#router vrf vrf1
Switch:1(router-vrf)#dvr redistribute static
Switch:1(router-vrf)#dvr redistribute static metric 20000
Switch:1(router-vrf)#dvr redistribute static enable
Switch:1(router-vrf)#exit
Switch:1(config)#dvr apply redistribute static

Switch:1(router-vrf)#dvr redistribute direct
Switch:1(router-vrf)#dvr redistribute direct metric 10000
Switch:1(router-vrf)#dvr redistribute direct enable
Switch:1(router-vrf)#exit
Switch:1(config)#dvr apply redistribute static

Verify configuration on vrf1:

Switch:1(router-vrf)#show dvr redistribute vrf vrf1
============================================================================
                  DVR Redistribute List - VRF vrf1 
============================================================================

SOURCE MET MTYPE      ENABLE RPOLICY
----------------------------------------------------------------------------
STAT   20000 External   TRUE  -
LOC    10000 Internal   TRUE  -

Variable definitions

Use the data in the following table to use the dvr redistribute direct or the dvr redistribute static commands.

Variable

Value

enable

Enables DvR route redistribution on the VRF instance.

Route redistribution is enabled by default.

metric <0-65535>

Specifies the DvR route redistribution metric.

route-map WORD<1-64>

Specifies the route policy for DvR route redistribution.

Use the data in the following table to use the show dvr redistribute command.

Variable

Value

vrf WORD<1-16>

Specifies the VRF name.