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.

Scroll to top