Discarding DHCPv6 requests that are delivered from VXLAN tunnels

About discarding DHCPv6 requests that are delivered from VXLAN tunnels

In a VXLAN network, the DHCPv6 relay agent feature can be configured on the VSI interface of a VTEP.

When the DHCPv6 relay agent receives a DHCPv6 request from an AC mapped to the VSI interface, the relay agent forwards this request to the DHCPv6 servers and broadcasts this request to other VTEPs. If those VTEPs also function as the DHCPv6 relay agents, each will forward the DHCPv6 request to the DHCPv6 servers they are connecting to. To prevent a DHCPv6 server from receiving the same DHCPv6 request from different VTEPs, you can configure this command on the VSI interface of the VTEPs that are not directly connecting to DHCPv6 clients.

Procedure

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface vsi-interface vsi-number

  3. Configure the DHCP relay agent to discard the DHCP requests that are delivered from VXLAN tunnels.

    ipv6 dhcp request-from-tunnel discard

    By default, the DHCPv6 relay agent can forward the DHCPv6 requests that are delivered from VXLAN tunnels.

    If you configure this command on a device that acts as both the distributed and centralized VXLAN IP gateways, make sure the gateways do not use the same VSI interface to provide the gateway services.