PPP協(xié)議配置和PAP認(rèn)證配置
通過對PPP協(xié)議的了解,我們也進入到了配置階段。那么我們知道,PPP協(xié)議:(point to point protocol)點隊點協(xié)議的前身是SLIP,PPP協(xié)議提供了一種在點對點鏈路上封狀多種網(wǎng)絡(luò)數(shù)據(jù)報文的標(biāo)準(zhǔn)方法?,F(xiàn)在我們重點講解一下PPP協(xié)議配置和PAP認(rèn)證配置的內(nèi)容。
PPP相對SLIP的協(xié)議的優(yōu)點:
1、支持同步、異步串行鏈路;
2、支持多種網(wǎng)絡(luò)協(xié)議;
3、支持各種連接參數(shù)的協(xié)商;
4、支持錯誤檢測;
5、支持用戶認(rèn)證;
6、允許進行數(shù)據(jù)的壓縮。
PPP協(xié)議的組成:
1、協(xié)議封裝方式
2、LCP
3、NCP
PPP運行過程:
1、鏈接不可用階段
2、鏈路建立階段
3、認(rèn)證階段
4、網(wǎng)絡(luò)層協(xié)議階段
5、鏈路終止階段
LCP協(xié)議協(xié)商:
MRU 最大數(shù)據(jù)單元/Magic Number魔術(shù)字/人證方式/鏈路壓縮
NCP協(xié)議協(xié)商:
IP地址;TCP/IP頭壓縮
認(rèn)證方式:
PAP/CHAP
PPP協(xié)議的配置:
封裝PPP:
- Router(config)#inter serial 2/0
- Router(config-if)#encapsulation ppp
DCE端設(shè)置時鐘頻率:
- Router(config-if)#clock rate 64000
接口IP配置:
- Router(config-if)#ip address 192.168.10.1 255.255.255.0
- Router(config-if)#no shutdown
PAP認(rèn)證配置:
PAP認(rèn)證配置,主認(rèn)證端:
- Router(config-if)#exit
- Router(config)#username derek password 0 123
- Router(config)#inter s2/0
- Router(config-if)#ppp authentication
- %SYS-5-CONFIG_I: Configured from console by console
PAP認(rèn)證配置,被認(rèn)證端:
- Router(config-if)#ppp pap sent-username derek password 0 123
PAP認(rèn)證配置完成,測試:
- Router#ping 192.168.10.2
- Router#debug ppp packet
查看端口:
- Router#show interfaces s 2/0
- Serial2/0 is up, line protocol is up (connected)
- Hardware is HD64570
- Internet address is 192.168.10.2/24
- MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255
- Encapsulation PPP, loopback not set, keepalive set (10 sec)
- LCP Open
- Open: IPCP, CDPCP
- Last input never, output never, output hang never
- Last clearing of "show interface" counters never
- Input queue: 0/75/0 (size/max/drops); Total output drops: 0
- Queueing strategy: weighted fair
- Output queue: 0/1000/64/0 (size/max total/threshold/drops)