Learning PPPOE configuration (1)

Source: Internet
Author: User

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

 
 
  1. R1 (config) # vpdn enable VPDN
  2. R1 (config) # vpdn-group CISCO defines the group name CISCO
  3. R1 (config-vpdn) # request-dialin request access
  4. R1 (config-vpdn-req-in) # PROtocol pppoe
  5. % PPPoE config from vpdn-group is converted to pppoe-profile based config.
  6. % Continue PPPoE configuration under 'bba-group pppoe global'
  7. R1 (config-vpdn-req-in) # exit
  8. R1 (config-vpdn) # exit
  9. R1 (config-if) # no ip address
  10. R1 (config-if) # pppoe enable
  11. R1 (config-if) # pppoe-client dia
  12. R1 (config-if) # pppoe-client dial-pool-number 1
  13. R1 (config-if) # ^ Z
  14. R1 # conf t
  15. R1 (config-if) # ip add?
  16. A. B .C.D IP address
  17. Dhcp IP Address negotiated via DHCP
  18. Negotiated IP Address negotiated over PPP
  19. Pool IP Address autoconfigured from a local DHCP pool
  20. R1 (config-if) # ip add negotiated
  21. R1 (config-if) # ip nat outside
  22. R1 (config-if) # encapsulation ppp
  23. R1 (config-if) # dialer pool 1
  24. R1 (config-if) # ppp chap hostname
  25. R1 (config-if) # ppp chap hostname cisco
  26. R1 (config-if) # ppp chap password 0 cisco
  27. R1 (config-if) # ip route 0.0.0.0 0.0.0.0 dialer0

Configure aggregation routing on R2

 
 
  1. R2(config)#vpdn enable  
  2. R2(config)#vpdn-group 1  
  3. R2(config-vpdn)#accept-dialin  
  4. R2(config-vpdn-acc-in)#protocol pppoe   
  5. R2(config-vpdn-acc-in)#exit  
  6. R2(config-vpdn)#exit  
  7. R2(config)#username cisco password 0 cisco  
  8. R2(config)#bba-group pppoe global  
  9. R2(config-bba-group)#vir  
  10. R2(config-bba-group)#virtual-template 1  
  11. R2(config-bba-group)#int loo 0  
  12. R2(config-if)#ip add 1.1.1.1 255.0.0.0  
  13. R2(config-if)#int fastethernet 0/0  
  14. R2(config-if)#no ip address  
  15. R2(config-if)#pppoe enable  
  16. R2(config)#interface virtual-template 1  
  17. R2(config-if)#ip unnumbered loopback 0  
  18. R2(config-if)#peer default ip address pool cisco  
  19. R2(config-if)#ppp authentication chap  
  20. R2(config-if)#exit  
  21. R2(config)#ip local pool cisco 1.1.1.2 1.1.1.10 

Configure ATM1

 
 
  1. ATM1#conf t  
  2. ATM1(config)#no ip routing  
  3. ATM1(config)#int fast0/0  
  4. ATM1(config-if)#no ip address  
  5. ATM1(config-if)#bridge-group 1  
  6. ATM1(config-if)#int atm1/0  
  7. ATM1(config-if)#no ip add  
  8. ATM1(config-if)#bri  
  9. ATM1(config-if)#bridge-group 1  
  10. ATM1(config-if)#pvc 1/100  
  11. ATM1(config-if-atm-vc)#encapsulation aal5snap  
  12. ATM1(config-if-atm-vc)#bridge 1 protocol ieee 

Configure BBA-Group

 
 
  1. ATM1 (config) # bba-group pppoe global
  2. ATM1 (config-bba-group) # virtual-template 1 virtual touch version is defined as 1
  3. ATM1 (config-bba-group) # exit

Configure Virtual-Template

 
 
  1. ATM1 (config) # interface virtual-template 1
  2. ATM1 (config-if) # ip unnumbered loopback 0 borrow the ip address on loopback 0
  3. ATM1 (config-if) # encapsulation ppp encapsulation to ppp
  4. ATM1 (config-if) # ppp authentication chap authentication is chap
  5. ATM1 (config-if) # peer de
  6. ATM1 (config-if) # peer default ip add pool cisco allocates ip addresses from cisco

Check whether it is successful now

 
 
  1. Ping 1.1.1.1 and 1.1.1.2 on the PC
  2. R1 (config-vpdn-req-in) # PROtocol pppoe
  3. R1 (config-vpdn-req-in) # exit
  4. R1 (config-vpdn) # exit
 
 
  1. Initial Configuration of ATM1
  2. ATM1 (config) # username libin password libin configure the user name and password, which must be the same as that of ATM1
  3. ATM1 (config) # interface loopback 0
  4. ATM1 (config-if) # ip add 1.1.1.1 255.0.0.0
  5. Configure VPDN
  6. ATM1 (config-if) # EXIT
  7. ATM1 (config) # vpdn enable VPDN
  8. ATM1 (config) # vpdn-group ADSL definition group name ADSL
  9. ATM1 (config-vpdn) # request-dialin request access
  10. ATM1 (config-vpdn-req-in) # proto
  11. ATM1 (config-vpdn-req-in) # configure the protocol pppoe protocol with pppoe
  12. % PPPoE config from vpdn-group is converted to pppoe-profile based config.
  13. % Continue PPPoE configuration under 'bba-group pppoe global'
  14. ATM1 (config-vpdn-req-in) # exit
  15. ATM1 (config-vpdn) # exit
  16. ATM1 (config )#
  17. Configure BBA-Group
  18. ATM1 (config) # bba-group pppoe global
  19. ATM1 (config-bba-group) # virtual-template 1 virtual touch version is defined as 1
  20. ATM1 (config-bba-group) # exit
  21. Configure Virtual-Template
  22. ATM1 (config) # interface virtual-template 1
  23. ATM1 (config-if) # ip unnumbered loopback 0 borrow the ip address on loopback 0
  24. ATM1 (config-if) # encapsulation ppp encapsulation to ppp
  25. ATM1 (config-if) # ppp authentication chap authentication is chap
  26. ATM1 (config-if) # peer de
  27. ATM1 (config-if) # peer default ip add pool cisco allocates ip addresses from cisco

Check whether it is successful now


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.