R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
151
[PEA-GigabitEthernet2/0/1] port hybrid pvid vlan 3000
# Enable basic QinQ on the port.
[PEA-GigabitEthernet2/0/1] qinq enable
[PEA-GigabitEthernet2/0/1] quit
# Create a class A10 to match the frames from 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 SVLAN
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 from 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 SVLAN
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.
[PEA] qos policy qinq
# Associate the classes A10 and A20 with the traffic behaviors P1000 and P2000,
respectively.
[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. Configure GigabitEthernet 2/0/2:
# Configure VLAN 1000 as the PVID for the port.
<PEA> system-view
[PEA] interface gigabitethernet 2/0/2
[PEA-GigabitEthernet2/0/2] port access vlan 1000
# Enable basic QinQ on the port.
[PEA-GigabitEthernet2/0/2] qinq enable
[PEA-GigabitEthernet2/0/2] quit
c. Configure GigabitEthernet 2/0/3:
# Configure the port as a trunk port to permit frames from VLAN 1000, VLAN 2000, and
VLAN 3000 to pass through.
[PEA] interface gigabitethernet 2/0/3
[PEA-GigabitEthernet2/0/3] port link-type trunk
[PEA-GigabitEthernet2/0/3] port trunk permit vlan 1000 2000 3000