In terms of configuration, PPPoE always has many advantages. The following describes the configuration of PPPOE server and Cisco PPPOE. First, create a broadband connection named libin password libin on your computer and configure it on ATM1.
Configure on R1 first, pppoe Client
- R1 (config) # vpdn enable VPDN
- R1 (config) # vpdn-group CISCO defines the group name CISCO
- R1 (config-vpdn) # request-dialin request access
- R1 (config-vpdn-req-in) # PROtocol pppoe
- % PPPoE config from vpdn-group is converted to pppoe-profile based config.
- % Continue PPPoE configuration under 'bba-group pppoe global'
- R1 (config-vpdn-req-in) # exit
- R1 (config-vpdn) # exit
- R1 (config-if) # no ip address
- R1 (config-if) # pppoe enable
- R1 (config-if) # pppoe-client dia
- R1 (config-if) # pppoe-client dial-pool-number 1
- R1 (config-if) # ^ Z
- R1 # conf t
- R1 (config-if) # ip add?
- A. B .C.D IP address
- Dhcp IP Address negotiated via DHCP
- Negotiated IP Address negotiated over PPP
- Pool IP Address autoconfigured from a local DHCP pool
- R1 (config-if) # ip add negotiated
- R1 (config-if) # ip nat outside
- R1 (config-if) # encapsulation ppp
- R1 (config-if) # dialer pool 1
- R1 (config-if) # ppp chap hostname
- R1 (config-if) # ppp chap hostname cisco
- R1 (config-if) # ppp chap password 0 cisco
- R1 (config-if) # ip route 0.0.0.0 0.0.0.0 dialer0
Configure aggregation routing on R2
- R2(config)#vpdn enable
- R2(config)#vpdn-group 1
- R2(config-vpdn)#accept-dialin
- R2(config-vpdn-acc-in)#protocol pppoe
- R2(config-vpdn-acc-in)#exit
- R2(config-vpdn)#exit
- R2(config)#username cisco password 0 cisco
- R2(config)#bba-group pppoe global
- R2(config-bba-group)#vir
- R2(config-bba-group)#virtual-template 1
- R2(config-bba-group)#int loo 0
- R2(config-if)#ip add 1.1.1.1 255.0.0.0
- R2(config-if)#int fastethernet 0/0
- R2(config-if)#no ip address
- R2(config-if)#pppoe enable
- R2(config)#interface virtual-template 1
- R2(config-if)#ip unnumbered loopback 0
- R2(config-if)#peer default ip address pool cisco
- R2(config-if)#ppp authentication chap
- R2(config-if)#exit
- R2(config)#ip local pool cisco 1.1.1.2 1.1.1.10
Configure ATM1
- ATM1#conf t
- ATM1(config)#no ip routing
- ATM1(config)#int fast0/0
- ATM1(config-if)#no ip address
- ATM1(config-if)#bridge-group 1
- ATM1(config-if)#int atm1/0
- ATM1(config-if)#no ip add
- ATM1(config-if)#bri
- ATM1(config-if)#bridge-group 1
- ATM1(config-if)#pvc 1/100
- ATM1(config-if-atm-vc)#encapsulation aal5snap
- ATM1(config-if-atm-vc)#bridge 1 protocol ieee
Configure BBA-Group
- ATM1 (config) # bba-group pppoe global
- ATM1 (config-bba-group) # virtual-template 1 virtual touch version is defined as 1
- ATM1 (config-bba-group) # exit
Configure Virtual-Template
- ATM1 (config) # interface virtual-template 1
- ATM1 (config-if) # ip unnumbered loopback 0 borrow the ip address on loopback 0
- ATM1 (config-if) # encapsulation ppp encapsulation to ppp
- ATM1 (config-if) # ppp authentication chap authentication is chap
- ATM1 (config-if) # peer de
- ATM1 (config-if) # peer default ip add pool cisco allocates ip addresses from cisco
Check whether it is successful now
- Ping 1.1.1.1 and 1.1.1.2 on the PC
- R1 (config-vpdn-req-in) # PROtocol pppoe
- R1 (config-vpdn-req-in) # exit
- R1 (config-vpdn) # exit
- Initial Configuration of ATM1
- ATM1 (config) # username libin password libin configure the user name and password, which must be the same as that of ATM1
- ATM1 (config) # interface loopback 0
- ATM1 (config-if) # ip add 1.1.1.1 255.0.0.0
- Configure VPDN
- ATM1 (config-if) # EXIT
- ATM1 (config) # vpdn enable VPDN
- ATM1 (config) # vpdn-group ADSL definition group name ADSL
- ATM1 (config-vpdn) # request-dialin request access
- ATM1 (config-vpdn-req-in) # proto
- ATM1 (config-vpdn-req-in) # configure the protocol pppoe protocol with pppoe
- % PPPoE config from vpdn-group is converted to pppoe-profile based config.
- % Continue PPPoE configuration under 'bba-group pppoe global'
- ATM1 (config-vpdn-req-in) # exit
- ATM1 (config-vpdn) # exit
- ATM1 (config )#
- Configure BBA-Group
- ATM1 (config) # bba-group pppoe global
- ATM1 (config-bba-group) # virtual-template 1 virtual touch version is defined as 1
- ATM1 (config-bba-group) # exit
- Configure Virtual-Template
- ATM1 (config) # interface virtual-template 1
- ATM1 (config-if) # ip unnumbered loopback 0 borrow the ip address on loopback 0
- ATM1 (config-if) # encapsulation ppp encapsulation to ppp
- ATM1 (config-if) # ppp authentication chap authentication is chap
- ATM1 (config-if) # peer de
- ATM1 (config-if) # peer default ip add pool cisco allocates ip addresses from cisco
Check whether it is successful now