
25
undo tunnel
{
tunnel-number
|
all
}
Default
A VXLAN does not contain VXLAN tunnels.
Views
VXLAN view
Predefined user roles
network-admin
Parameters
tunnel-numb
er: Specifies a tunnel interface number. The tunnel must be an existing VXLAN
tunnel.
backup-tunnel
tunnel-number
: Specifies a backup tunnel by its tunnel interface number. The
tunnel must be an existing VXLAN tunnel.
all
: Specifies all VXLAN tunnels.
Usage guidelines
This command assigns a VXLAN tunnel to a VXLAN to provide Layer 2 connectivity for the VXLAN
between two sites. In unicast mode, the system floods unknown unicast, multicast, and broadcast
traffic to each tunnel in the VXLAN.
You can assign multiple VXLAN tunnels to a VXLAN, and configure a VXLAN tunnel to trunk multiple
VXLANs.
To assign a pair of primary and backup VXLAN tunnels to the VXLAN, specify the
backup-tunnel
tunnel-number
option. When the primary VXLAN tunnel is operating correctly, the backup
VXLAN tunnel does not forward traffic. When the primary VXLAN tunnel goes down, traffic is
switched to the backup VXLAN tunnel.
If you assign VXLAN tunnels to a VXLAN one by one, you cannot remove all the VXLAN tunnels by
using the
undo tunnel all
command.
If you assign all VXLAN tunnels to a VXLAN by using the
tunnel all
command, you cannot
remove the VXLAN tunnels one by one. You can only use the
undo tunnel all
command to
remove all the VXLAN tunnels.
As a best practice, use the
tunnel all
command only when batch VXLAN tunnel assignment is
necessary.
Examples
# Assign VXLAN tunnels 1 and 2 to VXLAN 10000.
<Sysname> system-view
[Sysname] vsi vpna
[Sysname-vsi-vpna] vxlan 10000
[Sysname-vsi-vpna-vxlan-10000] tunnel 1
[Sysname-vsi-vpna-vxlan-10000] tunnel 2
Related commands
display vxlan tunnel
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.