Operation Manual – VLAN-VPN
H3C S5600 Series Ethernet Switches
Chapter 2 Selective QinQ Configuration
2-7
# Create VLAN 1000, VLAN 1200 and VLAN 5 (the default VLAN of GigabitEthernet
1/0/3) on SwitchA.
<SwitchA> system-view
[SwitchA] vlan 1000
[SwitchA-vlan1000] quit
[SwitchA] vlan 1200
[SwitchA-vlan1200] quit
[SwitchA] vlan 5
[SwitchA-vlan5] quit
# Configure GigabitEthernet 1/0/5 as a hybrid port and configure it not to remove VLAN
tags when forwarding packets of VLAN 5, VLAN 1000, and VLAN 1200.
[SwitchA] interface GigabitEthernet 1/0/5
[SwitchA-GigabitEthernet1/0/5] port link-type hybrid
[SwitchA-GigabitEthernet1/0/5] port hybrid vlan 5 1000 1200 tagged
[SwitchA-GigabitEthernet1/0/5] quit
# Configure GigabitEthernet 1/0/3 as a hybrid port and configure VLAN 5 as its default
VLAN. Configure GigabitEthernet 1/0/3 to remove VLAN tags when forwarding packets
of VLAN 5, VLAN 1000, and VLAN 1200.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port link-type hybrid
[SwitchA-GigabitEthernet1/0/3] port hybrid pvid vlan 5
[SwitchA-GigabitEthernet1/0/3] port hybrid vlan 5 1000 1200 untagged
# Enable the VLAN-VPN feature on GigabitEthernet 1/0/3.
[SwitchA-GigabitEthernet1/0/3] vlan-vpn enable
# Enable the selective QinQ feature on GigabitEthernet 1/0/3 to tag packets of VLAN
100 through VLAN 108 with the tag of VLAN 1000 as the outer VLAN tag, and tag
packets of VLAN 200 through VLAN 230 with the tag of VLAN 1200 as the outer VLAN
tag.
[SwitchA-GigabitEthernet1/0/3] vlan-vpn vid 1000
[SwitchA-GigabitEthernet1/0/3-vid-1000] raw-vlan-id inbound 100 to 108
[SwitchA-GigabitEthernet1/0/3-vid-1000] quit
[SwitchA-GigabitEthernet1/0/3] vlan-vpn vid 1200
[SwitchA-GigabitEthernet1/0/3-vid-1200] raw-vlan-id inbound 200 to 230
# Enable the inter-VLAN MAC address replicating feature to replicate the MAC address
entries of the MAC address tables of the outer VLANs to the MAC address table of the
default VLAN, and replicate the MAC address entries of the MAC address table of the
default VLAN to the MAC address tables of the outer VLANs.
[SwitchA-GigabitEthernet1/0/3-vid-1200] quit
[SwitchA-GigabitEthernet1/0/3] mac-address mapping 0 source-vlan 5
destination-vlan 1000