The qinq stacking vlan command configures QinQ stacking on a VLANIF interface.
The undo qinq stacking vlan command cancels the configuration.
By default, QinQ stacking is not configured on a VLANIF interface.
Parameter | Description | Value |
---|---|---|
vlan-id | Specifies the outer VLAN tag added to a frame. | The value is an integer that ranges from 1 to 4094. |
Assume that the local device A is connected to the remote device B over the ISP network.
The ID of the management VLAN on device B is the same as the ID of VLAN for users connected to device A. However, the S-VLAN ID is different from the management VLAN ID.
To log in to device B to manage it from local device A, you can use the qinq stacking vlan command on device B to configure QinQ stacking on the VLANIF interface corresponding to the management VLAN. In addition, you need to configure QinQ on the user-side interface of device A.
Packets sent from device A to device B are processed as follows:
The user-side interface of device A sends double-tagged packets to the ISP network. The outer VLAN tag is assigned by the carrier so that the packets can be transparently transmitted over the ISP network to SwitchB.
When device B receives double-tagged packets, it compares the VLAN tags of the packets with the VLAN tags configured on the VLANIF interface. If the outer tag of the packets is the same as the outer tag configured on the VLANIF interface, device B removes the outer tag and sends the packets to the IP layer for processing.
Packets sent from device B to device A are processed as follows:
When the VLANIF interface of SwitchB receives data packets, device B adds a VLAN tag to the packets according to the QinQ stacking configuration. The new outer VLAN tag is assigned by the carrier so that the double-tagged data packets can be transparently transmitted across the ISP network to device A. Device A removes the outer VLAN tag, and then forwards the packets to users.
When configuring QinQ stacking on a VLANIF interface, ensure that the VLANIF interface corresponds to the management VLAN. VLANIF interfaces corresponding to other VLANs do not support QinQ stacking.
To change the configured outer VLAN, run the undo qinq stacking vlan command to disable QinQ stacking, and then run the qinq stacking vlan command to configure a new outer VLAN.
The qinq stacking vlan command conflicts with the icmp host-unreachable send command. Therefore, you must run the undo icmp host-unreachable send command before using the qinq stacking vlan command.
The outer VLAN added to packets must be an existing VLAN without VLANIF interface configured.