Configuring a VXLAN Tunnel

VXLAN uses MAC-in-UDP encapsulation to extend Layer 2 networks, allowing a large number of tenant accesses to virtual networks.

Context

To ensure VXLAN packet forwarding, VXLAN tunnels must be configured on VXLAN gateways.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bridge-domain bd-id

    The BD view is displayed.

    bd-id specified here must be the same as that of the BD created in Step 2 in Configuring a Service Access Point.

  3. Run vxlan vni vni-id

    A VNI is created and mapped to the BD.

    When a VXLAN network and a VPLS network intersect, run the vxlan vni vni-id split-horizon-mode command on the edge devices at the intersection of the two networks to create a VNI and bind it to a BD, and configure split horizon for packet forwarding.

  4. Run quit

    Return to the system view.

  5. Run interface nve nve-number
  6. Run source ip-address

    An IP address is configured for the source VTEP.

    Either a physical interface's IP address or loopback interface address can be specified for a source VTEP. Using the loopback interface address as the source VTEP's IP address is recommended.

  7. Run vni vni-id head-end peer-list ip-address &<1-10>

    An ingress replication list is configured.

    After the ingress of a VXLAN tunnel receives broadcast, unknown unicast, and multicast (BUM) packets, it replicates these packets and sends a copy to each VTEP in the ingress replication list. The ingress replication list is a collection of remote VTEP IP addresses to which the ingress of a VXLAN tunnel should send replicated BUM packets.

    BUM packet forwarding is implemented only using ingress replication. To establish a VXLAN tunnel between a Huawei device and a non-Huawei device, ensure that the non-Huawei device also has ingress replication configured. Otherwise, communication fails.

  8. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >