
159
# Assign HundredGigE 1/0/1 to all original VLANs and translated VLANs.
[SwitchA-HundredGigE1/0/1] port trunk permit vlan 1 2 3 101 201 301
# Configure one-to-one VLAN mappings on HundredGigE 1/0/1 to map VLANs 1, 2, and 3 to
VLANs 101, 201, and 301, respectively.
[SwitchA-HundredGigE1/0/1] vlan mapping 1 translated-vlan 101
[SwitchA-HundredGigE1/0/1] vlan mapping 2 translated-vlan 201
[SwitchA-HundredGigE1/0/1] vlan mapping 3 translated-vlan 301
[SwitchA-HundredGigE1/0/1] quit
# Configure customer-side port HundredGigE 1/0/2 as a trunk port.
[SwitchA] interface hundredgige 1/0/2
[SwitchA-HundredGigE1/0/2] port link-type trunk
# Assign HundredGigE 1/0/2 to all original VLANs and translated VLANs.
[SwitchA-HundredGigE1/0/2] port trunk permit vlan 1 2 3 102 202 302
# Configure one-to-one VLAN mappings on HundredGigE 1/0/2 to map VLANs 1, 2, and 3 to
VLANs 102, 202, and 302, respectively.
[SwitchA-HundredGigE1/0/2] vlan mapping 1 translated-vlan 102
[SwitchA-HundredGigE1/0/2] vlan mapping 2 translated-vlan 202
[SwitchA-HundredGigE1/0/2] vlan mapping 3 translated-vlan 302
[SwitchA-HundredGigE1/0/2] quit
# Configure the network-side port (HundredGigE 1/0/3) as a trunk port.
[SwitchA] interface hundredgige 1/0/3
[SwitchA-HundredGigE1/0/3] port link-type trunk
# Assign HundredGigE 1/0/3 to the translated VLANs.
[SwitchA-HundredGigE1/0/3] port trunk permit vlan 101 201 301 102 202 302
[SwitchA-HundredGigE1/0/3] quit
2.
Configure Switch B in the same way Switch A is configured. (Details not shown.)
Verifying the configuration
# Verify VLAN mapping information on the wiring-closet switches, for example, Switch A.
[SwitchA] display vlan mapping
Interface HundredGigE1/0/1:
Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN
1 N/A 101 N/A
2 N/A 201 N/A
3 N/A 301 N/A
Interface HundredGigE1/0/2:
Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN
1 N/A 102 N/A
2 N/A 202 N/A
3 N/A 302 N/A
One-to-two and two-to-two VLAN mapping configuration
example
Network requirements
As shown in
:
•
Two VPN A branches, Site 1 and Site 2, are in VLAN 5 and VLAN 6, respectively.