22
Syntax
Release 2416:
tunnel bfd enable
undo tunnel bfd enable
Release 2418P01 and later versions:
tunnel bfd enable destination-mac mac-address
undo tunnel bfd enable
Default
BFD is disabled on a VXLAN tunnel interface.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
mac-address
: Specifies a destination MAC address for BFD control packets. The MAC address can
be a remote VTEP address or a multicast address.
Usage guidelines
Enable BFD on a VXLAN tunnel interface for link connectivity detection. For BFD sessions to come
up, you must also reserve a VXLAN by using the
reserved vxlan
command.
For Release 2416, the VTEPs send BFD multihop control packets to detect the physical link
connectivity between VTEPs. When BFD detects link failure, the VTEPs set their tunnel interfaces to
the down state, and stop using the tunnel to forward packets.
For Release 2418P01 and later versions, the VTEPs send BFD single-hop control packets to detect
the connectivity of VXLAN tunnels. The VTEPs periodically send 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 five 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.
Examples
# (For Release 2416.) Enable BFD on the VXLAN tunnel interface Tunnel 9.
<Sysname> system-view
[Sysname] interface tunnel 9 mode vxlan
[Sysname-Tunnel9] tunnel bfd enable
# (For Release 2418P01 and later versions.) Enable BFD on the VXLAN tunnel interface Tunnel 9,
and specify 1-1-1 as the destination MAC address for BFD control packets.
<Sysname> system-view
[Sysname] interface tunnel 9 mode vxlan
[Sysname-Tunnel9] tunnel bfd enable destination-mac 1-1-1
tunnel global source-address
Use
tunnel global source-address
to specify a global source address for VXLAN tunnels.
Use
undo tunnel global source-address
to restore the default.
Syntax
tunnel global source-address ipv4-address