PPP身份認(rèn)證?你了解嗎?
通過(guò)對(duì)PPP協(xié)議的了解,我們發(fā)現(xiàn),PPP身份認(rèn)證是一個(gè)非常重要的內(nèi)容。那么在認(rèn)證過(guò)程中,也分為了不同的階段。那么這里我們就來(lái)看看具體的內(nèi)容吧。先看一下使用的拓?fù)洌?/p>
PAP雙向身份認(rèn)證
R1配置如下:
- config t
- hostname R1
- username R1 password komy
- interface s0/0/0
- ip address 192.168.1.2 255.255.255.252
- encapsulation ppp
- ppp authentication pap
- ppp pap sent-username R2 password komy
- no shutdown
R2配置如下:
- config t
- hostname R2
- username R2 password komy
- int s0/0/0
- clock rate 4000000
- ip address 192.168.1.1 255.255.255.252
- encapsulation ppp
- ppp authentication pap
- ppp pap sent-username R1 password komy
- no shutdown
PAP單向身份認(rèn)證
R1配置如下(被認(rèn)證方):
- config t
- hostname R1
- interface s0/0/0
- ip address 192.168.1.2 255.255.255.252
- encapsulation ppp
- ppp pap sent-username R2 password komy
- no shutdown
R2配置如下(主認(rèn)證方):
- config t
- hostname R2
- username R2 password komy
- int s0/0/0
- clock rate 4000000
- ip address 192.168.1.1 255.255.255.252
- encapsulation ppp
- ppp authentication pap
- no shutdown
CHAP雙向身份認(rèn)證
- config t
- hostname R1
- username R2 password komy
- int s0/0/0
- ip address 192.168.1.2 255.255.255.252
- encapsulation ppp
- ppp authentication chap
- no shutdown
R2:
- config t
- hostname R2
- username R1 password komy
- int s0/0/0
- clock rate 4000000
- ip address 192.168.1.1 255.255.255.252
- encapsulation ppp
- ppp authentication chap
- no shutdown
CHAP單向身份認(rèn)證
R1(CHAP被認(rèn)證方):
- config t
- hostname R1
- username R2 password komy
- int s0/0/0
- ip address 192.168.1.2 255.255.255.252
- encapsulation ppp
- no shutdown
R2(CHAP主認(rèn)證方):
- config t
- hostname R2
- username R1 password komy
- int s0/0/0
- clock rate 4000000
- ip address 192.168.1.1 255.255.255.252
- encapsulation ppp
- ppp authentication chap
- no shutdown
來(lái)自:http://hi.baidu.com/51cmdshell