- Table of Contents
-
- 04-Layer 2—LAN Switching Command Reference
- 00-Preface
- 01-MAC address table commands
- 02-Ethernet link aggregation commands
- 03-M-LAG commands
- 04-Port isolation commands
- 05-VLAN commands
- 06-MVRP commands
- 07-QinQ commands
- 08-VLAN mapping commands
- 09-Loop detection commands
- 10-Spanning tree commands
- 11-LLDP commands
- 12-Layer 2 forwarding commands
- Related Documents
-
| Title | Size | Download |
|---|---|---|
| 07-QinQ commands | 56.88 KB |
QinQ commands
MDC is supported only when the device operates in standalone mode. For more information about standalone mode, see IRF configuration in Virtual Technologies Configuration Guide. For more information about MDC and device models that support MDC, see MDC configuration in Virtual Technologies Configuration Guide.
This document uses the following terms:
· CVLAN—Customer network VLANs, also called inner VLANs, refer to VLANs that a customer uses on the private network.
· SVLAN—Service provider network VLANs, also called outer VLANs, refer to VLANs that a service provider uses to transmit VLAN tagged traffic for customers.
display qinq
Use display qinq to display QinQ-enabled interfaces.
Syntax
display qinq [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays all QinQ-enabled interfaces.
Usage guidelines
If QinQ is not enabled on any interfaces, this command does not provide any output.
Examples
# Enable QinQ on Ten-GigabitEthernet 3/0/1. Then, verify that QinQ is enabled on the interface.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] qinq enable
[Sysname-Ten-GigabitEthernet3/0/1] display qinq interface ten-gigabitethernet 3/0/1
Interface
Ten-GigabitEthernet3/0/1
# Enable QinQ on Ten-GigabitEthernet 3/0/1 and Ten-GigabitEthernet 3/0/3. Then, verify that QinQ is enabled on the interfaces.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] qinq enable
[Sysname-Ten-GigabitEthernet3/0/1] quit
[Sysname] interface ten-gigabitethernet 3/0/3
[Sysname-Ten-GigabitEthernet3/0/3] qinq enable
[Sysname-Ten-GigabitEthernet3/0/3] display qinq
Interface
Ten-GigabitEthernet3/0/1
Ten-GigabitEthernet3/0/3
Related commands
qinq enable
qinq enable
Use qinq enable to enable QinQ on an interface.
Use undo qinq enable to disable QinQ on an interface.
Syntax
qinq enable
undo qinq enable
Default
QinQ is disabled on interfaces.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Examples
# Enable QinQ on Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] qinq enable
display qinq
qinq ethernet-type (interface view)
Use qinq ethernet-type to set the TPID value in SVLAN tags on an interface.
Use undo qinq ethernet-type to restore the default TPID value in SVLAN tags on an interface.
Syntax
qinq ethernet-type service-tag hex-value
undo qinq ethernet-type service-tag
Default
The TPID value in SVLAN tags is 8100 in hexadecimal notation.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
service-tag: Sets the TPID value in the SVLAN tag.
hex-value: Sets a hexadecimal TPID value in the range of 1 to ffff, excluding the reserved EtherType values listed in Table 1.
Table 1 Reserved EtherType 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 |
|
LLDP |
0x88cc |
|
802.1X |
0x888e |
|
802.1ag |
0x8902 |
|
Cluster |
0x88a7 |
|
Reserved |
0xfffd/0xfffe/0xffff |
Examples
# Set the TPID value in SVLAN tags to 9100 (hexadecimal) on Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] qinq ethernet-type service-tag 9100
Related commands
qinq ethernet-type (system view)
qinq ethernet-type (system view)
Use qinq ethernet-type to set the TPID value in CVLAN tags globally.
Use undo qinq ethernet-type to restore the default TPID value in CVLAN tags globally.
Syntax
qinq ethernet-type customer-tag hex-value
undo qinq ethernet-type customer-tag
Default
The global TPID value in CVLAN tags is 8100 in hexadecimal notation.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
customer-tag: Sets the TPID value in the CVLAN tag.
hex-value: Sets a hexadecimal TPID value in the range of 1 to ffff, excluding the reserved EtherType values listed in Table 2.
Table 2 Reserved EtherType 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 |
|
LLDP |
0x88cc |
|
802.1X |
0x888e |
|
802.1ag |
0x8902 |
|
Cluster |
0x88a7 |
|
Reserved |
0xfffd/0xfffe/0xffff |
Examples
# Set the TPID value in CVLAN tags to 8200 (hexadecimal).
<Sysname> system-view
[Sysname] qinq ethernet-type customer-tag 8200
qinq ethernet-type (interface view)
