3Com Switch 7750 Configuration Guide Guide
Selective QinQ Configuration Example 159
Confiuguration
Procedure
# Enter system view.
<SwitchA> 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 of
packets of VLAN 10 and VLAN 100 and remove the outer tags of packets of other
VLANs.
[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 GigabitEthernet1/0/1 port view.
[SwitchA] interface GigabitEthernet 1/0/1
# Configure the port to be a hybrid port.
[SwitchA-GigabitEthernet1/0/1] port link-type hybrid
# Configure the port to permit the packets of all the VLANs.
[SwitchA-GigabitEthernet1/0/1] port hybrid vlan 1 to 4094 untagged
# Set the PVID of the port to 8.
[SwitchA-GigabitEthernet1/0/1] port hybrid pvid vlan 8
# Enable QinQ.
[SwitchA-GigabitEthernet1/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-GigabitEthernet1/0/1] vlan-vpn vid 10 uplink GigabitEthernet 2/0/1
# Specify the inner VLAN tags.
[SwitchA-GigabitEthernet1/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-GigabitEthernet1/0/1-vid-10] quit
[SwitchA-GigabitEthernet1/0/1] vlan-vpn vid 100 uplink GigabitEthernet 2/0/1
# Specify the inner VLAN tags.