PPP PAP認證

【實驗名稱】

PPP PAP認證

【實驗目的】

掌握PPP PAP認證的過程及配置

【實驗功能】

在鏈路協商時保證安全驗證,鏈路協商時用戶名、密碼以明文的方式傳輸

【實驗設備】

路由器(2臺) V35線纜(1條)

【實拓拓撲】

 

 

【實驗步驟】

R1    (被驗證方)

Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface serial 2/0
R1(config-if)#no shutdown

R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp pap sent-username R1 password 0 cisco        (被驗證方 發送的路由器名和密碼)

R2   (驗證方)

Router>enable
Router#configure terminal
Router(config)#interface serial 2/0
Router(config-if)#no shutdown

Router(config-if)#clock rate 64000
Router(config-if)#ip address 1.1.1.2 255.255.255.0
Router(config-if)#exit
Router(config)#username R1 password 0 cisco     (驗證方 的用戶名 密碼)
Router(config)#interface serial 2/0
Router(config-if)#encapsulation ppp           (封裝協議PPP)
Router(config-if)#ppp authentication pap     (安全驗證PAP)

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down

(由於要驗證所以線路down了)
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

(當發現用戶名密碼一致 線路開始up)

上面是單方驗證,下面做雙方驗證

R1

Router>enable
Router#configure terminal
Router(config)#interface serial 2/0
Router(config-if)#no shutdown

Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#username R2 password 0 cisco    (驗證的用戶名和密碼)
Router(config)#interface serial 2/0
Router(config-if)#en
Router(config-if)#encapsulation ppp
Router(config-if)#ppp authentication pap
Router(config-if)#ppp pap sent-username R1 password 0 cisco    (發送被驗證的用戶名密碼)

R2

Router>enable
Router#configure terminal
Router(config)#interface serial 2/0
Router(config-if)#no shutdown

Router(config-if)#ip address 1.1.1.2 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#exit
Router(config)#username R1 PASSword 0 cisco       (驗證的用戶名和密碼)
Router(config)#interface serial 2/0
Router(config-if)#encapsulation ppp
Router(config-if)#ppp authentication pap
Router(config-if)#ppp pap sent-username R2 password 0 cisco (發送被驗證的用戶名密碼)

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

(全部通過,線路UP)

原創:胡斌    
我會從簡單到難的發表一些我學過的知識,希望能給一些想入門的朋友幫助,也希望找一些志同道合的朋友、老師 給我些指教。 QQ 276200261!

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