1. 程式人生 > >配置PPPOE

配置PPPOE

使用 com ges word 路由 mod bundle col 51cto

技術分享圖片

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