159
[PE1] qinq ethernet-type 8200
2.
Configure PE 2:
{
Configure Ethernet 1/0/1:
# Configure Ethernet 1/0/1 as a hybrid port to permit frames of VLAN 100 and VLAN 200 to
pass through untagged.
[PE2] interface ethernet 1/0/1
[PE2-Ethernet1/0/1] port link-type hybrid
[PE2-Ethernet1/0/1] port hybrid vlan 100 200 untagged
# Configure the port to tag VLAN 10 frames with outer VLAN ID 100.
[PE2-Ethernet1/0/1] qinq vid 100
[PE2-Ethernet1/0/1-vid-100] raw-vlan-id inbound 10
[PE2-Ethernet1/0/1-vid-100] quit
# Configure the port to tag VLAN 20 frames with outer VLAN ID 200.
[PE2-Ethernet1/0/1] qinq vid 200
[PE2-Ethernet1/0/1-vid-200] raw-vlan-id inbound 20
[PE2-Ethernet1/0/1-vid-200] quit
[PE2-Ethernet1/0/1] quit
{
Configure Ethernet 1/0/2:
# Configure Ethernet 1/0/2 as a trunk port and assign it to VLAN 100 and VLAN 200.
[PE2] interface ethernet 1/0/2
[PE2-Ethernet1/0/2] port link-type trunk
[PE2-Ethernet1/0/2] port trunk permit vlan 100 200
# Set the TPID in the outer VLAN tags to 0x8200.
[PE2-Ethernet1/0/2] quit
[PE2] qinq ethernet-type 8200
3.
On the third-party devices between PE 1 and PE 2, configure the port that connects to PE 1 and
that connecting to PE 2 to allow tagged frames of VLAN 100 and VLAN 200 to pass through.
Selective QinQ configuration example in QoS policy-based
approach
IMPORTANT:
This configuration example is available only on the HPE 3100 v2 EI switches.
Network requirements
As shown in
:
•
The two branches of a company, Site 1 and Site 2, are connected through the service provider
network and use CVLAN 10 and CVLAN 20 to transmit voice traffic and data traffic separately.
•
PE 1 and PE 2 are edge devices on the service provider network and are connected through
third-party devices with a TPID value of 0x8200.
Configure the edge and third-party devices to allow frames from CVLAN 10 to be transmitted
between the branches via SVLAN 100 and frames from CVLAN 20 to be transmitted between the
branches via SVLAN 200.