Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual
Page 308
21-25
One-to-Two and Two-to-Two VLAN Mapping Configuration Example
Network requirements
, two VPN A users, Site 1 and Site 2, are in VLAN 10 and VLAN 30
respectively. SP 1 assigns VLAN 100 for VPN A, and SP 2 assigns VLAN 200 for VPN A.
Configure one-to-two and two-to-two VLAN mappings to enable the two sites to communicate across
networks SP 1 and SP 2.
Figure 21-9
Network diagram for the one-to-two and two-to-two VLAN mapping application
Configuration procedure
1) Configuring PE 1
# Configure an uplink policy test to add outer VLAN tag 100 to VLAN 10 tagged traffic.
[PE1] traffic classifier test
[PE1-classifier-test] if-match customer-vlan-id 10
[PE1-classifier-test] quit
[PE1] traffic behavior test
[PE1-behavior-test] nest top-most vlan-id 100
[PE1-behavior-test] quit
[PE1] qos policy test
[PE1-qospolicy-test] classifier test behavior test
[PE1-qospolicy-test] quit
# Set customer-side port Gigabitethernet 2/0/1 as a hybrid port, and assign it to VLAN 100 as an
untagged member, so the port forwards VLAN 100 traffic with the VLAN tag removed. On the port,
enable basic QinQ, and apply uplink policy test to the incoming traffic.
[PE1] interface gigabitethernet 2/0/1
[PE1-GigabitEthernet2/0/1] port link-type hybrid
[PE1-GigabitEthernet2/0/1] port hybrid vlan 100 untagged
[PE1-GigabitEthernet2/0/1] qinq enable
[PE1-GigabitEthernet2/0/1] qos apply policy test inbound
[PE1-GigabitEthernet2/0/1] quit
# Set network-side port Gigabitethernet 2/0/2 as a trunk port, and assign it to VLAN 100.
[PE1] interface gigabitethernet 2/0/2
[PE1-GigabitEthernet2/0/2] port link-type trunk
[PE1-GigabitEthernet2/0/2] port trunk permit vlan 100