
ZT-P0012 PPP協(xié)議和PPPoE協(xié)議配置
32頁HUAWEI TECHNOLOGIES CO., LTD.All rights reservedInternal www.huawei.comDTL110004 PPP協(xié)議和PPPoE協(xié)議配置ISSUE 1.0HUAWEI TECHNOLOGIES CO., LTD.All rights reserved參考資料lVRP 3.3 操作手冊(cè)的《接口操作》lVRP 3.3 命令手冊(cè)的《接口命令》lVRP 5.1 操作手冊(cè) 接入分冊(cè)lVRP 5.1 命令手冊(cè)的《接入命令》Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved學(xué)習(xí)完此課程,您將會(huì):[掌握PPP的配置方法[掌握PPPoE的配置方法Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved第第第第1 1章章章章 PPPPPP的配置的配置的配置的配置第第2章章 PPPoE的配置的配置Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedPPP配置命令l封裝PPP,接口視圖下[link-protocol (鏈路協(xié)議)pppl設(shè)置驗(yàn)證對(duì)端的驗(yàn)證類型,接口視圖下[ppp authentication-mode { pap | chap } l設(shè)置用戶名、口令,系統(tǒng)視圖或AAA視圖下(無AAA的直接在系統(tǒng)視圖)[local-user username password { simple | cipher } password Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedPAP配置命令l驗(yàn)證方配置[配置驗(yàn)證方式?ppp authentication-mode pap[將對(duì)端用戶名和密碼加入本地用戶列表?local-user username password { simple | cipher } passwordl被驗(yàn)證方配置[配置PAP用戶名和密碼,在接口視圖下?ppp pap local-user username password { simple | cipher } passwordl注意:驗(yàn)證方與被驗(yàn)證方的用戶名、密碼要一致。
Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedCHAP配置命令l主驗(yàn)證方配置:[配置驗(yàn)證方式? ppp authentication-mode chap[將對(duì)端用戶名和密碼加入本地用戶列表?local-user username password { simple | cipher } passwordl被驗(yàn)證方配置:[配置CHAP用戶名和密碼,在接口視圖下? ppp chap user username? ppp chap password { simple | cipher } passwordl注意:驗(yàn)證方與被驗(yàn)證方的用戶名、密碼要一致單向驗(yàn)證單向驗(yàn)證Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedCHAP配置命令l路由器一的配置:[ppp authentication-mode chap[ppp chap user 路由器一的名字[local-user 路由器二的名字 password { simple | cipher } passwordl路由器二的配置:[ppp authentication-mode chap[ppp chap user 路由器二的名字[local-user 路由器一的名字 password { simple | cipher } passwordl注意:兩端的注意:兩端的Password要一致。
要一致雙向驗(yàn)證雙向驗(yàn)證Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedPAP驗(yàn)證舉例驗(yàn)證方驗(yàn)證方被驗(yàn)證方被驗(yàn)證方rtartbPAP PAP 驗(yàn)證驗(yàn)證s0s0[rta-aaa]local-user rtb password simple hello[rta]interface serial 0[rta-Serial0]ip address 10.1.1.1 30[rta-Serial0]ppp authentication-mode pap[rtb]interface serial 0[rtb-Serial0]ip address 10.1.1.2 30[rtb-Serial0]ppp pap local-user rtb password simple helloVRP 5.1版本命令Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedCHAP單向驗(yàn)證舉例驗(yàn)證方驗(yàn)證方被驗(yàn)證方被驗(yàn)證方rtartbCHAP CHAP 驗(yàn)證驗(yàn)證s0s0[rta-aaa]local-user rtb password simple hello[rta]interface serial 0[rta-Serial0]ip address 10.1.1.1 30[rta-Serial0]ppp authentication-mode chap[rtb]interface serial 0[rtb-Serial0]ip address 10.1.1.2 30[rtb-Serial0]ppp chap user rtb[rtb-Serial0]ppp chap password simple helloVRP 5.1版本命令Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedCHAP雙向驗(yàn)證舉例rtartbCHAPCHAP 雙向驗(yàn)證雙向驗(yàn)證s0s0[rta-aaa]local-user rtb password simple hello[rta]interface serial 0[rta-Serial0]ip address 10.1.1.1 30[rta-Serial0]ppp chap user rta[rta-Serial0]ppp authentication-mode chap[rtb-aaa]local-user rta password simple hello[rtb]interface serial 0[rtb-Serial0]ip address 10.1.1.2 30[rtb-Serial0]ppp chap user rtb[rtb-Serial0]ppp authentication-mode chapVRP 5.1版本命令Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedPPP的監(jiān)控與維護(hù)操作操作命令命令顯示顯示PPPPPP驗(yàn)證的本地用戶驗(yàn)證的本地用戶display local-user顯示接口的配置和顯示接口的配置和PPPPPP的狀態(tài)的狀態(tài)display interface interface-nameVRP 5.1版本命令Page HUAWEI TECHNOLOGIES CO., LTD.All rights reservedPPP故障的診斷與排除l故障之一:物理鏈路不能轉(zhuǎn)為Up狀態(tài)[檢查物理線纜是否有問題[接口是否激活l故障之二:鏈路協(xié)議始終不能轉(zhuǎn)為Up狀態(tài)[檢查接口配置參數(shù)是否正確,比如鏈路協(xié)議是否都配置為PPP[檢查PPP是否啟用了驗(yàn)證,驗(yàn)證參數(shù)配置是否正確Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved第第1章章 PPP的配置的配置第第第第2 2章章章章 PPPoEPPPoE的配置的配置的配置的配置Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved配置PPPoE示例組網(wǎng)圖組網(wǎng)圖l主機(jī)Host使用PPPoE協(xié)議,通過路由器Router接入到Internet。
路由器Router通過接口GE1/0/0連接Host,通過接口POS2/0/0連接InternetInternetGE1/0/0HostHostRouter...POS2/0/0Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved基本配置l命令行版本:VRP(R) software, Version 3.30, Release 0008l創(chuàng)建并配置虛擬接口模板 [
點(diǎn)擊“開始”,選擇“控制面板”,出現(xiàn):點(diǎn)擊此處l點(diǎn)擊“網(wǎng)絡(luò)和Internet連接”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(二)l出現(xiàn):點(diǎn)擊此處l點(diǎn)擊“網(wǎng)絡(luò)連接”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(三)l出現(xiàn):點(diǎn)擊此處l點(diǎn)擊“創(chuàng)建一個(gè)新的連接”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(四)l出現(xiàn):l點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(五)l出現(xiàn):l選擇“連接到 Internet(C)”,點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(六)l出現(xiàn):l選擇“手動(dòng)設(shè)置我的連接(M)”,點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(七)l出現(xiàn):l選擇“用要求用戶名和密碼的寬帶連接來連接(U)”,點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(八)l出現(xiàn):l輸入ISP名稱,例如“test”。
點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(九)l出現(xiàn):l選擇此帳戶的使用范圍點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(十)l出現(xiàn):l輸入用戶名和密碼,此處要與路由器端設(shè)置一致點(diǎn)擊“下一步”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端設(shè)置(十一)l出現(xiàn):l點(diǎn)擊“完成”Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved客戶端進(jìn)行PPPoE撥號(hào)l注:其它操作系統(tǒng)需要專門的撥號(hào)軟件,請(qǐng)參考相關(guān)資料點(diǎn)擊此處進(jìn)行撥號(hào)Page HUAWEI TECHNOLOGIES CO., LTD.All rights reserved小結(jié)l本節(jié)課程講述了PPP的基本配置,以及PAP、CHAP驗(yàn)證協(xié)議的配置另外,還講述了與PPP協(xié)議相關(guān)的PPPoE協(xié)議的配置Page 謝謝www.huawei.com。





![[精編]吳教人[]13號(hào)](/Images/s.gif)






