Enable DvR on a Layer 2 VSN (VLAN)

Before you begin

  • Ensure that the VLAN on which to enable DvR exists and is associated with an I-SID.

About this task

On a Controller, DvR must be manually enabled at the Layer 2 VSN (VLAN) level.

Use this procedure to configure a gateway IPv4 address for a Layer 2 VSN (VLAN) subnet and then enable DvR on it. This address is pushed, along with other Layer 3 configuration information, from the Controllers to the Leaf nodes within the domain, so that the Leaf nodes can create a gateway IP service for each DvR-enabled Layer 2 VSN.
Note

Note

Optionally, you can now use a single IP address in the subnet for every Controller by configuring the DvR VLAN IP to be the same as the DvR GW IP.

Procedure

  1. Enter VLAN Interface Configuration mode:

    enable

    configure terminal

    interface vlan <1–4059>

  2. Configure a gateway IPv4 address for the VLAN.

    dvr gw-ipv4 {A.B.C.D}

    Important

    Important

    Ensure that you configure the same gateway IPv4 address on all Controllers in the domain that belong to a Layer 2 VSN (VLAN).

  3. Enable DvR.

    dvr enable

    By default, DvR is disabled.

Example

Enable DvR on the Global Router VLAN.

Switch:1>en
Switch:1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config-if)#vlan create 200 type port-mstprstp 0
Switch:1(config-if)#vlan i-sid 200 20200
Switch:1(config-if)#interface vlan 200
Switch:1(config-if)#dvr gw-ipv4 192.0.2.1
Switch:1(config-if)#dvr enable
Switch:1(config-if)#ip address 192.0.2.2 255.255.0.0

Enable DvR on a VLAN associated to a VRF:

Switch:1>en
Switch:1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config-if)#vlan create 400 type port-mstprstp 0
Switch:1(config-if)#vlan i-sid 400 20200
Switch:1(config-if)#interface vlan 400
Switch:1(config-if)#vrf vrf500
Switch:1(config-if)#dvr gw-ipv4 198.51.100.1
Switch:1(config-if)#dvr enable
Switch:1(config-if)#ip address 198.51.100.2 255.255.0.0

Variable definitions

Use the data in the following table to use the dvr gw-ipv4 command.

Variable

Value

{A.B.C.D}

Specifies the gateway IPv4 address for the VLAN.