Configuring VLAN-based VXLAN assignment
Overview
VLAN-based VXLAN assignment enables the device to assign all traffic of a VLAN to a VXLAN. If you enable this feature and map a VLAN to a VXLAN, 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.
Configuration restrictions and guidelines
If you map a VLAN to a VXLAN, the VTEP cannot perform non-VXLAN Layer 2 forwarding in the VLAN. The VLAN interface of the VLAN cannot perform Layer 3 forwarding, either.
The Ethernet service instance creation or deletion time is affected by the number of VLANs mapped to a VXLAN and the number of trunk ports assigned to the VLANs. The larger the number, the longer the time. During AC creation or deletion, other operations are queued.
Configuration prerequisites
Use the vxlan command to create the VXLAN to which a VLAN is mapped.
Configuration procedure
To configure VLAN-based VXLAN assignment:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable VLAN-based VXLAN assignment. | vxlan vlan-based | By default, VLAN-based VXLAN assignment is disabled. |
3. Create a VLAN and enter VLAN view. | vlan vlan-id | By default, a system-defined VLAN exists. The VLAN is VLAN 1. Do not specify VLAN 1 for VLAN-based VXLAN assignment. |
4. Map the VLAN to a VXLAN. | vxlan vni vxlan-id | By default, a VLAN is not mapped to a VXLAN. |