Dot1Q termination:
Create a sub-interface on the CE interface of the device, and run the dot1q termination vid pe-vid command to configure a termination VLAN for the sub-interface.
QinQ termination:
Create a sub-interface on the CE interface of the device, and run the qinq termination pe-vid pe-vid ce-vid ce-vid1 command to configure the two-tag termination feature for the sub-interface.
A sub-interface is a virtual interface configured on a physical interface. It is generally used for the communication between a physical link and multiple remote ends.
Sub-interfaces include: Ethernet sub-interfaces, Eth-Trunk sub-interfaces, PON sub-interfaces, ATM sub-interfaces, and FR sub-interfaces.
Configure a sub-interface as follows:
[Huawei] interface ethernet 2/0/0
[Huawei-Ethernet2/0/0] undo portswitch //Switch the current interface to a Layer-3 interface.
[Huawei-Ethernet2/0/0] quit
[Huawei] interface ethernet 2/0/0.1 //Enter the view of the sub-interface.
An example of configuring a dot1Q termination sub-interface on an AR router to support VRRP is as follows:
The roadmap of configuring a dot1Q termination sub-interface to support VRRP and implement gateway redundancy is as follows:
1. Configure IP addresses and routing protocols for different device interfaces to enable network-layer routers to be reachable.
2. Configure a VRRP group on sub-interfaces of Router A and Router B, respectively. Configure a high priority and set preemption delay to 20s on Router A and configure Router A as a master device to bear and forward traffic. Configure a low priority and configure Router B as a backup device to implement redundancy.
For details about the configuration, see the URL: Example for Configuring VRRP on a Dot1q Termination Sub-interface.
CE12800 and CE7800 series switches in V100R003C10 and later versions support the sub-interface configuration.
CE5800 sand CE6800 series switches, except the CE6810LI, in V100R005C00 and later versions support the sub-interface configuration.
The following example shows how to configure a sub-interface.
system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch //Change the interface mode to Layer 3 mode.
[*HUAWEI-10GE1/0/1] commit
[~HUAWEI-10GE1/0/1] quit
[~HUAWEI] interface 10ge 1/0/1.1 //Enter the sub-interface view.
If you have more questions, you can seek help from following ways: