R3303-HP HSR6800 Routers Layer 2 - WAN Configuration Guide

71
PPPoE server configuration example
Network requirements
As shown in Figure 20, Host A and Host B act as PPPoE clients and run PPPoE client dialup software. The
Router acts as the PPPoE server, performing local authentication and assigning IP addresses to the users.
The Router provides Internet access for Host A and Host B through Ethernet 1/1. It connects to the Internet
through Serial 2/0/1.
Figure 20 Network diagram
Configuration procedure
1. Configure CHAP authentication:
# Add a PPPoE user.
<Router> system-view
[Router] local-user user1
[Router-luser-user1] password simple pass1
[Router-luser-user1] service-type ppp
[Router-luser-user1] quit
# Configure virtual-template 1 on the Router.
[Router] interface virtual-template 1
[Router-Virtual-Template1] ppp authentication-mode chap domain system
[Router-Virtual-Template1] ppp chap user user1
[Router-Virtual-Template1] remote address pool 1
[Router-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[Router-Virtual-Template1] quit
# Configure PPPoE server on the Router.
[Router] interface gigabitethernet 1/0/1
[Router-GigabitEthernet1/0/1] pppoe-server bind virtual-template 1
[Router-GigabitEthernet1/0/1] quit
# Configure local authentication for the PPP 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.