vxlan vlan-based
Use vxlan vlan-based to enable VLAN-based VXLAN assignment.
Use undo vxlan vlan-based to disable VLAN-based VXLAN assignment.
Syntax
vxlan vlan-based
undo vxlan vlan-based
Default
VLAN-based VXLAN assignment is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
You can assign customer traffic to a VXLAN by using one of the following methods:
Ethernet service instance-to-VSI mapping—This method uses the frame match criterion of an Ethernet service instance to match a list of VLANs on a site-facing Layer 2 interface. The VTEP assigns customer traffic to a VXLAN by mapping the Ethernet service instance to a VSI.
VLAN-based VXLAN assignment—This method maps a VLAN to a VXLAN. When a VLAN is mapped to a VXLAN and VLAN-based VXLAN assignment is enabled, the device automatically performs the following operations:
Creates an Ethernet service instance that uses the VLAN ID as its instance ID on each interface in the VLAN.
Maps the Ethernet service instances to the VSI of the VXLAN.
On an interface, the frame match criterion of the Ethernet service instance is set as follows:
If the VLAN ID is the PVID of the interface, the Ethernet service instance matches untagged frames.
If the VLAN ID is not the PVID of the interface, the Ethernet service instance matches frames tagged with an outer VLAN ID that is same as that VLAN ID.
The previous methods are mutually exclusive. You can use only one of them.
Examples
# Enable VLAN-based VXLAN assignment.
<Sysname> system-view [Sysname] vxlan vlan-based