The router acts as the PPPOE server and the PPPOE Client

Source: Internet
Author: User

The router acts as the PPPOE server and the PPPOE client. The router acts as the PPPOE server and the PPPOE client. Perform NAT after successful client dialing Authentication
Ensure that the Intranet PC can access the Server www.2cto.com and configure pppoe Server on the R1 router: r1 (config) # int f0/0r1 (config-if) # no shr1 (config-if) # ip add 202.1.1.254 255.255.255.0r1 (config-if) # exi r1 (config) # vpdn enabler1 (config) # int virtual-template 10r1 (config-if) # ip add 200.1.1.254 255.255.255.0r1 (config-if) # peer default ip addr pool pppoer1 (config-if) # ppp authentication chap papr1 (config-if) # ppp ipcp dns 202.103.24.68r1 (config-if) # exir1 (config) # vpdn enabler1 (config) # vpdn-group benetr1 (config-vpdn) # accept-dialinr1 (config-vpdn-acc-in) # protocol pppoer1 (config-vpdn-acc-in) # virtual-template 10r1 (config-vpdn-acc-in) # exi r1 (config-vpdn) # pppoe limit max-sessions 300r1 (config-vpdn) # pppoe limit per-mac 10r1 (config-vpdn) # pppoe limit per-vlan 300r1 (config) # username benet password 123r1 (config) # ip local pool pppoe 202.1.1.10 202.1.1.200 configure pppoe-client: R2 (config) in r2) # int f1/0r2 (config-if) # ip add 192.168.1.254 255.255.255.0r2 (config-if) # no sh r2 (config) # int f0/0r2 (config-if) # no shr2 (config-if) # pppoe enabler2 (config-if) # pppoe-client dial-pool-number 1r2 (config-if) # exi r2 (config) # int dialer 1r2 (config-if) # ip add negotiatedr2 (config-if) # encapsulation pppr2 (config-if) # ppp chap hostname benetr2 (config-if) # IP address obtained by ppp chap password 123pppoe-client: www.2cto.com configure NAT and default route so that the Intranet can access the Internet: r2 (config) # access-list 1 permit anyr2 (config) # ip nat inside source list 1 int dialer 1 overloadr2 (config) # ip route 0.0.0.0 0.0.0.0 dialer 1r2 (config) # int dialer 1r2 (config-if) # ip nat outsider2 (config-if) # int f1/0r2 (config-if) # ip nat inside configure IP in the client PC: Verify that the Internet can be accessed:

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.