Configuration procedure – H3C Technologies H3C S3100 Series Switches User Manual
Page 864

1-7
This example describes how to configure one-to-one VLAN mapping for two users: map the three traffic
streams from user A to VLAN 1001, VLAN 1002, and VLAN 1003, and map the three traffic streams
from user B to VLAN 2001, VLAN 2002, and VLAN 2003.
Figure 1-5 Network diagram for one-to-one VLAN mapping configuration
……
Configuration Procedure
# Create VLAN 1 (which exists by default), VLAN 2, and VLAN 3 on Switch A, and the target VLANs
(VLANs 1001 through 1003 and VLANs 2001 through 2003).
[SwitchA] vlan 2 to 3
[SwitchA] vlan 1001 to 1003
[SwitchA] vlan 2001 to 2003
# Because port Ethernet 1/0/1 of Switch A needs to receive the packets from original VLANs from a user
and forward the traffic from the target VLANs from the distribution switch, Ethernet 1/0/1 should be a
trunk or hybrid port. Configure Ethernet 1/0/1 as a hybrid port for example, assign Ethernet 1/0/1 to
VLANs 1 through 3 and VLANs 1001 through 1003, and configure Ethernet 1/0/1 to send packets of
these VLANs with tags kept.
[SwitchA] interface Ethernet 1/0/1
[SwitchA-Ethernet1/0/1] port link-type hybrid
[SwitchA-Ethernet1/0/1] port hybrid vlan 1 to 3 tagged
[SwitchA-Ethernet1/0/1] port hybrid vlan 1001 to 1003 tagged
[SwitchA-Ethernet1/0/1] quit
# Configure port Ethernet 1/0/2 in the same way.
[SwitchA] interface Ethernet 1/0/2
[SwitchA-Ethernet1/0/2] port link-type hybrid
[SwitchA-Ethernet1/0/2] port hybrid vlan 1 to 3 tagged
[SwitchA-Ethernet1/0/2] port hybrid vlan 1001 to 1003 tagged
[SwitchA-Ethernet1/0/2] quit