CX320 Switch Module V100R001 Command Reference 12
dot1q termination vid
Function
The dot1q termination vid command sets the single VLAN ID for Dot1q termination on a sub-interface.
The undo dot1q termination vid command deletes the single VLAN ID for Dot1q termination on a sub-interface.
By default, the single VLAN ID for Dot1q termination is not set on a sub-interface.
Parameters
Parameter |
Description |
Value |
---|---|---|
vid |
Specifies the value of the VLAN tag in user packets. |
The value is an integer that ranges from 1 to 4063. |
Views
GE sub-interface view, 10GE sub-interface view, 40GE sub-interface view, Eth-Trunk sub-interface view
Usage Guidelines
Usage Scenario
Communication between VLANs
VLANs are widely used because they can separate Layer 2 packets. A physical LAN is divided into multiple logical broadcast domains. Hosts in the same VLAN can communicate with each other but the hosts of different VLANs cannot. The Layer 3 routing technology is used for communication between hosts of different VLANs in the following two methods:- Through the VLANIF interface on the Layer 3 switch.
Through the Layer 3 Ethernet interface on the Layer 3 switch.
However, when a traditional Layer 3 Ethernet interface receives VLAN packets, the VLAN packets are discarded. To enable communication between hosts of different VLANs, you can create an Ethernet sub-interface on the Layer 3 Ethernet interface and enable QinQ termination on the sub-interface to remove the tag from the VLAN packet.
Communication between a LAN and a WAN
Most packets on a LAN have VLAN tags, but some WAN protocols such as ATM, FR, and PPP, cannot identify VLAN packets. To send a VLAN packet from LAN to WAN, the device records VLAN information in the packet, removes the VLAN tag, and forwards the packet.
Dot1q termination, which terminates tags carried in Dot1q packets
To configure Dot1q termination, run the dot1q termination vid command.
QinQ termination, which terminates tags carried in QinQ packets.
The current device does not support the QinQ termination.
- The sub-interface removes the tag in the VLAN packet when receiving the packet and forwards the packet on Layer 3. The outbound interface determines whether the forwarded VLAN packet carries tags.
- The sub-interface adds VLAN information to the packet and then sends the packet.
Precautions
The tag values of the user packet received by the sub-interface must be the specified vid in the command; otherwise, the packet is discarded.