PPP(Point-to-Point Protocol,點到點協議)支持在各種物理類型的點到點串行線路上傳輸上層協議報文。
1.1 PPP基本配置
1、配置PPP封裝
對於同步串行接口,默認的封裝格式是HDLC。可以使用encapsulation ppp,將封裝格式改爲PPP。
R1(config-if)#encapsulation ppp 將封裝格式改爲PPP
2、配置壓縮
R1(config)#int s1/1 R1(config-if)#compress ? 配置壓縮的類型
3、配置鏈路質量監控(Link Quality Monitoring,LQM)
R1(config)#int s1/1 R1(config-if)#ppp quality 80 鏈路有效要大於80%,否則認爲鏈路無效
4、配置鏈路負載均衡
Multilink PPP(多鏈路PP,有時也稱MP、MPPP、MLP或Multilink)允許包被分段,在到對方的多條點對點上同時被髮送。
R1(config)#int s1/1 R1(config-if)#ppp multilink
1.2 PPP驗證配置
1、PAP驗證
R(config-if)#ppp authentication pap 雙方設置驗證pap
R1(config)#username R2 password cisco 驗證端設置用戶名和密碼
R2(config-if)#ppp pap sent-username R2 password cisco 被驗證端發送用戶名和密碼
注意雙向都要設置。
2、CHAP驗證
R(config-if)#ppp authentication chap 雙方設置chap驗證
R1(config)#username R2 password cisco 驗證端設置用戶名和密碼注意用戶名要設置爲對方路由器的名字
R2(config)#username R1 password cisco 密碼一定要一樣
R1#debug ppp authentication 打開調試