Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Example for Configuring the Device as a PPPoE Server to Connect Users to the

Internet

Applicability
This example applies to all versions of AR routers.

Networking Requirements
As shown in Figure 4-21, hosts with PPPoE client installed on the enterprise intranet access the Internet through the
Router. The Router functions as the PPPoE server to perform local authentication and allocates IP addresses to the
hosts from an IP address pool.
Figure 4-21 Networking diagram for PPPoE server configuration

Procedure
1. Configure the Router. (Take V200R005C20 as an example.)
2. #
3. ip pool pool2 //Create an IP address pool2.
4. gateway-list 192.168.10.1 //Configure the egress gateway IP address.
5. network 192.168.10.0 mask 255.255.255.0 //Configure the range of allocable IP
addresses in the address pool.
6. #
7. aaa //Configure local authentication.
8. local-user client password cipher %@%@N!}w4F\6;42P$A2'XqkP(Ix6%@%@ //Configure the
user name for PPPoE clients to use in authentication.
9. local-user client privilege level 0
10. local-user client service-type ppp //Set the service type of the PPPoE client to
PPP.
11. #
12. interface Virtual-Template1 //Create a virtual template (VT) interface and enter the
VT interface view.
13. ppp authentication-mode chap //Set the authentication mode for the PPPoE client to
CHAP.
14. remote address pool pool2 //Specify an IP address pool for the PPPoE client. The
PPPoE client will be allocated an IP address from the address pool.
15. ip address 192.168.10.1 255.255.255.0 //Assign an IP address to the VT interface.
16. #
17. interface Ethernet1/0/0 //Enter the Ethernet interface view.
18. pppoe-server bind Virtual-Template 1 //Enable the PPPoE server function on the
Ethernet interface.
19. #
20. Verify the configuration.
# Run the display pppoe-server session all command on the Router to display the PPPoE session status and
configurations. The command output shows that the PPPoE session status is Up and the PPPoE server
configuration is correct.

Configuration Notes
After the PPPoE client is installed on all hosts and the client user names and passwords are configured on the hosts, the
hosts can use the PPPoE protocol to access the Internet through the Router.

You might also like