一、PAP認證和CHAP認證
? PAP(PasswordAuthenticationProtocol 密碼認證協議)
? PAP是簡單認證,明文傳送,客戶端直接發送包含用戶名/口令的認證請求,服務器端處理并回應,常見于PPPOE撥號環境中,
? CHAP (ChallengeHandshakeAuthenticationProtocol 質詢握手認證協議)
? CHAP是加密認證,先由服務器端給客戶端發送一個隨機碼challenge,客戶端根據challenge對口令進行加密,演算法是md5(password,challenge,ppp_id) ,然后把這個結果發送給服務器端,服務器端從資料庫中取出口令password2,同樣進行加密處理 md5(password2,challenge,ppp_id),最后比較加密的結果是否相同,如果相同,則認證通過,向客戶端發送認可訊息,
二、PPP認證模式-CHAP

三、IPCP
3.1、IPCP靜態地址協商

3.2、IPCP動態地址協商

四、PPP-CHAP配置
4.1、CHAP認證



4.2、配置驗證

五、PPP-CHAP實驗
5.1、拓撲圖
? 分別在路由器中拖出2臺AR2220,

? 分別對著路由器AR1和AR2右鍵,點擊設定,在eNSP支持的介面卡中找到2SA,并將其拖至第1個介面插槽中,

? 選擇設備連線,點擊Serial進行設備接線,介面都選擇Serial 1/0/0,完成后開啟設備,
5.2、配置
AR1:
<Huawei>system-view [Huawei]sysname AR1 [AR1]int s1/0/0 [AR1-Serial1/0/0]ip add 12.1.1.1 24 [AR1-Serial1/0/0]q [AR1]aaa [AR1-aaa]local-user huawei password cipher huawei [AR1-aaa]local-user huawei service-type ppp [AR1-aaa]int s1/0/0 [AR1-Serial1/0/0]ppp authentication-mode chap [AR1-Serial1/0/0]display this [AR1-Serial1/0/0]shutdown [AR1-Serial1/0/0]undo shutdown [AR1]display ip interface brief
AR2:
<Huawei>system-view [Huawei]sysname AR2 [AR2]int s1/0/0 [AR2-Serial1/0/0]ip add 12.1.1.2 24 [AR2-Serial1/0/0]ppp chap user huawei [AR2-Serial1/0/0]ppp chap password cipher huawei [AR2-Serial1/0/0]display this [AR2-Serial1/0/0]q [AR2]display ip interface brief
[AR2]ping 12.1.1.1
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/539169.html
標籤:其他
下一篇:力扣刷題02
