H3C Technologies H3C S7500E Series Switches User Manual

Page 282

Advertising
background image

20-13

# Create a traffic behavior P1000 and configure the action of tagging frames with the outer VLAN tag
1000 for the traffic behavior.

[ProviderA] traffic behavior P1000

[ProviderA-behavior-P1000] nest top-most vlan-id 1000

[ProviderA-behavior-P1000] quit

# Create a class A20 to match frames of VLAN 20 of Customer A.

[ProviderA] traffic classifier A20

[ProviderA-classifier-A20] if-match customer-vlan-id 20

[ProviderA-classifier-A20] quit

# Create a traffic behavior P2000 and configure the action of tagging frames with the outer VLAN tag
2000 for the traffic behavior.

[ProviderA] traffic behavior P2000

[ProviderA-behavior-P2000] nest top-most vlan-id 2000

[ProviderA-behavior-P2000] quit

# Create a QoS policy qinq. Associate the class A10 with the traffic behavior P1000, and associate the
class A20 with the traffic behavior P2000 in the QoS policy qinq.

[ProviderA] qos policy qinq

[ProviderA-qospolicy-qinq] classifier A10 behavior P1000

[ProviderA-qospolicy-qinq] classifier A20 behavior P2000

[ProviderA-qospolicy-qinq] quit

# Apply the QoS policy qinq in the inbound direction of GigabitEthernet 2/0/1.

[ProviderA] interface GigabitEthernet 2/0/1

[ProviderA-GigabitEthernet2/0/1] qos apply policy qinq inbound

Configuration on GigabitEthernet 2/0/2

# Configure VLAN 1000 as the default VLAN.

[ProviderA] interface gigabitethernet 2/0/2

[ProviderA-GigabitEthernet2/0/2] port access vlan 1000

# Enable basic QinQ. Tag frames from VLAN 10 with the outer VLAN tag 1000.

[ProviderA-GigabitEthernet2/0/2] qinq enable

[ProviderA-GigabitEthernet2/0/2] quit

Configuration on GigabitEthernet 2/0/3.

# Configure the port as a trunk port, and permit frames of VLAN 1000, VLAN 2000 and VLAN 3000 to
pass.

[ProviderA] interface gigabitethernet 2/0/3

[ProviderA-GigabitEthernet2/0/3] port link-type trunk

[ProviderA-GigabitEthernet2/0/3] port trunk permit vlan 1000 2000 3000

# To enable interoperability with the third-party devices in the public network, set the TPID of the
service provider network VLAN tags to 0x8200. Therefore, the port tags the frames with the outer
VLAN tag whose TPID is 0x8200.

[ProviderA-GigabitEthernet2/0/3] qinq ethernet-type service-tag 8200

2) Configuration on Provider B

Configuration on GigabitEthernet 2/0/1

# Configure the port as a trunk port, and permit frames of VLAN 1000, VLAN 2000 and VLAN 3000 to
pass.

<ProviderB> system-view

[ProviderB] interface gigabitethernet 2/0/1

Advertising