H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – QinQ
H3C S7500 Series Ethernet Switches Chapter 2
Selective QinQ Configuration Commands
2-2
Examples
# Specify to insert the tag of VLAN 20 as the outer tag to the packets with their inner
VLAN tags being the tags of VLAN 8 through VLAN 15 for Ethernet 1/0/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] vlan-vpn vid 20
[H3C-Ethernet1/0/1-vid-20] raw-vlan-id inbound 8 to 15
2.1.2 vlan-vpn vid
Syntax
vlan-vpn vid vlan-id uplink interface-type interface-number [ untagged ]
undo vlan-vpn vid vlan-id
View
Ethernet port view
Parameters
vid vlan-id: Specifies ID of the VLAN whose tag is to be inserted to matched packets as
the outer VLAN tag.
uplink interface-type interface-number: Specifies the upstream port of the packets to
be tagged with outer VLAN tags.
untagged: Sets whether to keep VLAN tags of the packets tagged with outer VLAN
tags when they are forwarded on the upstream port.
Description
Use the vlan-vpn vid command to specify the VLAN whose tag is to be inserted to
matched packets as the outer VLAN tag and specify the upstream port for these
packets. You can use the raw-vlan-id inbound command to specify the outer VLAN
tag for packets with the specified inner VLAN tags.
Use the undo vlan-vpn vid command to remove the configuration.
When the upstream port and the port where the VLAN tag is configured are not on the
same card, if the card where the upstream port resides is unplugged, this configuration
is invisible. This configuration takes effect again when the unplugged card is plugged.