配置PPPOE

配置PPPOE

先配置服务端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

转载于:https://blog.51cto.com/13585704/2287707

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值