3Com Switch 7750 Configuration Guide
168 CHAPTER 20: SELECTIVE QINQ CONFIGURATION
# Configure the port to permit the packets of all the VLANs.
[SwitchA-GigabitEthernet2/0/1] port hybrid vlan 1 to 4094 untagged
# Set the PVID of the port to 8.
[SwitchA-GigabitEthernet2/0/1] port hybrid pvid vlan 8
# Enable QinQ.
[SwitchA-GigabitEthernet2/0/1] vlan-vpn enable
# Specify the outer VLAN tag to be inserted to packets of VLAN 10, and specify
the upstream port of the tag to be GigabitEthernet2/0/1 which does not remove
the outer VLAN tags of packets when transmitting these packets.
[SwitchA-GigabitEthernet2/0/1] vlan-vpn vid 10 uplink GigabitEthernet 2/0/1
# Specify the inner VLAN tags.
[SwitchA-GigabitEthernet2/0/1-vid-10] raw-vlan-id inbound 8 to 15
# Specify the outer VLAN tag of VLAN 100 to be inserted to packets, and specify
the upstream port of the tag to be GigabitEthernet2/0/1 which does not remove
the outer VLAN tags of packets when transmitting these packets.
[SwitchA-GigabitEthernet2/0/1-vid-10] quit
[SwitchA-GigabitEthernet2/0/1] vlan-vpn vid 100 uplink GigabitEthernet 2/0/1
# Specify the inner VLAN tags.
[SwitchA-GigabitEthernet2/0/1-vid-100] raw-vlan-id inbound 20 to 25
n
The above configuration causes the packets reaching GigabitEthernet2/0/1 port
being processed as follows
■ Inserting VLAN 10 tag as the outer VLAN tag to single-tagged packets with
their tags being that of VLAN 8 through VLAN 15.
■ Inserting VLAN 100 tag as the outer VLAN tag to single-tagged packets with
their tags being that of VLAN 20 through VLAN 25.
■ Inserting VLAN 8 tag as the outer VLAN tag to single-tagged packets with their
tags being neither that of VLAN 8 through VLAN 15 nor that of VLAN 20
through VLAN 25.