The qinq stacking pe-vid command enables a QinQ stacking sub-interface to add a specified outer VLAN tag to received packets.
The undo qinq stacking pe-vid command disables the function.
By default, a QinQ stacking sub-interface adds an automatically assigned outer VLAN tag to received packets.
Usage Scenario
By default, after a QinQ stacking sub-interface receives a packet, it adds an automatically assigned outer VLAN tag to the packet, instead of differentiating outer VLAN tags based on users and service types. This mechanism limits flexible operation of multi-user and multi-service. To address this problem, run the qinq stacking pe-vid command to enable a QinQ stacking sub-interface to add a specified outer VLAN tag to its received packets.
Prerequisites
Before running the qinq stacking vid command in the VE sub-interface view or global VE sub-interface view, the interface on which the sub-interface is to be created has been bound to a VE-Group.
Configuration Impact
After the qinq stacking pe-vid command is run on a QinQ stacking sub-interface:
Precautions
Before you run the qinq stacking pe-vid command, you must run the qinq stacking vid command to specify an inner VLAN tag to be added. Otherwise, the qinq stacking pe-vid command does not take effect.
If you do not run the qinq stacking pe-vid command on a QinQ stacking sub-interface, the sub-interface adds a default outer VLAN tag to received packets. The default outer VLAN tag is assigned automatically by the device and cannot be configured by users.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] qinq stacking pe-vid 100
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] qinq stacking pe-vid 100 8021p 3