H3C Technologies H3C S10500 Series Switches User Manual

Page 202

Advertising
background image

191

[PE2] interface gigabitethernet 1/0/1

[PE2-GigabitEthernet1/0/1] qinq enable

# Apply QoS policy qinq to the incoming traffic on the port.

[PE2-GigabitEthernet1/0/1] qos apply policy qinq inbound

Configure GigabitEthernet 1/0/2.

# Configure GigabitEthernet 1/0/2 as a trunk port and assign it to VLAN 100 and VLAN 200.

[PE2] interface gigabitethernet 1/0/2

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

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

# Create class A100 and configure the class to match frames with CVLAN 30 and SVLAN 100.

[PE2] traffic classifier A100

[PE2-classifier-A100] if-match customer-vlan-id 30

[PE2-classifier-A100] if-match service-vlan-id 100

[PE2-classifier-A100] quit

# Configure traffic behavior T100 to mark matching packets with CVLAN 10.

[PE2] traffic behavior T100

[PE2-behavior-T100] remark customer-vlan-id 10

[PE2-behavior-T100] quit

# Create class A200 and configure the class to match frames with CVLAN 40 and SVLAN 200.

[PE2] traffic classifier A200

[PE2-classifier-A200] if-match customer-vlan-id 40

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

[PE2-classifier-A200] quit

# Configure traffic behavior T200 to mark matching packets with CVLAN 20.

[PE2] traffic behavior T200

[PE2-behavior-T200] remark customer-vlan-id 20

[PE2-behavior-T200] quit

# Create a QoS policy named sqinq, associate traffic class A100 with traffic behavior T100, and

associate traffic class A200 with traffic behavior T200.

[PE2] qos policy sqinq

[PE2-qospolicy-sqinq] classifier A100 behavior T100

[PE2-qospolicy-sqinq] classifier A200 behavior T200

[PE2-qospolicy-sqinq] quit

# Apply QoS policy sqinq to the outgoing traffic on the port.

[PE2] interface gigabitethernet 1/0/2

[PE1-GigabitEthernet1/0/2] qos apply policy sqinq outbound

# Set the TPID value in the outer tag to 0x8200.

[PE2-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200

[PE2-GigabitEthernet1/0/2] quit

3.

Configure third-party devices.

On the third-party devices between PE 1 and PE 2, configure the port that connects to PE 1 and that
connecting to PE 2 to allow tagged frames of VLAN 100 and VLAN 200 to pass through.

Advertising