How do AR routers support sub-interfaces

3

AR routers support sub-interfaces as follows:
Only Layer-3 Ethernet interfaces support the configuration of sub-interfaces. AR routers of different models and versions have no differences in the support of sub-interfaces.

Other related questions:
How to configure a sub-interface on an AR router
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.

How to delete a sub-interface of an AR router
You can delete a sub-interface of an AR router as follows: You can run the undo interface sub-interface number command to delete a created sub-interface. system-view [Huawei] undo interface gigabitethernet 1/0/0.1 //Delete sub-interface G1/0/0.1

How to configure VLAN termination on an AR router
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.

Why do I fail to configure a sub-interface on an AR router
Before configuring a sub-interface, confirm that: - The physical interface corresponding to the sub-interface is connected properly. - The physical interface is switched to a Layer-3 interface. A sub-interface can be configured only on a Layer-3 interface that can be allocated with an IP address.

Can an AR router sub-interface be bound to a PPPoE server and how to configure the AR router sub-interface to bound it to a PPPoE server
The sub-interfaces of AR routers are supported to be bound to a PPPoE server. You can perform the following steps to bind a sub-interface of the AR router to a PPPoE server: 1. Configure the interface virtual template. a. Run the system-view command to enter the system view. b. Run the interface virtual-template vt-number command to create an interface virtual template view or enter the existing interface virtual template view. c. Run the ip address ip-address { mask | mask-length } command to configure the IP address of the interface virtual template. 2. Configure the termination sub-interface. a. Run the system-view command to enter the system view. b. Run the interface { ethernet | gigabitethernet } interface-number.subinterface-number command to enter the view in which the Ethernet sub-interfaces can be specified. c. Run the control-vid vid dot1q-termination command to specify the mapping relationship between the control VLANs and the termination sub-interfaces. Note: This command is only supported in V200R001C00, V200R001C01, and V200R002C00. This command does not need to be configured in later versions. d. Configure the termination sub-interface. Note: VLAN packets can be divided into Dot1q packets (with one VLAN tag) and QinQ packets (with two VLAN tags) based on the number of VLAN tags carried by the packets. Termination sub-interfaces are divided into two corresponding types: Dot1q termination sub-interfaces used to terminate Dot1q packets and QinQ termination sub-interfaces used to terminate QinQ packets. In V200R003C00 and later versions, PPPoE supports both Dot1q packets and QinQ packets. Users can run either of the following two commands to configure the termination function on sub-interfaces based on actual requirements. However, in versions earlier than V200R003C00, PPPoE does not support QinQ packets. Users can only configure the termination function for packets carrying one VLAN tag on sub-interfaces. - Run the dot1q termination vid command to configure the termination function for packets carrying one VLAN tag on the sub-interface. - Run the qinq termination pe-vid pe-vid ce-vid command to configure the termination function of the sub-interface for packets carrying two VLAN tags. e. Run the arp broadcast enable command to enable the ARP broadcast function of the sub-interface. Note: If the ARP broadcast function of a sub-interface is enabled or disabled, the state of the sub-interface changes to Down and then to Up, which may result in a route flapping on the entire network and affect the running services. 3. Run the pppoe-server bind virtual-template vt-numbercommand to bind the specified virtual template to the Ethernet sub-interface and enable the PPPoE server function on the Ethernet sub-interface. Note: The PPPoE Server function is not enabled on sub-interfaces by default. After the PPPoE server is configured, the PPPoE client dials up to connect to the PPPoE server. After the connection is established, you can run the display pppoe-server session { all | packet } on the device to check the PPPoE session status and statistics of the PPPoE server.

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