Configuring basic DHCP snooping features in a VXLAN network

About basic DHCP snooping features in a VXLAN network

In a VXLAN network, you can configure the following interfaces as DHCP snooping trusted interfaces:

When the VTEP with DHCP snooping configured receives a DHCP request, the VTEP forwards this request through the trusted ACs or VXLAN tunnel interfaces.

Restrictions and guidelines

If the DHCP server is in the local site, configure the AC that connects to the DHCP server as trusted. If the DHCP server is in a remote site, configure the VXLAN tunnel interface as trusted.

Configuring basic DHCP snooping features in a VXLAN network (DHCP server at the local site)

  1. Enter system view.

    system-view

  2. Enable DHCP snooping globally.

    dhcp snooping enable

  3. By default, DHCP snooping is disabled globally.

  4. Enter interface view.

    interface interface-type interface-number

  5. Enter Ethernet service instance view.

    service-instance instance-id

  6. Configure the AC as the DHCP snooping trusted interface.

    dhcp snooping trust

    By default, all ports are untrusted after DHCP snooping is enabled.

  7. (Optional.) Enable recording of client information in DHCP snooping entries on the ACs mapped to the VSI and VXLAN tunnel interfaces assigned to the VSI.

    1. Exit to interface view.

      quit

    2. Exit to the system view.

      quit

    3. Enter VSI view.

      vsi vsi-name

    4. Enable recording of client information in DHCP snooping entries on the ACs mapped to the VSI and VXLAN tunnel interfaces assigned to the VSI.

      dhcp snooping binding record

      By default, the recording of DHCP snooping entries is disabled.

Configuring basic DHCP snooping features in a VXLAN network (DHCP server at a remote site)

  1. Enter system view.

    system-view

  2. Enable DHCP snooping globally.

    dhcp snooping enable

  3. By default, DHCP snooping is disabled globally.

  4. Enter VSI view.

    vsi vsi-name

  5. Configure the VXLAN tunnel interfaces as the DHCP snooping trusted interface.

    dhcp snooping trust tunnel

    By default, all ports are untrusted after DHCP snooping is enabled.

    This command sets all VXLAN tunnel interfaces in the VSI as DHCP snooping trusted interfaces.

  6. (Optional.) Enable recording of client information in DHCP snooping entries on the ACs mapped to the VSI and VXLAN tunnel interfaces assigned to the VSI.

    dhcp snooping binding record

    By default, the recording of DHCP snooping entries is disabled.