- Table of Contents
-
- 03-Layer 2 Command Reference
- 00-Preface
- 01-Ethernet Interface Commands
- 02-Loopback and Null Interface Commands
- 03-VLAN Commands
- 04-MAC Address Table Commands
- 05-Ethernet Link Aggregation Commands
- 06-Spanning Tree Commands
- 07-Layer 2 Forwarding Commands
- 08-PPPoE Commands
- 09-FPGA Fast Forwarding Commands
- 10-QinQ Termination Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-QinQ Termination Commands | 59.95 KB |
QinQ termination configuration commands
Support for QinQ termination commands depends on the device model. For more information, see About the H3C Access Controllers Command References.
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.
qinq ethernet-type
Use qinq ethernet-type to set the TPID value in SVLAN tags.
Use undo qinq ethernet-type to restore the default TPID value in SVLAN tags.
Syntax
qinq ethernet-type hex-value
undo qinq ethernet-type
Default
The TPID value in SVLAN tags is 0x8100.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
|
NOTE: Support for Layer 2 aggregate interfaces depends on the device model. For more information, see About the H3C Access Controllers Command References. |
Default command level
2: System level
Parameters
hex-value: Sets a hexadecimal TPID value in the range of 0x0001 to 0xFFFF, excluding the reserved protocol type values listed in Table 1.
Table 1 Reserved 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 |
Usage guidelines
The configuration made in Layer 2 Ethernet interface view takes effect only on the port.
The configuration made in Layer 2 aggregate interface view takes effect on the aggregate interface and its member ports.
Examples
# Set the TPID value in SVLAN tags to 0x9100 on Ten-GigabitEthernet 2/0/1.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 2/0/1
[Sysname-Ten-GigabitEthernet 2/0/1] qinq ethernet-type 9100
ethernet-type
second-dot1q
Use second-dot1q to enable QinQ termination and specify the Layer 2 VLAN ID of the VLAN-tagged packets that can be terminated on an interface.
Use undo second-dot1q to restore the default.
Syntax
second-dot1q vlan-id
undo second-dot1q vlan-id
Default
QinQ termination is disabled.
Views
VLAN interface view
Default command level
2: System level
Parameters
vlan-id: Specifies a Layer 2 VLAN ID in the range of 1 to 4094.
Usage guidelines
The Layer 1 VLAN ID of the VLAN-tagged packets that can be terminated by the VLAN interface is the number of the VLAN interface. This Layer 1 VLAN ID is not configurable.
When you delete the Layer 2 VLAN ID specified in QinQ termination on an interface, the following events will occur:
· The interface will restart.
· The ARP entry of the interface will be deleted.
Examples
# Configure VLAN-interface 12 to terminate VLAN-tagged packets with Layer 2 VLAN ID 100.
<Sysname> system-view
[Sysname] interface vlan-interface 12
[Sysname-Vlan-interface12] second-dot1q 100