R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Configuration Guide
155
# Configure the port as a hybrid port permitting frames of VLAN 1000, VLAN 2000, and
VLAN 3000 to pass through with the outer VLAN tag removed.
<PEA> system-view
[PEA] interface gigabitethernet 2/0/1
[PEA-GigabitEthernet2/0/1] port link-type hybrid
[PEA-GigabitEthernet2/0/1] port hybrid vlan 1000 2000 3000 untagged
# Configure VLAN 3000 as the default VLAN of GigabitEthernet 2/0/1, and enable basic
QinQ on GigabitEthernet 2/0/1. As a result, the frames received on the port are tagged with
the outer VLAN tag 3000.
[PEA-GigabitEthernet2/0/1] port hybrid pvid vlan 3000
[PEA-GigabitEthernet2/0/1] qinq enable
[PEA-GigabitEthernet2/0/1] quit
# Create a class A10 to match the frames of VLAN 10 of CE A.
[PEA] traffic classifier A10
[PEA-classifier-A10] if-match customer-vlan-id 10
[PEA-classifier-A10] quit
# Create a traffic behavior P1000 and configure the action of tagging frames with the outer
VLAN tag 1000 for the traffic behavior.
[PEA] traffic behavior P1000
[PEA-behavior-P1000] nest top-most vlan-id 1000
[PEA-behavior-P1000] quit
# Create a class A20 to match frames of VLAN 20 of CE A.
[PEA] traffic classifier A20
[PEA-classifier-A20] if-match customer-vlan-id 20
[PEA-classifier-A20] quit
# Create a traffic behavior P2000 and configure the action of tagging frames with the outer
VLAN tag 2000 for the traffic behavior.
[PEA] traffic behavior P2000
[PEA-behavior-P2000] nest top-most vlan-id 2000
[PEA-behavior-P2000] quit
# Create a QoS policy qinq. Associate the class A10 with the traffic behavior P1000, and
associate the class A20 with the traffic behavior P2000 in the QoS policy qinq.
[PEA] qos policy qinq
[PEA-qospolicy-qinq] classifier A10 behavior P1000
[PEA-qospolicy-qinq] classifier A20 behavior P2000
[PEA-qospolicy-qinq] quit
# Apply the QoS policy qinq to the incoming traffic of GigabitEthernet 2/0/1.
[PEA] interface gigabitethernet 2/0/1
[PEA-GigabitEthernet2/0/1] qos apply policy qinq inbound
b. Configuration on GigabitEthernet 2/0/2:
# Configure VLAN 1000 as the default VLAN.
<PEA> system-view
[PEA] interface gigabitethernet 2/0/2
[PEA-GigabitEthernet2/0/2] port access vlan 1000
# Enable basic QinQ. Tag frames from VLAN 10 with the outer VLAN tag 1000.
[PEA-GigabitEthernet2/0/2] qinq enable










