新版華為技術(shù)實操|PPP協(xié)議實驗
PPP協(xié)議實驗拓?fù)洌?/strong>

PPP協(xié)議實驗要求:
1:P1和R2之間使用PAP認(rèn)證,使用靜態(tài)分配IP
2:R2和R3之間使用CHAP認(rèn)證,使用動態(tài)方式獲取IP
3:R2作為PAP和CHAP的主認(rèn)證方
PPP協(xié)議實驗配置:
1:實驗環(huán)境準(zhǔn)備:
右擊設(shè)置,選擇2SA板卡接入設(shè)備然后開機

1:配置R1和R2的PAP認(rèn)證
主認(rèn)證方:
AAA
local-user pap password cipher pap
local-user papservice-type ppp
interface Serial4/0/0
link-protocol ppp
pppauthentication-mode pap
ipaddress 12.1.1.2 255.255.255.0
被認(rèn)證方:
interface Serial4/0/0
link-protocol ppp
ppppap local-user pap password cipher pap
ip address 12.1.1.1 255.255.255.0
雙方認(rèn)證賬戶密碼保持一致,否則出現(xiàn)以下提示


2:R2和R3之間使用CHAP認(rèn)證
主認(rèn)證方
AAA
local-user chappassword cipher chap
local-user chap service-type ppp
interfaceSerial4/0/0
link-protocol ppp
ppp authentication-mode chap
ip address 23.1.1.2 255.255.255.0
被認(rèn)證方:
interface Serial4/0/1
link-protocol ppp
pppchap user chap
pppchap password cipher chap
ip address 23.1.1.3 255.255.255.0
效果驗證:
接口處于UP狀態(tài)

并可以正常ping通對端設(shè)備

3:R3通過IPCP協(xié)議動態(tài)獲取地址
R3:
Int s4/0/1
Undo ip address(刪除原先IP地址)
ip address ppp-negotiate(IP地址通過PPP協(xié)商方式獲?。?/p>
R2:
Int s4/0/1
remote address 3.3.3.3(配置對端分配具體地址)

ip pool ppp
network 4.4.4.0mask 255.255.255.0
int s4/0/1
undo remote address(刪除之前分配地址,該地址必須未被使用,否則會出現(xiàn)如下提示,可以通過shutdown對端端口解除占用)
remote address pool ppp(使用ppp地址池為對端分配地址)

配置驗證:

尚文網(wǎng)絡(luò)新版華為技術(shù)實操,連續(xù)更新