Configuring a Dot1q Termination Sub-interface
Context
When a VPN connects to an ISP network through a sub-interface, the sub-interface needs to remove VLAN tags from the packets that the VPN sends to the ISP network. A Dot1q termination sub-interface can remove single VLAN tags carried by packets sent from CEs to PEs.
Procedure
- On the PE device, run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The interface view is displayed.
- Run:
port link-type { hybrid | trunk }
The port link-type is set.
- Run:
quit
Return to the system view.
- Run:
interface interface-type interface-number.subinterface-number
The view of the sub-interface connecting the PE to the CE is displayed.
If the PW-side interface is a Layer 3 interface switched by the undo portswitch command, the AC-side interface cannot be a Layer 3 interface or subinterface belonging to a Layer 3 interface; otherwise, traffic forwarding is abnormal.
- Run:
dot1q termination vid low-pe-vid [ to high-pe-vid ]
Dot1q termination is configured on the sub-interface.
After a VLANIF interface is configured, the corresponding VLAN cannot be configured as a VLAN for Dot1q termination sub-interfaces or an outer VLAN for QinQ termination sub-interfaces.