兩方認(rèn)證完成CISCO PPP配置
在路由設(shè)置中我們通常會(huì)涉及很多協(xié)議的內(nèi)容,這個(gè)也是我們管理員需要了解的。那么這里我們則針對(duì)CISCO PPP配置的內(nèi)容進(jìn)行一下細(xì)致地講解。那么大家來(lái)詳細(xì)看看其中所涉及的認(rèn)證配置吧。
CISCO PPP配置1:PPP的PAP認(rèn)證配置
R1:(主認(rèn)證方 同樣也是 被認(rèn)證方)
- hostname r1
- username r2 password yhp
- int s0/0
- ip add 192.200.10.1 255.255.255.0
- encapsulation ppp
- ppp authentication pap
- ppp pap sent-username r1 password yhp
- no shutdown
可選項(xiàng)
- peer default ip address 192.200.10.2 ---------協(xié)商IP
- compress {predictor | stac}
- ip tcp header-compress
R2:(主認(rèn)證方 同樣也是 被認(rèn)證方)
- hostname r2
- username r1 password yhp
- int s0/0
- ip add 192.200.10.2 255.255.255.0
- encapsulation ppp
- ppp authentication pap
- ppp pap sent-username r2 password yhp
- no shutdown
可選項(xiàng)
- ip address nego-----------------------------------與同另一端一同設(shè)置
- compress {predictor | stac}
- ip tcp header-compress
CISCO PPP配置2:PPP的CHAP認(rèn)證配置
方法一
R1:(主認(rèn)證方)
- hostname r1
- username r2 pass yhp
- int s0/0
- ip add 192.200.10.1 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- no shutdown
R2:(被認(rèn)證方)
- hostname r2
- username r1 pass yhp
- int s0/0
- ip add 192.200.10.2 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- no shutdown
方法二
R1:(主認(rèn)證方)
- hostname r1
- username r2 pass cisco
- int s0/0
- ip add 192.200.10.1 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- no shutdown
R2:(被認(rèn)證方)
- hostname r2
- username r1 pass cisco
- int s0/0
- ip add 192.200.10.2 255.255.255.0
- encapsulation ppp
- ppp authentication chap
- ppp chap hostname yhp
- no shutdown
注:如需PPP壓縮方法同[PPP的PAP配置],DCE,DTE須另外配
CISCO PPP配置原文地址:http://hi.baidu.com/yhpspace/blog/item/05aa83551784b7c7b645ae59.html