Example for Configuring the PPPoE Server
Networking Requirements
As shown in Figure 4-13, hosts in the LAN are connected to the device functioning as the PPPoE server. Hosts on the enterprise network need to dial up to the Internet using PPPoE.
Each host needs to have the PPPoE client dial-up software installed, and be assigned a unique account for dial-up. Service requirements are as follows:
The PPPoE server dynamically assigns IP addresses to the hosts.
The PPPoE server uses AAA local authentication to authenticate users.
The PPPoE server allocates the DNS server address to the hosts.
Configuration Roadmap
Configure the global IP address pool so that the PPPoE server can dynamically assign IP addresses to hosts.
Configure a PPPoE user so that the PPPoE server can authenticate the user.
Configured the PPPoE server to specify a DNS server address for the hosts.
Procedure
Configure the global IP address pool pool1.
<Huawei> system-view[Huawei] sysname Router[Router] ip pool pool1[Router-ip-pool-pool1] network 192.168.10.0 mask 255.255.255.0[Router-ip-pool-pool1] gateway-list 192.168.10.1[Router-ip-pool-pool1] quit
Configure a PPPoE user.
[Router] aaa[Router-aaa] authentication-scheme system_a[Router-aaa-authen-system_a] authentication-mode local[Router-aaa-authen-system_a] quit[Router-aaa] authorization-scheme system_a[Router-aaa-author-system_a] quit[Router-aaa] domain system[Router-aaa-domain-system] authentication-scheme system_a[Router-aaa-domain-system] authorization-scheme system_a[Router-aaa-domain-system] quit[Router-aaa] local-user user1@System passwordPlease configure the login password (8-128) It is recommended that the password consist of at least 2 types of characters, i ncluding lowercase letters, uppercase letters, numerals and special characters. Please enter password: Please confirm password: Info: Add a new user. [Router-aaa] local-user user1@system service-type ppp[Router-aaa] quit
Create and configure a VT.
[Router] interface virtual-template 1[Router-Virtual-Template1] ppp authentication-mode chap domain system[Router-Virtual-Template1] ip address 192.168.10.1 255.255.255.0[Router-Virtual-Template1] remote address pool pool1[Router-Virtual-Template1] ppp ipcp dns 10.10.10.10 10.10.10.11[Router-Virtual-Template1] quit
Enable PPPoE on GE1/0/0 of the PPPoE server.
[Router] interface gigabitethernet 1/0/0[Router-GigabitEthernet1/0/0] pppoe-server bind virtual-template 1[Router-GigabitEthernet1/0/0] quit[Router] quit
Verify the configuration.
# After the configurations are complete, verify the configurations on both the PPPoE server and client.
PPPoE Client
Install PPPoE client software on a host and configure the user name user1@system and password huawei2012 on the host. Dial up to the PPPoE server.
PPPoE Server
Run the display pppoe-server session all command to check the PPPoE session status and configuration. The following command output shows that the PPPoE session status is Up and the session configuration is consistent with the data plan and networking.
<Router> display pppoe-server session allTotal Session: 1 SID Intf State OIntf RemMAC LocMAC 1 Virtual-Template1 UP GE1/0/0 00e0.fc03.0201 0819.a6cd.0680
Configuration Files
Configuration file of the PPPoE server
# sysname Router# ip pool pool1 gateway-list 192.168.10.1 network 192.168.10.0 mask 255.255.255.0 # aaa authentication-scheme system_a authorization-scheme system_a domain system authentication-scheme system_a authorization-scheme system_a local-user user1@system password cipher %^%#9T`|L}K(4#J3k=+I8SiJrsM:RO[iy@Uuc:LTQJ,1%^%# local-user user1@system privilege level 0 local-user user1@system service-type ppp # interface Virtual-Template1 ppp authentication-mode chap domain system remote address pool pool1 ppp keepalive retry-times 2 ppp ipcp dns 10.10.10.10 10.10.10.11 timer hold 30 ip address 192.168.10.1 255.255.255.0 # interface GigabitEthernet1/0/0 pppoe-server bind Virtual-Template 1 # return
Source :::
https://support.huawei.com/enterprise/en/doc/EDOC1100069343/f2f0ee0a/example-for-configuring-the-pppoe-server


