H3C Technologies H3C S10500 Series Switches User Manual

Page 227

Advertising
background image

216

[PE3-behavior-down_downlink] remark service-vlan-id 100

[PE3-behavior-down_downlink] quit

[PE3] qos policy down_downlink

[PE3-qospolicy-down_downlink] classifier down_downlink behavior down_downlink

[PE3-qospolicy-down_downlink] quit

# Configure an uplink policy up_uplink for network-side port GigabitEthernet 1/0/2 to substitute
CVLAN 30 for the CVLAN ID of the outgoing traffic tagged with CVLAN 10 and SVLAN 200.

[PE3] traffic classifier up_uplink

[PE3-classifier-up_uplink] if-match customer-vlan-id 10

[PE3-classifier-up_uplink] if-match service-vlan-id 200

[PE3-classifier-up_uplink] quit

[PE3] traffic behavior up_uplink

[PE3-behavior-up_uplink] remark customer-vlan-id 30

[PE3-behavior-up_uplink] quit

[PE3] qos policy up_uplink

[PE3-qospolicy-up_uplink] classifier up_uplink behavior up_uplink

[PE3-qospolicy-up_uplink] quit

# Configure customer-side port GigabitEthernet 1/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 1/0/1

[PE3-GigabitEthernet1/0/1] port link-type trunk

[PE3-GigabitEthernet1/0/1] port trunk permit vlan 200

[PE3-GigabitEthernet1/0/1] qos apply policy down_uplink inbound

[PE3-GigabitEthernet1/0/1] qos apply policy down_downlink outbound

[PE3-GigabitEthernet1/0/1] quit

# Set network-side port GigabitEthernet 1/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 1/0/2

[PE3-GigabitEthernet1/0/2] port link-type trunk

[PE3-GigabitEthernet1/0/2] port trunk permit vlan 200

[PE3-GigabitEthernet1/0/2] qos apply policy up_uplink outbound

[PE3-GigabitEthernet1/0/2] quit

4.

Configuring PE 4.

# Configure an uplink policy test to add outer VLAN tag 200 to VLAN 30 tagged traffic.

<PE4> system-view

[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 1/0/1 to VLAN 200.

[PE4] interface gigabitethernet 1/0/1

Advertising