Configure the Basic QinQ Function
After the basic QinQ function is configured on a port, the device adds another layer of VLAN tags for the packets received from the port. The VLAN ID of the VLAN tags is the PVID of the port.
Configuration Condition
Before configuring the basic QinQ function, ensure that:
- The PVID of the port has been configured. The PVID is the VLAN ID of the outer VLAN tags that are added to packets after the basic QinQ function of the port is enabled.
Enable the Basic QinQ Function
Table 4-2 Enabling the Basic QinQ Function
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode.
|
interface interface-name
|
Either
After you enter the L2 Ethernet interface configuration mode, the subsequent configuration takes effect only on the current port. After you enter the aggregation group configuration mode, the subsequent configuration takes effect only within the aggregation group.
|
Enter the aggregation group configuration mode.
|
link-aggregation link-aggregation-id
|
Enable the basic QinQ function.
|
vlan dot1q-tunnel enable
|
Mandatory.
By default, the basic QinQ function is disabled.
|
-
On one port, the basic QinQ function cannot coexist with the following functions: QinQ Evc, flexible QINQ, 1:1 VLAN mapping, N:1 VLAN mapping, configure the protocol type of the outer VLAN tags of the port as a non-default value.