【正文】
在這里,驗證成功的消息的ID是什么?本地用戶數(shù)據(jù)庫中找到的記錄中用戶名和口令分別是什么?這條記錄是如何建立的?第 7 頁 共 7 頁。R1配置如下:Router config terminal Router (config) hostname R1R1(config) interface serial 1/2R1(configif) ip address R1(configif) encapsulation pppR1(configif) no shutdownR1(configif) clock rate 64000R2配置如下:Router config terminal Router (config) hostname R2R2(config) interface serial 1/2R2(configif) ip address R2(configif) encapsulation pppR2(configif) no shutdown 完成后,驗證路由器Serial接口的連通性和PPP封裝;步驟2:配置R1為CHAP驗證方R1(config) username r2 password star !設(shè)置用戶數(shù)據(jù)庫,用戶名:r2;加密類型:缺?。魑模豢诹睿簊tarR1(config) interface serial 1/2R1(configif) ppp authentication chap !配置R1為CHAP驗證方可以看到系統(tǒng)會有如下提示:%LINE PROTOCOL CHANGE: Interface serial 1/2, changed state to DOWN步驟3:配置R2為CHAP被驗證方R2(config) interface serial 1/2R2(configif) ppp chap hostname r2 !CHAP被驗證方,發(fā)送主機(jī)名:r2;R2(configif) ppp chap password star !CHAP被驗證方,發(fā)送口令:star;可以看到系統(tǒng)會有如下提示:%LINE PROTOCOL CHANGE: Interface serial 1/2, changed state to UP注意:被驗證方的發(fā)送主機(jī)名與口令要和驗證方用戶數(shù)據(jù)庫的用戶名與口令一致。理解CHAP驗證的一般過程。實驗的最后,我們使用debug ppp命令來觀察PAP認(rèn)證的過程:在R1和R2上分別執(zhí)行debug ppp authentication命令:R1 debug ppp authentication !打開R1調(diào)試PPP認(rèn)證開關(guān)R2 debug ppp authentication !打開R2調(diào)試PPP認(rèn)證開關(guān)如果要看到PAP認(rèn)證的過程,需要再執(zhí)行下面的操作:任選兩臺路由器之一,以R2為例:R2(config) interface serial 1/2R2(configif) shutdown !關(guān)閉R2的S1/2接口R2(configif) no shutdown !重新啟用R2的S1/2接口隨后,在R2上