- Table of Contents
-
- 04-Layer 2 - LAN Switching Command Reference
- 00-Preface
- 01-VLAN Commands
- 02-MAC Address Table Commands
- 03-Spanning Tree Commands
- 04-Ethernet Link Aggregation Commands
- 05-Port Isolation Commands
- 06-QinQ Commands
- 07-VLAN Mapping Commands
- 08-BPDU Tunneling Commands
- 09-GVRP Commands
- 10-Loopback Detection Commands
- 11-MAC-in-MAC Commands
- 12-LLDP Commands
- 13-MVRP Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
06-QinQ Commands | 70.16 KB |
qinq enable
Syntax
qinq enable
undo qinq enable
View
Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use the qinq enable command to enable the basic QinQ function.
Use the undo qinq enable command to disable the basic QinQ function.
By default, the basic QinQ function is disabled.
With the basic QinQ function enabled on a port, the port tags each received frame with the VLAN tag of the default VLAN of the port.
Configured in Layer 2 Ethernet interface view, the command takes effect on the interface only. Configured in Layer 2 aggregate interface view, the command takes effect on the aggregate interface and the member ports in its aggregation group. Configured in port group view, the command takes effect on all ports in the port group.
Examples
# Enable basic QinQ function on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] qinq enable
qinq ethernet-type
Syntax
qinq ethernet-type hex-value
undo qinq ethernet-type
View
Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
hex-value: Sets a hexadecimal tag protocol identifier (TPID) value, excluding the common protocol type values listed in Table 1.
Table 1 Common protocol type values
Protocol type |
Value |
ARP |
0x0806 |
PUP |
0x0200 |
RARP |
0x8035 |
IP |
0x0800 |
IPv6 |
0x86DD |
PPPoE |
0x8863/0x8864 |
MPLS |
0x8847/0x8848 |
IPX/SPX |
0x8137 |
IS-IS |
0x8000 |
LACP |
0x8809 |
802.1X |
0x888E |
Cluster |
0x88A7 |
Reserved |
0xFFFD/0xFFFE/0xFFFF |
Description
Use the qinq ethernet-type command to set the TPID in the outer VLAN tag of QinQ frames.
Use the undo qinq ethernet-type command to restore the default.
The default TPID in the outer VLAN tag of QinQ frames is 0x8100.
A board supports only one TPID in addition to its default TPID.
Configured in Layer 2 Ethernet interface view, the command takes effect on the interface only. Configured in aggregate interface view, the command takes effect on the Layer 2 aggregate interface and the member ports in its aggregation group. Configured in port group view, the command takes effect on all ports in the port group.
If you execute the command repeatedly, the most recent TPID value takes effect.
Examples
# Set the TPID in the outer VLAN tag of QinQ frames to 0x9100 on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1