H3C Technologies H3C S12500 Series Switches User Manual

Page 159

Advertising
background image

146

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

[PE1-GigabitEthernet4/0/2] qinq ethernet-type 8200

[PE1-GigabitEthernet4/0/2] quit

c.

Configure GigabitEthernet 4/0/3:
# Configure GigabitEthernet 4/0/3 as a trunk port and assign it to VLAN 200.

[PE1] interface gigabitethernet 4/0/3

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

[PE1-GigabitEthernet4/0/3] port trunk permit vlan 200

# Configure VLAN 200 as the default VLAN ID for the port.

[PE1-GigabitEthernet4/0/3] port trunk pvid vlan 200

# Enable basic QinQ on the port.

[PE1-GigabitEthernet4/0/3] qinq enable

[PE1-GigabitEthernet4/0/3] quit

2.

Configure PE 2:

a.

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

<PE2> system-view

[PE2] interface gigabitethernet 4/0/1

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

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

# Configure VLAN 200 as the default VLAN ID for the port.

[PE2-GigabitEthernet4/0/1] port trunk pvid vlan 200

# Enable basic QinQ on the port.

[PE2-GigabitEthernet4/0/1] qinq enable

[PE2-GigabitEthernet4/0/1] quit

b.

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

[PE2] interface gigabitethernet 4/0/2

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

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

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

[PE2-GigabitEthernet4/0/2] qinq ethernet-type 8200

[PE2-GigabitEthernet4/0/2] quit

c.

Configure GigabitEthernet 4/0/3:
# Configure GigabitEthernet 4/0/3 as a trunk port and assign it to VLAN 100.

[PE2] interface gigabitethernet 4/0/3

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

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

# Configure VLAN 100 as the default VLAN ID for the port.

[PE2-GigabitEthernet4/0/3] port trunk pvid vlan 100

# Enable basic QinQ on the port.

[PE2-GigabitEthernet4/0/3] qinq enable

[PE2-GigabitEthernet4/0/3] quit

3.

On the third-party devices between PE 1 and PE 2, configure the port connecting to PE 1 and that

connecting to PE 2 to allow tagged frames of VLAN 100 and VLAN 200 to pass through.

Advertising
This manual is related to the following products: