
161
# Create VLAN 100.
<PE2> system-view
[PE2] vlan 100
[PE2-vlan100] quit
# Configure HundredGigE 1/0/1 as a trunk port.
[PE2] interface hundredgige 1/0/1
[PE2-HundredGigE1/0/1] port link-type trunk
# Assign HundredGigE 1/0/1 to VLAN 100.
[PE2-HundredGigE1/0/1] port trunk permit vlan 100
[PE2-HundredGigE1/0/1] quit
# Configure HundredGigE 1/0/2 as a trunk port.
[PE2] interface hundredgige 1/0/2
[PE2-HundredGigE1/0/2] port link-type trunk
# Assign HundredGigE 1/0/2 to VLAN 100.
[PE2-HundredGigE1/0/2] port trunk permit vlan 100
[PE2-HundredGigE1/0/2] quit
3.
Configure PE 3:
# Create VLANs 5, 6, 100, and 200.
<PE3> system-view
[PE3] vlan 5 to 6
[PE3] vlan 100
[PE3-vlan100] quit
[PE3] vlan 200
[PE3-vlan200] quit
# Configure HundredGigE 1/0/1 as a trunk port.
[PE3] interface hundredgige 1/0/1
[PE3-HundredGigE1/0/1] port link-type trunk
# Assign HundredGigE 1/0/1 to VLANs 100 and 200.
[PE3-HundredGigE1/0/1] port trunk permit vlan 100 200
# Configure a two-to-two VLAN mapping on HundredGigE 1/0/1 to map SVLAN 100 and
CVLAN 5 to SVLAN 200 and CVLAN 6.
[PE3-HundredGigE1/0/1] vlan mapping tunnel 100 5 translated-vlan 200 6
[PE3-HundredGigE1/0/1] quit
# Configure HundredGigE 1/0/2 as a trunk port.
[PE3] interface hundredgige 1/0/2
[PE3-HundredGigE1/0/2] port link-type trunk
# Assign HundredGigE 1/0/2 to VLAN 200.
[PE3-HundredGigE1/0/2] port trunk permit vlan 200
[PE3-HundredGigE1/0/2] quit
4.
Configure PE 4:
# Create VLANs 6 and 200.
<PE4> system-view
[PE4] vlan 6
[PE4-vlan6] quit
[PE4] vlan 200
[PE4-vlan200] quit
# Configure the network-side port (HundredGigE 1/0/1) as a trunk port.