Selective QinQ Configuration Example 167Selective QinQConfigurationExampleNetwork Requirements ■ Switch A is a Switch 7750.■ Enable QinQ on GigabitEthernet2/0/1 port. Set the PVID of the port to 8.■ Insert the tag of VLAN 10 to packets of VLAN 8 through VLAN 15 as the outerVLAN tag. Insert the tag of VLAN 100 to packets of VLAN 20 through VLAN 25as the outer VLAN tag.■ GigabitEthernet2/0/1 is the upstream port of the outer VLAN tag. It is requiredthat the outer tags of packets of VLAN 10 and VLAN 100 are kept while theouter tags of packets of other VLANs are removed.Network Diagram Figure 47 Network diagram for selective QinQ configurationConfiguration Procedure # Enter system view. system-view# Enter GigabitEthernet2/0/1 port view.[SwitchA] interface GigabitEthernet 2/0/1# Configure this port to be a hybrid port. And configure to keep the outer tags ofpackets of VLAN 10 and VLAN 100 and remove the outer tags of packets of otherVLANs.[SwitchA-GigabitEthernet2/0/1] port link-type hybrid[SwitchA-GigabitEthernet2/0/1] port hybrid vlan 1 to 9 untagged[SwitchA-GigabitEthernet2/0/1] port hybrid vlan 11 to 99 untagged[SwitchA-GigabitEthernet2/0/1] port hybrid 101 to 4094 untagged[SwitchA-GigabitEthernet2/0/1] port hybrid 10 tagged[SwitchA-GigabitEthernet2/0/1] port hybrid 100 tagged# Enter GigabitEthernet2/0/1 port view.[SwitchA] interface GigabitEthernet 2/0/1# Configure the port to be a hybrid port.[SwitchA-GigabitEthernet2/0/1] port link-type hybridCustomerProviderGE 2/0/1GE2/0/2VLAN 8~15VLAN 20~25VLAN 10VLAN 100Switch A