Can I rapidly delete all QinQ configurations of an interface

16

On a switch running V100R006 or a later version, the undo port vlan-stacking all command can be used to quickly delete all selective QinQ configurations from an interface.

Other related questions:
How do I delete the configuration on a specified interface of a WLAN device
To delete all configurations on a specified interface of a WLAN device, you need to delete the configurations one by one. For example, if GE0/0/1 works in auto-negotiation mode and automatically negotiates both the rate and the duplex mode, run the following commands to delete corresponding configurations: - Run the undo auto duplex command in the interface view to restore the default duplex mode for the Ethernet electrical interface in auto-negotiation mode. - Run the undo auto speed command in the interface view to restore the default negotiation rate for the Ethernet electrical interface in auto-negotiation mode.

How to rapidly query the link types and default VLANs of all interfaces
Run the display port vlan command to check the link types and default VLANs of all interfaces. Example: V200R005 and later versions display port vlan Port Link Type PVID Trunk VLAN List ------------------------------------------------------------------------------- Eth-Trunk2 auto 1 1-4094 Eth-Trunk3 hybrid 1 - Eth-Trunk5 auto 1 1-4094 Ethernet0/0/1 auto 1 1-4094 Ethernet0/0/2 auto 1 1-4094 Ethernet0/0/3 auto 1 1-4094 Ethernet0/0/4 auto 1 1-4094 Ethernet0/0/5 auto 1 1-4094 Ethernet0/0/6 auto 0 - Ethernet0/0/7 auto 1 1-4094 Ethernet0/0/8 auto 0 - Ethernet0/0/9 auto 0 - Ethernet0/0/10 auto 1 1-4094 Ethernet0/0/11 auto 1 1-4094 Ethernet0/0/12 auto 0 - Ethernet0/0/13 auto 1 1-4094 Ethernet0/0/14 auto 1 1-4094 Ethernet0/0/15 auto 1 1-4094 Ethernet0/0/16 auto 1 1-4094 Ethernet0/0/17 auto 1 1-4094 Ethernet0/0/18 auto 1 1-4094 Ethernet0/0/19 auto 1 1-4094 Ethernet0/0/20 auto 1 1-4094 Ethernet0/0/21 access 20 - Ethernet0/0/22 auto 1 1-4094 Ethernet0/0/23 auto 1 1-4094 Ethernet0/0/24 access 4094 - GigabitEthernet0/0/1 auto 0 - GigabitEthernet0/0/2 auto 1 1-4094 GigabitEthernet0/0/3 auto 1 1-4094 GigabitEthernet0/0/4 auto 1 1-4094 Earlier versions of V200R005 (excluding V200R005) display port vlan Port Link Type PVID Trunk VLAN List ------------------------------------------------------------------------------- GigabitEthernet0/0/1 trunk 1 1 GigabitEthernet0/0/2 hybrid 1 - GigabitEthernet0/0/3 hybrid 1 - GigabitEthernet0/0/4 hybrid 1 - GigabitEthernet0/0/5 access 10 - GigabitEthernet0/0/6 hybrid 1 - GigabitEthernet0/0/7 hybrid 1 - GigabitEthernet0/0/8 hybrid 1 - GigabitEthernet0/0/9 hybrid 1 - GigabitEthernet0/0/10 hybrid 1 - GigabitEthernet0/0/11 hybrid 1 - GigabitEthernet0/0/12 hybrid 1 - GigabitEthernet0/0/13 hybrid 1 - GigabitEthernet0/0/15 hybrid 1 - GigabitEthernet0/0/16 hybrid 1 - GigabitEthernet0/0/17 hybrid 1 - GigabitEthernet0/0/18 hybrid 1 - GigabitEthernet0/0/19 hybrid 1 - GigabitEthernet0/0/20 hybrid 1 - GigabitEthernet0/0/21 hybrid 1 - GigabitEthernet0/0/22 hybrid 1 - GigabitEthernet0/0/23 hybrid 1 - GigabitEthernet0/0/24 hybrid 1 -The Link Type field indicates the link type of an interface, the PVID field indicates the default VLAN, and the Trunk VLAN List field indicates the list of VLANs allowed by a trunk interface. If the interface does not join any VLAN, the Trunk VLAN List field is displayed as -. If the link type of an interface is negotiation-desirable or negotiation-auto, the Trunk VLAN List field is displayed as 1 to 4094.

Can I directly delete inner VLAN IDs from QinQ configuration
If the switch is running V100R005 or an earlier version, one or more inner VLAN IDs in QinQ cannot be directly deleted. You must delete the current selective QinQ configuration, and then reconfigure the inner VLAN IDs that do not need to be deleted. For example, the port vlan-stacking vlan 10 to 20 stack-vlan 100 command is configured on the switch. To delete inner VLAN 15, perform the following operations: Run the undo port vlan-stacking vlan 10 to 20 stack-vlan 100 command to delete the current selective QinQ configuration. Run the port vlan-stacking vlan 10 to 14 stack-vlan 100 and port vlan-stacking vlan 16 to 20 stack-vlan 100 commands to reconfigure the inner VLAN IDs that do not need to be deleted. If the switch is running a version later than V100R005, one or more inner VLAN IDs in QinQ can be directly deleted.

How can I configure selective QinQ on CE switches
Selective QinQ is also called VLAN stacking. It adds different outer tags to the frames received on a Layer 2 QinQ interface according to different inner tags or the frames matching traffic classification rules. This function enables refined management of users and services. # Configure selective QinQ on 10GE1/0/1 and add VLAN 100 in the outer tag to the tagged frames with the VLAN range of 10 to 13. 
system-view
[~HUAWEI] vlan batch 10 to 13 100
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid untagged vlan 100 [*HUAWEI-10GE1/0/1] port vlan-stacking vlan 10 to 13 stack-vlan 100
[*HUAWEI-10GE1/0/1] commit
Description: - Selective QinQ can be enabled only on hybrid and trunk interfaces and applied to incoming packets. - The outer VLAN ID must exist and the interface must be added to the stack VLAN in untagged mode. - If the port vlan-stacking command with VLAN ranges specified has been executed for three or more times and VLAN ranges are combined twice at least, the configuration of each command must be committed. Otherwise, packets may be lost. For example, when port vlan-stacking vlan 30 to 60 stack-vlan 100, port vlan-stacking vlan 20 to 30 stack-vlan 100, and port vlan-stacking vlan 60 to 70 stack-vlan 100 commands are executed, VLAN ranges 20 to 60 and 20 to 70 are combined twice. Therefore, commit each command configuration.

Configure QinQ
QinQ (802.1Q-in-802.1Q) expands VLAN space by adding an additional 802.1Q tag to 802.1Q tag packets. It allows services in a private network to be transparently transmitted over a public network. A packet transmitted on the backbone network carries two 802.1Q tags: a public VLAN tag and a private VLAN tag. QinQ implementation falls into two types: basic QinQ and flexible QinQ. Basic QinQ is implemented based on an interface. After this feature is configured on an interface, the interface will attach a default local tag to packets it receives, regardless of whether the packets carry a VLAN tag. For details about the configuration procedure, choose Configuration > CLI-based Configuration > Ethernet Switching Configuration Guide > QinQ Configuration > Configuration Examples > Example for Confituring Basic QinQ through the URL: Product Documentation. Flexible QinQ is implemented based on a combination of interfaces and VLANs. After receiving packets, an interface may forward packets based on one tag or two taggs. For details about the configuration procedure, choose Configuration > CLI-based Configuration > Ethernet Switching Configuration Guide > QinQ Configuration > Configuration Examples > Example for Confituring Selective QinQ through the URL: Product Documentation.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top