配置PPPOE
先配置服務(wù)端PPPOE-Server
先為路由添加一個賬號為PPP所使用
[PPPOE-Server]aaa
[PPPOE-Server-aaa]local-user test password cipher 123
//添加一個本地賬號
[PPPOE-Server-aaa]local-user test service-type ppp
//設(shè)置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
//設(shè)置PPP認證模式為chap
[PPPOE-Server-Virtual-Template1]ppp chap user test
//設(shè)置chap認證用戶名為test
[PPPOE-Server-Virtual-Template1]ppp chap password cipher 123
//設(shè)置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 //撥號的規(guī)則
[PPPOE-Client-dialer-rule]dialer-rule 10 ip permit
//撥號規(guī)則10運行IP
[PPPOE-Client]interface Dialer 1 //創(chuàng)建撥號接口1
[PPPOE-Client-Dialer1]ip address ppp-negotiate
//地址從PPP協(xié)議協(xié)商獲取
[PPPOE-Client-Dialer1]ppp authentication-mode chap
//設(shè)置PPP認證模式為chap
[PPPOE-Client-Dialer1]ppp chap user test
//設(shè)置chap認證用戶名為test
[PPPOE-Client-Dialer1]ppp chap password cipher 123
//設(shè)置chap認證密碼為123
[PPPOE-Client-Dialer1]dialer user test
//設(shè)置撥號的用戶名test
[PPPOE-Client-Dialer1]dialer-group 1
//設(shè)置撥號的組為1
[PPPOE-Client-Dialer1]dialer bundle 1
//撥號關(guān)聯(lián)1
[PPPOE-Client]interface GigabitEthernet 0/0/0
[PPPOE-Client-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1
//設(shè)置PPPOE客戶端物理接口與虛擬接口綁定1
轉(zhuǎn)載于:https://blog.51cto.com/13585704/2287707
總結(jié)
- 上一篇: CentOS新增用户并授予sudo权限
- 下一篇: python下载源_python解决使用