Configuring pe 4 – H3C Technologies H3C S12500 Series Switches User Manual
Page 177

164
# Set customer-side port GigabitEthernet 4/0/1 as a trunk port, assign it to VLAN 200, and apply uplink
policy down_uplink to the incoming traffic on the port.
[PE3] interface gigabitethernet 4/0/1
[PE3-GigabitEthernet4/0/1] port link-type trunk
[PE3-GigabitEthernet4/0/1] port trunk permit vlan 200
[PE3-GigabitEthernet4/0/1] qos apply policy down_uplink inbound
[PE3-GigabitEthernet4/0/1] quit
# Set network-side port GigabitEthernet 4/0/2 as a trunk port, and assign it to VLAN 200.
[PE3] interface gigabitethernet 4/0/2
[PE3-GigabitEthernet4/0/2] port link-type trunk
[PE3-GigabitEthernet4/0/2] port trunk permit vlan 200
[PE3-GigabitEthernet4/0/2] quit
Configuring PE 4
# Configure uplink policy test to add outer VLAN tag 200 to VLAN 10 tagged traffic.
[PE4] traffic classifier test
[PE4-classifier-test] if-match service-vlan-id 10
[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
# Configure the customer-side port GigabitEthernet 4/0/1 as a hybrid port, assign the port to VLAN
200 as an untagged member, and apply the uplink policy test to the incoming traffic of the port.
[PE4] interface Gigabitethernet 4/0/1
[PE4-GigabitEthernet4/0/1] port link-type hybrid
[PE4-GigabitEthernet4/0/1] port hybrid vlan 200 untagged
[PE4-GigabitEthernet4/0/1] qos apply policy test inbound
[PE4-GigabitEthernet4/0/1] quit
# Configure the network-side port GigabitEthernet 4/0/2 as a trunk port, and assign the port to VLAN
200.
[PE4] interface Gigabitethernet 4/0/2
[PE4-GigabitEthernet4/0/2] port link-type trunk
[PE4-GigabitEthernet4/0/2] port trunk permit vlan 200