When configuring VXLAN on a device, you need to select a deployment mode for the VXLAN access service on the downlink interface.
Based on VLAN: You can associate one or more VLANs with a BD to add users in these VLANs to the BD. This VLAN-based mode implements larger-granularity control, but is easy to configure. It applies to VXLAN deployment on a live network.
Based on encapsulation mode: The device sends packets of different encapsulation modes to different Layer 2 sub-interfaces based on the VLAN tags contained in the packets. You can bind a Layer 2 sub-interface to a BD to add specified users to the BD. This mode implements refined and flexible control but requires more complex configuration. It applies to VXLAN deployment on a new network.
When NAC authentication is configured on the access-side main interface, VXLAN Layer 2 sub-interfaces cannot be created on the main interface to connect to the VXLAN.
The system view is displayed.
The super VXLAN resource mode is set.
Only the S6730-S, S6730S-S, S5732-H, S5731-S, S5731S-S, S5731S-H, S6730-H, S6730S-H, S5731-H, S5730-HI, S6720-HI, and S5720-HI support this command.
By default, the preceding devices support 4095 BDs. These devices support 16000 BDs after the super VXLAN resource mode is set.
After setting the super VXLAN resource mode, save the configuration and then restart the device to make the configuration take effect.
When the super VXLAN resource mode is configured, the forwarding performance of some services may degrade, such as the IP multicast, VPLS, VLAN mapping, Layer 3 traffic forwarding of sub-interfaces, and VLAN stacking services.
A BD is created and the BD view is displayed.
By default, no BD is created.
The description is configured for the BD.
By default, no description is configured for a BD.
Exit from the BD view and return to the system view.
Only the S6720-EI and S6720S-EII switches support this configuration.
Run interface interface-type interface-number
The interface view is displayed.
The interface is specified as a VXLAN access-side interface.
By default, when an interface is not specified as a VXLAN access-side interface, the interface cannot forward common IP packets that carry VXLAN packets and have the destination UDP port number 4789 to the VXLAN network.
Return to the system view.
A VLAN is created and the VLAN view is displayed.
Exit from the VLAN view and return to the system view.
The view of an existing BD is displayed.
A VLAN is associated with the BD so that data packets can be forwarded in the BD.
By default, a VLAN is not associated with a BD.
One VLAN can be associated with only one BD, but one BD can be associated with multiple VLANs.
After a global VLAN is associated with a BD, you need to add corresponding interfaces to the VLAN.
If a VLAN is configured as a voice VLAN on the S6720-EI and S6720S-EI, the VLAN cannot be associated with a BD.
Run interface interface-type interface-number
The view of the Ethernet interface to be created as a Layer 2 sub-interface is displayed.
Run port link-type { trunk | hybrid }
The Ethernet interface is configured as the trunk or hybrid interface.
Return to the system view.
Run interface interface-type interface-number.subnum mode l2
A Layer 2 sub-interface is created, and the sub-interface view is displayed.
Run rewrite pop { single | double | none }
The device is configured to remove VLAN tags from packets received by the Layer 2 sub-interface.
By default, the device removes two VLAN tags from packets received by Layer 2 sub-interfaces that use QinQ encapsulation, removes one VLAN tag from packets received by Layer 2 sub-interfaces that use Dot1q encapsulation.
Run encapsulation { dot1q vid low-pe-vid [ to high-pe-vid ] | default | untag | qinq vid low-vlan-vid [ to high-vlan-vid ] ce-vid low-ce-vid [ to high-ce-vid ] }
An encapsulation mode is configured for a Layer 2 sub-interface to specify the type of packets that can pass through the sub-interface.
By default, the encapsulation mode of packets allowed to pass a Layer 2 sub-interface is not configured.
When configuring an encapsulation mode on a Layer 2 sub-interface, pay attention to the following points:
The VLAN ID in dot1q mode or outer VLAN ID in qinq mode cannot be the same as the allowed VLAN of the corresponding main interface or the global VLAN.
On the same main interface, the VLAN ID in dot1q mode and the outer VLAN ID in qinq mode must be different.
After NAC authentication is configured on the main interface, the traffic encapsulation type on a Layer 2 sub-interface cannot be set to default.
When the encapsulation mode of a Layer 2 sub-interface is default, the corresponding main interface cannot be added to any VLAN, including VLAN 1.
Before the encapsulation mode of a Layer 2 sub-interface is set to default, the main interface has only one sub-interface.
After the encapsulation mode of a Layer 2 sub-interface is set to default, no other sub-interface can be created on the main interface.
When the encapsulation mode of a Layer 2 sub-interface is set to untag, the corresponding main interface cannot be added to VLAN 1, and other sub-interfaces of the main interface cannot be set to untag.
You can configure only one encapsulation mode for each Layer 2 sub-interface. If an encapsulation mode has been configured for a Layer 2 sub-interface, run the undo encapsulation command to delete the original mode before you configure another mode.
A specified Layer 2 sub-interface is associated with a BD so that data packets can be forwarded in the BD.
By default, a Layer 2 sub-interface is not associated with a BD.