
160
•
The two sites use different VPN access services from different service providers, SP 1 and SP
2.
•
SP 1 assigns VLAN 100 to Site 1 and Site 2. SP 2 assigns VLAN 200 to Site 1 and Site 2.
Configure one-to-two VLAN mappings and two-to-two VLAN mappings to enable the two branches
to communicate across networks SP 1 and SP 2.
Figure 61 Network diagram
Configuration procedure
1.
Configure PE 1:
# Create VLANs 5 and 100.
<PE1> system-view
[PE1] vlan 5
[PE1-vlan5] quit
[PE1] vlan 100
[PE1-vlan100] quit
# Configure a one-to-two VLAN mapping on the customer-side port (HundredGigE 1/0/1) to add
SVLAN tag 100 to packets from VLAN 5.
[PE1] interface hundredgige 1/0/1
[PE1-HundredGigE1/0/1] vlan mapping nest single 5 nested-vlan 100
# Configure HundredGigE 1/0/1 as a hybrid port.
[PE1-HundredGigE1/0/1] port link-type hybrid
# Assign HundredGigE 1/0/1 to VLAN 5 as a tagged member.
[PE1-HundredGigE1/0/1] port hybrid vlan 5 tagged
# Assign HundredGigE 1/0/1 to VLAN 100 as an untagged member.
[PE1-HundredGigE1/0/1] port hybrid vlan 100 untagged
[PE1-HundredGigE1/0/1] quit
# Configure the network-side port (HundredGigE 1/0/2) as a trunk port.
[PE1] interface hundredgige 1/0/2
[PE1-HundredGigE1/0/2] port link-type trunk
# Assign HundredGigE 1/0/2 to VLAN 100.
[PE1-HundredGigE1/0/2] port trunk permit vlan 100
[PE1-HundredGigE1/0/2] quit
2.
Configure PE 2: