The following describes the pppoe server content in detail. First, we will describe the entire experiment, and then explain the experiment process in detail. Some of the commands and code contained in the Code are worth your attention.
1. Experiment description
Cisco 1721 to simulate PPPOE SERVER
PIX501 to simulate PPPOE Client
2. Experiment Process
Configure CISCO 1721 as PPPOE SERVER
- // First, the underlying pppoe server configuration. You are familiar with it ~~
- Router (config) # no ip domain-lookup
- Router (config) # line console 0
- Router (config-line) # exec-timeout 0 0
- Router (config-line) # logg syn
- Router (config-line) # host PPPOE_SERVER
- PPPOE_SERVER (config) # int e0/0
- PPPOE_SERVER (config-if) # ip add 192.168.0.1 255.255.255.0
- PPPOE_SERVER (config-if) # no sh
- PPPOE_SERVER (config-if) # enable pppoe session under PPPOE // Interface
- PPPOE_SERVER (config-if) # exit
- PPPOE_SERVER (config) # vpdn enable // enable the VPDN service globally
- PPPOE_SERVER (config) # vpdn-group PPPOE // create a VPDN dial-up group. The name I set here is PPPOE, note that the group name created here must be the same as the VPDN group name enabled on the PIX. Otherwise, the pppoe session fails.
- PPPOE_SERVER (config-vpdn) # accept-dialin // receives the dialing request
- PPPOE_SER (config-vpdn-acc-in) # protocol pppoe // specify the Session protocol as pppoe
- PPPOE_SER (config-vpdn-acc-in) # virtual-template 1 // create virtual template 1, indicating the first virtual templates. After creating a virtual template, the Virtual-Access1 is immediately displayed, changed state to up
- PPPOE_SER (config-vpdn-acc-in) # end
- * Mar 1 00:06:27. 707: % LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up
- * Mar 1 00:06:28. 707: % LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
- PPPOE_SERVER # conf t
- Enter configuration commands, one per line. End with CNTL/Z.
- PPPOE_SERVER (config) # int virtual-template 1 // enter virtual template 1
- PPPOE_SERVER (config-if) # ip unnumbered e0/0 // do not configure ip addresses for the virtual template. We recommend that you use ip unnumbered to borrow from the physical interface E0/0, pppoe enable is enabled because E0/0 is an outside Interface
- PPPOE_SERVER (config-if) # ppp authentication pap // specify the ppp authentication method as pap, the authentication method as PAP, and the session user name and password in the authentication process as plain text. You can use chap
- PPPOE_SERVER (config-if) # peer default ip address pool ADSL // The name of the specified address pool is ADSL. You can specify the name at will, but it must be consistent with the following address pool name.
- PPPOE_SERVER (config-if) # exit
- PPPOE_SERVER (config) # ip local pool ADSL 200.0.0.1 200.0.0.10 // specify the address range of the address pool, which must be consecutive
- PPPOE_SERVER (config) # username wangwanli password wangwanli // specify the pppoe server dialing user name and password
- PPPOE_SERVER (config) # end
All configurations have been completed on this pppoe server.