配置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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章