H3C Technologies H3C S7500E Series Switches User Manual
Page 310
21-27
[PE3-qospolicy-up_uplink] quit
# Set customer-side port Gigabitethernet 2/0/1 as a trunk port, assign it to VLAN 200, and apply uplink
policy down_uplink to the incoming traffic and downlink policy down_downlink to the outgoing traffic
on the port.
[PE3] interface gigabitethernet 2/0/1
[PE2-GigabitEthernet2/0/1] port link-type trunk
[PE2-GigabitEthernet2/0/1] port trunk permit vlan 200
[PE3-GigabitEthernet2/0/1] qos apply policy down_uplink inbound
[PE3-GigabitEthernet2/0/1] qos apply policy down_downlink outbound
[PE3-GigabitEthernet2/0/1] quit
# Set network-side port Gigabitethernet 2/0/2 as a trunk port, assign it to VLAN 200, and apply uplink
policy up_uplink to the outgoing traffic on the port.
[PE3] interface gigabitethernet 2/0/2
[PE2-GigabitEthernet2/0/2] port link-type trunk
[PE2-GigabitEthernet2/0/2] port trunk permit vlan 200
[PE3-GigabitEthernet2/0/2] qos apply policy up_uplink outbound
[PE3-GigabitEthernet2/0/2] quit
4) Configuring PE 4
# Configure an uplink policy test to add outer VLAN tag 200 to VLAN 30 tagged traffic.
[PE4] traffic classifier test
[PE4-classifier-test] if-match customer-vlan-id 30
[PE4-classifier-test] quit
[PE4] traffic behavior test
[PE4-behavior-test] nest top-most vlan-id 200
[PE4-behavior-test] quit
[PE4] qos policy test
[PE4-qospolicy-test] classifier test behavior test
[PE4-qospolicy-test] quit
# Assign port Gigabitethernet 2/0/1 to VLAN 200.
[PE4] interface gigabitethernet 2/0/1
[PE4-GigabitEthernet2/0/1] port link-type trunk
[PE4-GigabitEthernet2/0/1] port trunk permit vlan 200
# Set port Gigabitethernet 2/0/2 as a hybrid port, and assign it to VLAN 200 as un untagged member,
so the port forwards VLAN 200 traffic with the VLAN tag removed. Enable basic QinQ, and apply uplink
policy test to the incoming traffic on the port.
[PE4] interface gigabitethernet 2/0/2
[PE4-GigabitEthernet2/0/2] port link-type hybrid
[PE4-GigabitEthernet2/0/2] port hybrid vlan 200 untagged
[PE4-GigabitEthernet2/0/2] qinq enable
[PE4-GigabitEthernet2/0/2] qos apply policy test inbound