31
[Sysname] vxlan vlan-based
vxlan vni
Use vxlan vni to map a VLAN to a VXLAN.
Use
undo vxlan vni to remove the VXLAN mapping for a VLAN.
Syntax
vxlan vni vxlan-id
undo vxlan vni
Default
A VLAN is not mapped to a VXLAN.
Views
VLAN view
Predefined user roles
network-admin
Parameters
vxlan-id: Specifies a VXLAN ID in the range of 0 to 16777215.
Usage guidelines
Before you map VLANs to VXLANs, enable VLAN-based VXLAN assignment by using the vxlan
vlan-based
command.
You cannot map VLAN 1 to any VXLAN.
Do not map a VLAN to the L3 VXLAN ID of EVPN.
If you map a VLAN to a nonexistent VXLAN, the configuration takes effect after the VXLAN is
created.
Examples
# Map VLAN 10 to VXLAN 100.
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] vxlan vni 100
Related commands
vxlan vlan-based
xconnect vsi
Use xconnect vsi to map an AC to a VSI.
Use
undo xconnect vsi to restore the default.
Syntax
xconnect vsi vsi-name [ access-mode vlan ] [ track
track-entry-number&<1-3>
]
undo xconnect vsi