3Com Switch 8800 Family Configuration Guide

852 CHAPTER 76: QINQ CONFIGURATION
Network diagram
Figure 199 QinQ network diagram
Configuration procedure
# Enable IGMP-snooping in VLAN 600.
<Switch_A> system-view
[Switch_A] vlan 600
[Switch_A-vlan600] igmp-snooping enable
[Switch_A-vlan600] quit
# Configure the downlink port GigabitEthernet 4/1/2 to a hybrid port. Configure
VLAN 1000 to be untagged and VLAN 600 to be tagged.
[Switch_A] intface GigabitEthernet4/1/2
[Switch_A-GigabitEthernet4/1/2] port link-type hybrid
[Switch_A-GigabitEthernet4/1/2] port hybrid vlan 600 tagged
[Switch_A-GigabitEthernet4/1/2] port hybrid vlan 1000 untagged
[Switch_A-GigabitEthernet4/1/2] quit
# Configure the flow template.
[Switch_A] flow-template user-defined slot 4 s-tag-vlan
[Switch_A-GigabitEthernet4/1/2] flow-template user-defined
[Switch_A-GigabitEthernet4/1/2] quit
# Configure QinQ so that when the packets of VLAN 100 to 512 leave the uplink
port GigabitEthernet 4/1/1, they need to be tagged with the exterior tag of VLAN
100.
[Switch_A] acl number 4000
[Switch_A-acl-link-4000] rule 0 permit s-tag-vlan 100 to 512 nested-vlan 1000
[Switch_A-GigabitEthernet4/1/2] traffic-redirect inbound link-group 4000 rule 0
nested-vlan 1000
[Switch_A-GigabitEthernet4/1/2] vlan filter disable
[Switch_A-GigabitEthernet4/1/2] quit
SwitchA
SwitchC
SwitchB
SwitchA
SwitchC
GE3/1/1 (trunk permit VLAN 600, 1000)
SwitchB
GE3/1/2 (trunk permit VLAN 600, 1000)
GE2/1/2 (trunk permit VLAN 600, 1000)
GE2/1/1 (hybrid VLAN 600 tagged 1000 untagged)
GE4/11 (trunk permit VLAN 600, 1000)
SwitchA
SwitchC
SwitchB
SwitchA
SwitchC
SwitchB
GE4/1/2 (hybrid VLAN 600 tagged 1000 untagged)