52
[Router-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[Router-Virtual-Template1] quit
# Configure the PPPoE server on the Router.
[Router] interface ethernet 1/1
[Router-Ethernet1/1] pppoe-server bind virtual-template 1
[Router-Ethernet1/1] quit
# Configure local authentication for the users in the default ISP domain system.
[Router] domain system
[Router-isp-system] authentication ppp local
# Add a local IP address pool that contains nine IP addresses.
[Router-isp-system] ip pool 1 1.1.1.2 1.1.1.10
Verifying the configuration
After the configuration, Host A and Host B can access the Internet using the username user1 and
password pass1 through the Router if they have PPPoE client software installed.
If you specify the authentication scheme as radius-scheme or hwtacacs-scheme by using the
authentication ppp command, you must configure RADIUS/HWTACACS settings to enable AAA.
For more information, see HPE FlexNetwork MSR Router Series Comware 5 Security Configuration
Guide.
PPPoE client configuration example
Network requirements
As shown in Figure 13, configure the routers to make Router A authenticate Router B using PAP or
CHAP.
Figure 13 Network diagram
Configuring PAP authentication
1. Configure Router A as the PPPoE server:
# Add a PPPoE user.
<RouterA> system-view
[RouterA] local-user user2
[RouterA-luser-user2] password simple hello
[RouterA-luser-user2] service-type ppp
[RouterA-luser-user2] quit
# Configure virtual template 1.
[RouterA] interface virtual-template 1
[RouterA-Virtual-Template1] ppp authentication-mode pap
[RouterA-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[RouterA-Virtual-Template1] remote address 1.1.1.2
[RouterA-Virtual-Template1] quit
# Configure the PPPoE server.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] pppoe-server bind virtual-template 1