首页 > 其他 > 详细

配置PPPOE

时间:2018-09-29 20:17:38      阅读:169      评论:0      收藏:0      [点我收藏+]
技术分享图片

先配置服务端PPPOE-Server
先为路由添加一个账号为PPP所使用
[PPPOE-Server]aaa
[PPPOE-Server-aaa]local-user test password cipher 123
//添加一个本地账号
[PPPOE-Server-aaa]local-user test service-type ppp
//设置test账号类型为PPP账号
[PPPOE-Server]ip pool test
//添加一个地址池
[PPPOE-Server-ip-pool-test]network 200.1.1.0 mask 24
[PPPOE-Server-ip-pool-test]dns-list 8.8.8.8
[PPPOE-Server]interface Virtual-Template 1
//进入虚拟接口1
[PPPOE-Server-Virtual-Template1]ppp authentication-mode chap
//设置PPP认证模式为chap
[PPPOE-Server-Virtual-Template1]ppp chap user test
//设置chap认证用户名为test
[PPPOE-Server-Virtual-Template1]ppp chap password cipher 123
//设置chap认证密码为123
[PPPOE-Server-Virtual-Template1]ip address 200.1.1.1 24
//给这个虚拟接口添加个IP地址
[PPPOE-Server-Virtual-Template1]remote address pool test
//客户端地址从test地址池中拿
PPPOE-Server-GigabitEthernet0/0/0]pppoe-server bind virtual-template1
//在物理地址上绑定虚拟接口1

客户端的配置
[PPPOE-Client]aaa
[PPPOE-Client-aaa]local-user test password cipher 123
[PPPOE-Client-aaa]local-user test service-type ppp
[PPPOE-Client]dialer-rule //拨号的规则
[PPPOE-Client-dialer-rule]dialer-rule 10 ip permit
//拨号规则10运行IP
[PPPOE-Client]interface Dialer 1 //创建拨号接口1
[PPPOE-Client-Dialer1]ip address ppp-negotiate
//地址从PPP协议协商获取
[PPPOE-Client-Dialer1]ppp authentication-mode chap
//设置PPP认证模式为chap
[PPPOE-Client-Dialer1]ppp chap user test
//设置chap认证用户名为test
[PPPOE-Client-Dialer1]ppp chap password cipher 123
//设置chap认证密码为123
[PPPOE-Client-Dialer1]dialer user test
//设置拨号的用户名test
[PPPOE-Client-Dialer1]dialer-group 1
//设置拨号的组为1
[PPPOE-Client-Dialer1]dialer bundle 1
//拨号关联1
[PPPOE-Client]interface GigabitEthernet 0/0/0
[PPPOE-Client-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1
//设置PPPOE客户端物理接口与虚拟接口绑定1

配置PPPOE

原文:http://blog.51cto.com/13585704/2287707

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!