beautypg.com

Verifying the configuration, Configuration procedure – H3C Technologies H3C S12500-X Series Switches User Manual

Page 161

background image

150

3.

Configure PE 3:
# Configure Ten-GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLANs 100 and
200.

system-view

[PE3] interface ten-gigabitethernet 1/0/1

[PE3-Ten-GigabitEthernet1/0/1] port link-type trunk

[PE3-Ten-GigabitEthernet1/0/1] port trunk permit vlan 100 200

# Configure two-to-two VLAN mapping on Ten-GigabitEthernet 1/0/1 to map outer VLAN 100
and inner VLAN 5 to outer VLAN 200 and inner VLAN 6.

[PE3-Ten-GigabitEthernet1/0/1] vlan mapping tunnel 100 5 translated-vlan 200 6

[PE3-Ten-GigabitEthernet1/0/1] quit

# Configure Ten-GigabitEthernet 1/0/2 as a trunk port, and assign the port to VLAN 200.

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

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

[PE3-Ten-GigabitEthernet1/0/2] port trunk permit vlan 200

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

4.

Configure PE 4:
# Configure network-side port Ten-GigabitEthernet 1/0/1 as a trunk port, and assign the port to
VLAN 200.

system-view

[PE4] interface ten-gigabitethernet 1/0/1

[PE4-Ten-GigabitEthernet1/0/1] port link-type trunk

[PE4-Ten-GigabitEthernet1/0/1] port trunk permit vlan 200

[PE4-Ten-GigabitEthernet1/0/1] quit

# Configure customer-side port Ten-GigabitEthernet 1/0/2 as a hybrid port, assign the port to
VLAN 6 as a tagged member, and assign the port to VLAN 200 as an untagged member.

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

[PE4-Ten-GigabitEthernet1/0/2] port link-type hybrid

[PE4-Ten-GigabitEthernet1/0/2] port hybrid vlan 6 tagged

[PE4-Ten-GigabitEthernet1/0/2] port hybrid vlan 200 untagged

# Configure one-to-two VLAN mapping on customer-side port Ten-GigabitEthernet 1/0/2 to add
outer VLAN tag 200 to packets from VLAN 6.

[PE4-Ten-GigabitEthernet1/0/2] vlan mapping nest single 6 nested-vlan 200

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

Verifying the configuration

1.

Display VLAN mapping information on PE 1.

[PE1] display vlan mapping

Interface Ten-GigabitEthernet1/0/1:

Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN

5 N/A 100 5

2.

Display VLAN mapping information on PE 3.

[PE3] display vlan mapping

Interface Ten-GigabitEthernet1/0/1:

Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN

100 5 200 6

3.

Display VLAN mapping information on PE 4.

This manual is related to the following products: