beautypg.com

Verifying the configuration, Network requirements, Displaying and maintaining loop detection – H3C Technologies H3C S12500-X Series Switches User Manual

Page 159

background image

148

# Configure customer-side port Ten-GigabitEthernet 1/0/2 as a trunk port, and assign the port to

original VLANs and translated VLANs.

[SwitchA] interface ten-gigabitethernet 1/0/2

[SwitchA-Ten-GigabitEthernet1/0/2] port link-type trunk

[SwitchA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 2 3 102 202 302

[SwitchA-Ten-GigabitEthernet1/0/2] vlan mapping 1 translated-vlan 102

[SwitchA-Ten-GigabitEthernet1/0/2] vlan mapping 2 translated-vlan 202

[SwitchA-Ten-GigabitEthernet1/0/2] vlan mapping 3 translated-vlan 302

[SwitchA-Ten-GigabitEthernet1/0/2] quit

# Configure network-side port Ten-GigabitEthernet 1/0/3 as a trunk port, and assign the port to
the translated VLANs.

[SwitchA] interface ten-gigabitethernet 1/0/3

[SwitchA-Ten-GigabitEthernet1/0/3] port link-type trunk

[SwitchA-Ten-GigabitEthernet1/0/3] port trunk permit vlan 101 201 301 102 202 302

[SwitchA-Ten-GigabitEthernet1/0/3] quit

2.

Configure Switch B in the same way Switch A is configured.

Verifying the configuration

1.

Display VLAN mapping information on Switch A.

[SwitchA] display vlan mapping

Interface Ten-GigabitEthernet1/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 Ten-GigabitEthernet1/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

2.

Display VLAN mapping information on Switch B.
The command output on Switch B is similar to that on Switch A.
The output shows that one-to-one VLAN mapping is successfully configured on Switch A and
Switch B.

One-to-two and two-to-two VLAN mapping configuration
example

Network requirements

As shown in

Figure 47

, two VPN A branches, Site 1 and Site 2, are in VLAN 5 and VLAN 6, respectively.

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, and SP 2 assigns VLAN 200 to Site 1 and Site 2.
Configure one-to-two and two-to-two VLAN mappings to enable the two branches to communicate
across networks SP 1 and SP 2.

This manual is related to the following products: