Take the L2VE interface as Attachment Circuit (AC) interface when binding a VSI to the L2VE interface.
Procedure
- Configure a single VLAN for an L2VE sub-interface and bind the L2VE sub-interface to a VSI.
- Run system-view
The system view is displayed.
- Run interface virtual-ethernet interface-number.subinterface-number
The L2VE sub-interface view is displayed.
- Run vlan-type dot1q vlan-id
The VLAN ID of the L2VE sub-interface is configured.
- Run l2 binding vsi vsi-name
The L2VE interface is bound to a VSI.
- Run commit
The configuration is committed.
- Configure a VLAN range for an L2VE sub-interface and bind the L2VE sub-interface to a VSI.
- Run system-view
The system view is displayed.
- Run interface virtual-ethernet interface-number.subinterface-number
The L2VE sub-interface view is displayed.
- Run encapsulation dot1q-termination [ rt-protocol ]
A termination encapsulation type is configured for the L2VE sub-interface.
- Run vlan-group group-id
A user VLAN group is configured.
- Run commit
The configuration is committed.
- Run quit
Exit the VLAN group view.
- Run dot1q termination vid low-pe-vid [ to high-pe-vid ] [ vlan-group group-id ]
A VLAN range is configured for the L2VE sub-interface.
- Run l2 binding vsi vsi-name
The L2VE interface is bound to a VSI.
- (Optional) Run dot1q termination client-mode single
The dot1q VLAN tag termination sub-interface is enabled to deliver only one leaf for replication of one copy of broadcast traffic when the sub-interface provides access for qualify-mode VPLS services.
Before running the
dot1q
termination client-mode single command:
- A dot1q VLAN tag termination sub-interface has been configured.
- The dot1q VLAN tag termination sub-interface has been bound to
a qualify-mode VSI (namely, the mac-learn-style qualify command has been run for the VSI).
- Run commit
The configuration is committed.