Configuring pe 2, Configuring pe 3 – H3C Technologies H3C S12500 Series Switches User Manual

Page 176

Advertising
background image

163

[PE1-GigabitEthernet4/0/1] quit

# Set network-side port GigabitEthernet 4/0/2 as a trunk port, and assign it to VLAN 100.

[PE1] interface gigabitethernet 4/0/2

[PE1-GigabitEthernet4/0/2] port link-type trunk

[PE1-GigabitEthernet4/0/2] port trunk permit vlan 100

Configuring PE 2

# Configure uplink policy down_uplink for customer-side port GigabitEthernet 4/0/2 to substitute
SVLAN ID 100 for the SVLAN ID in the incoming traffic tagged with CVLAN 10 and SVLAN 200.

<PE2> system-view

[PE2] traffic classifier down_uplink

[PE2-classifier-down_uplink] if-match customer-vlan-id 10

[PE2-classifier-down_uplink] if-match service-vlan-id 200

[PE2-classifier-down_uplink] quit

[PE2] traffic behavior down_uplink

[PE2-behavior-down_uplink] remark service-vlan-id 100

[PE2-behavior-down_uplink] quit

[PE2] qos policy down_uplink

[PE2-qospolicy-down_uplink] classifier down_uplink behavior down_uplink

[PE2-qospolicy-down_uplink] quit

# Set customer-side port GigabitEthernet 4/0/2 as a trunk port, and assign the port to VLAN 100. Apply
uplink policy down_uplink to the incoming traffic of the port.

[PE2] interface Gigabitethernet 4/0/2

[PE2-GigabitEthernet4/0/2] port link-type trunk

[PE2-GigabitEthernet4/0/2] port trunk permit vlan 100

[PE2-GigabitEthernet4/0/2] qos apply policy down_uplink inbound

[PE2-GigabitEthernet4/0/2] quit

# Set network-side port GigabitEthernet 4/0/1 as a trunk port, and assign it to VLAN 100.

[PE2] interface Gigabitethernet 4/0/1

[PE2-GigabitEthernet4/0/1] port link-type trunk

[PE2-GigabitEthernet4/0/1] port trunk permit vlan 100

[PE2-GigabitEthernet4/0/1] quit

Configuring PE 3

# Configure uplink policy down_uplink for customer-side port GigabitEthernet 4/0/1 to substitute
SVLAN ID 200 for the SVLAN ID in the incoming traffic tagged with CVLAN 10 and SVLAN 100.

<PE3> system-view

[PE3] traffic classifier down_uplink

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

[PE3-classifier-down_uplink] if-match service-vlan-id 100

[PE3-classifier-down_uplink] quit

[PE3] traffic behavior down_uplink

[PE3-behavior-down_uplink] remark service-vlan-id 200

[PE3-behavior-down_uplink] quit

[PE3] qos policy down_uplink

[PE3-qospolicy-down_uplink] classifier down_uplink behavior down_uplink

[PE3-qospolicy-down_uplink] quit

Advertising
This manual is related to the following products: