R0106-HP MSR Router Series Layer 2 - LAN Switching Configuration Guide(V7)
103
# Configure the port as a trunk port, and assign it to VLAN 100 and VLANs 10 through 70.
<PE1> system-view
[PE1] interface gigabitethernet 2/1/1
[PE1-GigabitEthernet2/1/1] port link-type trunk
[PE1-GigabitEthernet2/1/1] port trunk permit vlan 100 10 to 70
# Configure VLAN 100 as the PVID for the port.
[PE1-GigabitEthernet2/1/1] port trunk pvid vlan 100
# Enable QinQ on the port.
[PE1-GigabitEthernet2/1/1] qinq enable
[PE1-GigabitEthernet2/1/1] quit
2. Configure GigabitEthernet 2/1/2:
# Configure the port as a trunk port, and assign it to VLAN 100 and VLAN 200.
[PE1] interface gigabitethernet 2/1/2
[PE1-GigabitEthernet2/1/2] port link-type trunk
[PE1-GigabitEthernet2/1/2] port trunk permit vlan 100 200
# Set the TPID value in the SVLAN tags to 0x8200 on the port.
[PE1-GigabitEthernet2/1/2] qinq ethernet-type service-tag 8200
[PE1-GigabitEthernet2/1/2] quit
3. Configure GigabitEthernet 2/1/3:
# Configure the port as a trunk port, and assign it to VLAN 200 and VLANs 30 through 90.
[PE1] interface gigabitethernet 2/1/3
[PE1-GigabitEthernet2/1/3] port link-type trunk
[PE1-GigabitEthernet2/1/3] port trunk permit vlan 200 30 to 90
# Configure VLAN 200 as the PVID for the port.
[PE1-GigabitEthernet2/1/3] port trunk pvid vlan 200
# Enable QinQ on the port.
[PE1-GigabitEthernet2/1/3] qinq enable
[PE1-GigabitEthernet2/1/3] quit
Configuring PE 2
1. Configure GigabitEthernet 2/1/1:
# Configure the port as a trunk port, and assign it to VLAN 200 and VLANs 30 through 90.
<PE2> system-view
[PE2] interface gigabitethernet 2/1/1
[PE2-GigabitEthernet2/1/1] port link-type trunk
[PE2-GigabitEthernet2/1/1] port trunk permit vlan 200 30 to 90
# Configure VLAN 200 as the PVID for the port.
[PE2-GigabitEthernet2/1/1] port trunk pvid vlan 200
# Enable QinQ on the port.
[PE2-GigabitEthernet2/1/1] qinq enable
[PE2-GigabitEthernet2/1/1] quit
2. Configure GigabitEthernet 2/1/2:
# Configure the port as a trunk port, and assign it to VLAN 100 and VLAN 200.
[PE2] interface gigabitethernet 2/1/2
[PE2-GigabitEthernet2/1/2] port link-type trunk