【實驗名稱】
PPP PAP 認證
【實驗目的】
掌握 PPP PAP 認證的過程及配置
【背景描述】
你是公司的網絡管理員,公司爲了知足不斷增加的業務需求,申請了專線接入,你的客
戶端路由器與 ISP 進行鏈路協商時要驗證身份,配置路由器保證鏈路創建,並考慮其安全
性。
【需求分析】
在鏈路協商時保證安全驗證。鏈路協商時用戶名、密碼以明文的方式傳輸。安全
【預備知識】
路由器基本配置知識、PPP PAP 知識
【實驗設備】
路由器(帶串口) 2 臺
V.35 線纜(DTE/DCE) 1 對
【實驗原理】
PPP 協議位於 OSI 七層模型的數據鏈路層,PPP 協議按照功能劃分爲兩個子層:LCP、
NCP。LCP 主要負責鏈路的協商、創建、回撥、認證、數據的壓縮、多鏈路捆綁等功能。
NCP 主要負責和上層的協議進行協商,爲網絡層協議提供服務。
PPP 的認證功能是指在創建 PPP 鏈路的過程當中進行密碼的驗證,驗證經過創建鏈接,
驗證不經過拆除鏈路。
PPP 協議支持兩種認證方式 PAP 和 CHAP。PAP(Password Authentication Protocol,
密碼驗證協議)是指驗證雙方經過兩次握手完成驗證過程,它是一種用於對試圖登陸到點對
點協議服務器上的用戶進行身份驗證的方法。由被驗證方主動發出驗證請求,包含了驗證的
用戶名和密碼。由驗證方驗證後作出回覆,經過驗證或驗證失敗。在驗證過程當中用戶名和密
碼以明文的方式在鏈路上傳輸。服務器
第一步:路由器基本配置網絡
第二步:配置 PAP 認證ide
第三步:驗證 PAP 認證ui
【注意事項】
封裝廣域網協議時,要求 V.35 線纜的兩個端口封裝協議一致,不然沒法創建鏈路。spa
【參考配置】
Router A#show running-config
Building configuration...
Current configuration : 593 bytes
!
version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 21:16:17 CST 2007
-ubu1server)
hostname Router A
!
interface serial 4/0
encapsulation PPP
ppp pap sent-username RouterA password 7 001b7210
ip address 172.16.2.1 255.255.255.0
clock rate 64000
!
interface serial 4/1
clock rate 64000
!
interface GigabitEthernet 0/0
duplex auto
speed auto
!
interface GigabitEthernet 0/1
duplex auto
speed auto
!
line con 0
line aux 0
line vty 0 4
login
!
end
Router B#show running-config
Building configuration...
Current configuration : 580 bytes
!
version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 21:16:17 CST 2007
-ubu1server)
hostname Router B
!
username RouterA password 0 123
!
interface serial 4/0
encapsulation PPP
ppp authentication pap
ip address 172.16.2.2 255.255.255.0
!
interface serial 4/1
clock rate 64000
!
interface GigabitEthernet 0/0
duplex auto
speed auto
!
interface GigabitEthernet 0/1
duplex auto
speed auto
!
line con 0
line aux 0
line vty 0 4
login
!
end3d