- 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-VLAN Termination Commands
- 12-MAC-in-MAC Commands
- 13-LLDP Commands
- 14-MVRP Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
11-VLAN Termination Commands | 56.12 KB |
The switch does not support QinQ termination when it is operating in standard mode. For more information about the commands of system operating modes, see Fundamentals Command Reference.
second-dot1q
Use second-dot1q to enable QinQ termination on an interface and specify a list of VLAN IDs that the interface can add to packets as the inner VLAN tag before sending them out.
Use undo second-dot1q to restore the default.
Syntax
second-dot1q { vlan-list | any }
undo second-dot1q { vlan-list | any }
Default
QinQ termination is disabled and VLAN interfaces process only the outermost VLAN tag of packets.
Views
VLAN interface view
Default command level
2: System level
Parameters
any: Configures the interface to add any VLAN in the range of 1 to 4094 as the inner VLAN tag to the packets before sending them out.
vlan-list: Specifies a list of inner VLAN IDs in the format of { vlan-id1 [ to vlan-id2 ] }&<1-10>, where the vlan-id argument is in the range of 1 to 4094 and &<1-10> indicates that you can specify up to 10 vlan-id1 [ to vlan-id2 ] parameters.
Usage guidelines
A VLAN interface always adds its interface number as the outer VLAN tag to the packets it sends out.
When the QinQ termination configuration on the current VLAN interface is changed, refresh the ARP entries on the Layer 2 physical interface to which the VLAN interface is bound by executing reset arp interface. For more information about this command, see Layer 3—IP Services Command Reference.
After you execute second-dot1q on an interface on which QinQ is disabled or cancel all the VLAN IDs related to QinQ termination, the interface restarts and the ARP table entry corresponding to the interface is removed.
Examples
# Enable QinQ termination on VLAN-interface 100 and specify VLANs 10 through 20 as the inner VLAN tags that the interface can add to packets before sending them out. Enable QinQ termination on VLAN-interface 12 and specify VLAN 100 as the inner VLAN tags that the interface can add to packets before sending them out.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] second-dot1q 10 to 20
[Sysname-Vlan-interface100] quit
[Sysname] interface vlan-interface 12
[Sysname-Vlan-interface12] second-dot1q 100
The following table shows the results of the previous configuration:
Interface |
Outermost VLAN ID of VLAN-tagged packets that the interface can terminate |
Inner VLAN IDs of VLAN-tagged packets that the interface can send |
VLAN-interface 100 |
100 |
10–20 |
VLAN-interface 12 |
12 |
100 |
vlan-termination broadcast enable
Use vlan-termination broadcast enable to enable the interface to transmit broadcast and multicast packets.
Use undo vlan-termination broadcast enable to restore the default.
Syntax
vlan-termination broadcast enable
undo vlan-termination broadcast enable
Default
An ambiguous QinQ termination-enabled interface drops broadcast and multicast packets.
Views
VLAN interface view
Default command level
2: System level
Examples
# Enable VLAN-interface 10 to transmit broadcast and multicast packets with VLAN IDs in the range of 10 to 20.
<Sysname> system-view
[Sysname] interface Vlan-interface 10
[Sysname-Vlan-interface10] second-dot1q 10 to 20
[Sysname-Vlan-interface10] vlan-termination broadcast enable