H3C S5560S-EI Series Configuration Manual page 202

Layer 2-lan switching configuration guide
Hide thumbs Also See for S5560S-EI Series:
Table of Contents

Advertisement

Configure one-to-two VLAN mappings to enable the two branches to communicate across the public
network.
Figure 68 Network diagram
Configuration procedure
1.
Configure PE 1:
# Create VLANs 10, 20, 100, and 200.
<PE1> system-view
[PE1] vlan 10
[PE1-vlan10] quit
[PE1] vlan 20
[PE1-vlan20] quit
[PE1] vlan 100
[PE1-vlan100] quit
[PE1] vlan 200
[PE1-vlan200] quit
# Configure one-to-two VLAN mappings on the customer-side port (GigabitEthernet 1/0/1) to
add SVLAN tag 100 and SVLAN 200 to packets from VLAN 10 and VLAN 20, respectively.
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] vlan mapping nest single 10 nested-vlan 100
[PE1-GigabitEthernet1/0/1] vlan mapping nest single 20 nested-vlan 200
# Configure GigabitEthernet 1/0/1 as a hybrid port.
[PE1-GigabitEthernet1/0/1] port link-type hybrid
# Assign GigabitEthernet 1/0/1 to VLAN 10 and VLAN 20 as a tagged member.
[PE1-GigabitEthernet1/0/1] port hybrid vlan 10 20 tagged
# Assign GigabitEthernet 1/0/1 to VLAN 100 and VLAN 200 as an untagged member.
[PE1-GigabitEthernet1/0/1] port hybrid vlan 100 200 untagged
[PE1-GigabitEthernet1/0/1] quit
# Configure the network-side port (GigabitEthernet 1/0/2) as a trunk port.
[PE1] interface gigabitethernet 1/0/2
[PE1-GigabitEthernet1/0/2] port link-type trunk
# Assign GigabitEthernet 1/0/2 to VLAN 100 and VLAN 200.
191

Advertisement

Table of Contents
loading

Table of Contents