1-6
Follow these steps to configure an outer VLAN tagging policy:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter Ethernet or
Layer-2
aggregate
interface view
interface interface-type
interface-number
Enter
interface
view or port
group view
Enter port group
view
port-group manual
port-group-name
Required
Use either command
Enter QinQ view and configure
the SVLAN tag for the port to add
qinq vid vlan-id
Required
By default, the SVLAN tag to
be added is the default VLAN
tag of the receiving port.
Tag frames of the specified
CVLANs with the current SVLAN
raw-vlan-id inbound
{
all
|
vlan-list
}
Required
z
An inner VLAN tag corresponds to only one outer VLAN tag.
z
If you want to change an outer VLAN tag, you must delete the old outer VLAN tag configuration and
configure a new outer VLAN tag.
Configuring the TPID Value in VLAN Tags
You can configure the TPID value in VLAN tags in system view, where the configuration takes effect on
all ports of the device.
Follow these steps to configure a TPID value globally:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Configure the TPID value in the
CVLAN tag or the SVLAN tag
qinq ethernet-type
hex-value
Optional
By default, the TPID value is 0x8100
QinQ Configuration Examples
Basic QinQ Configuration Example
Network requirements
z
Provider A and Provider B are edge devices on the service provider network and are
interconnected through trunk ports. They belong to SVLAN 10 and 50.
z
Customer A1, Customer A2, Customer B1 and Customer B2 are edge devices on the customer
network.
z
Third-party devices with a TPID value of 0x8200 are deployed between Provider A and Provider B.