For the PPPoE configuration content, let's analyze a case. Let's take a look at the network topology of PPPoE configuration. From the topology below, let's take a look at the specific network environment. Then parse the configuration process.
The configuration of this case is divided into seven steps:
PPPoE configuration Step 1: Configure vpdn
Vpdn enable (vpdn)
Vpdn-group office (create a vpdn group ,)
Request-dialin (initialize a vpnd tunnel and create a vpdn sub-group to which the request is dial ,)
Protocol pppoe (vpdn sub-group uses pppoe to establish a session tunnel)
Step 2 of PPPoE configuration: configure the interface for connecting the router to the adsl modem
Interface Ethernet1
Pppoe enable allows the Ethernet interface to run pppoe
Pppoe-client dial-pool-number 1 Add the pppoe dialing client of the Ethernet interface to the dialing pool 1
Step 3 of PPPoE configuration: configure the logical dialing Interface
Interface Dialer1
Ip address negotiated obtains the ip address from the dynamic negotiation of the adsl service provider
Ip nat outside enables NAT for this interface
Encapsulation ppp encapsulates the ppp protocol for this interface
Dialer pool 1 this interface uses the dial-up pool No. 1 for dialing
Dialer-group 1 this command is of little significance to pppoe
Ppp authentication pap callin enables ppp pap Verification
Ppp pap sent-username account name and password
Step 4 of PPPoE configuration: Configure internal network interfaces
Interface Ethernet0 (internal network interface)
Ip address 10.1.1.1 255.255.255.0
Ip nat inside enables NAT for this interface
Step 5 of PPPoE configuration: configure the router to provide dhcp service for internal network hosts
Ip dhcp excluded-address 10.1.1.1
Ip dhcp pool ABC
Import all (import dns and wins server)
Network 10.1.1.0 255.255.255.0
Default-router 10.1.1.1
Step 6 of PPPoE configuration: Configure NAT
Access-list 1 permit 10.1.1.0 0.0.255
Ip nat inside source list 1 interface Dialer1 overload
Step 7 of PPPoE configuration: configure the default route
Ip route 0.0.0.0 0.0.0.0 Dialer1
PPPoE configuration requires chap authentication in some regions. The corresponding commands are as follows:
Ppp authentication chap callin
Ppp chap hostname abc123 @ baidu
Ppp chap password **********