配置PPPOE
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了配置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
以上是关于配置PPPOE的主要内容,如果未能解决你的问题,请参考以下文章