
11
Step Command Remarks
5. Specify a source IP
address or source
interface for the
tunnel.
source { ipv4-address |
interface-type
interface-number }
By default, no source IP address or source
interface is specified for a tunnel.
This step specifies the source IP address in the
outer IP header of tunneled VXLAN packets. If an
interface is specified, its primary IP address is
used.
For a multicast-mode VXLAN, the source IP
address cannot be a loopback address, and the
source interface cannot be a loopback interface.
6. Specify a destination
IP address for the
tunnel. destination ipv4-address
By default, no destination IP address is specified
for a tunnel.
Specify the remote VTEP's IP address. This IP
address will be the destination IP address in the
outer IP header of tunneled VXLAN packets.
As a best practice, do not configure multiple
VXLAN tunnels to use the same source and
destination IP addresses.
7. (Optional.) Enable
BFD on the tunnel. tunnel bfd enable
destination-mac
mac-address
By default, BFD is disabled on a tunnel.
Enable BFD on both ends of a VXLAN tunnel for
quick link connectivity detection. The VTEPs
periodically send BFD single-hop control packets
to each other through the VXLAN tunnel. A VTEP
sets the tunnel state to Defect if it has not received
control packets from the remote end for 5
seconds. In this situation, the tunnel interface state
is still Up. The tunnel state will change from Defect
to Up if the VTEP can receive BFD control packets
again.
Assigning VXLAN tunnels to a VXLAN
To provide Layer 2 connectivity for a VXLAN between two sites, you must assign the VXLAN tunnel
between the sites to the VXLAN.
You can assign multiple VXLAN tunnels to a VXLAN, and configure a VXLAN tunnel to trunk multiple
VXLANs. For a unicast-mode VXLAN, the system floods unknown unicast, multicast, and broadcast
traffic to each tunnel associated with the VXLAN.
To assign VXLAN tunnels to a VXLAN:
Step Command Remarks
1. Enter system view. system-view N/A
2. Enter VSI view. vsi vsi-name N/A
3. Enter VXLAN view. vxlan vxlan-id N/A
4. Assign VXLAN tunnels to
the VXLAN. tunnel { tunnel-number | all }
By default, a VXLAN does not
contain any VXLAN tunnels.
For full Layer 2 connectivity in the
VXLAN, make sure the VXLAN
contains the VXLAN tunnel
between each pair of sites in the
VXLAN.