H3C S7500 Series Ethernet Switches Operation Manual
Operation Manual – QinQ
H3C S7500 Series Ethernet Switches Chapter 2
Selective QinQ Configuration
2-4
# Specify the outer VLAN tag of VLAN 100 to be inserted to packets, and specify the
upstream port of the tag to be GigabitEthernet 2/0/1 which does not remove the outer
VLAN tags of packets when transmitting these packets.
[SwitchA-GigabitEthernet2/0/1-vid-10] vlan-vpn vid 100 uplink
GigabitEthernet 2/0/2
# Specify the inner VLAN tags. The packets with the specific inner VLAN tags are
tagged with the tag of VLAN 100 as the outer VLAN tag.
[SwitchA-GigabitEthernet2/0/1-vid-100] raw-vlan-id inbound 20 to 25
# Return to system view.
[SwitchA-GigabitEthernet2/0/1-vid-100] quit
[SwitchA-GigabitEthernet2/0/1] quit
[SwitchA]
# Enter GigabitEthernet 2/0/2 port view.
[SwitchA] interface GigabitEthernet 2/0/2
[SwitchA-GigabitEthernet2/0/2]
# Configure GigabitEthernet 2/0/1 port as a hybrid port, and then configure the port to
remove the outer VLAN tags for the packets with the tag of VLAN 10 as the outer VLAN
tags and keep the other outer VLAN tags when packets are forwarded on the port.
[SwitchA-GigabitEthernet2/0/1] port link-type hybrid
[SwitchA-GigabitEthernet2/0/1] port hybrid vlan 1 to 4094 tagged
[SwitchA-GigabitEthernet2/0/1] port hybrid vlan 10 untagged
Note:
With the configurations above, the packets received on GigabitEthernet 2/0/1 are
processed as follows:
z Inserting VLAN 10 tag as the outer VLAN tag to single-tagged packets with their
tags being the tags of VLAN 8 through VLAN 15.
z Inserting VLAN 100 tag as the outer VLAN tag to single-tagged packets with their
tags being the tags of VLAN 20 through VLAN 25.
z Inserting VLAN 8 tag as the outer VLAN tag to single-tagged packets with their tags
being neither the tags of VLAN 8 through VLAN 15 nor the tags of VLAN 20 through
VLAN 25.