router9和11上分別配置s0/0以下服務器
conf trouter
int s0/0blog
encapsulation hdlcip
do show int s0/0ci
ip address x.x.x.1 255.255.255.0get
no shutdownit
便可互相ping通io
conf t服務器端
int s0/0配置
encapsution ppp
no sh
便可.PAP或者CHAP認證是可選的.
ppp pap sent-username r1 password 0 mypass
conf t
username r1 password 0 mypass
int s0/0
encapsution ppp
ppp authentication pap
conf t
username bill password 0 good
int s0/0
encapsution ppp
ppp pap sent-username r1 password 0 mypass
ppp authentication pap
conf t
username r1 password 0 mypass
int s0/0
encapsution ppp
ppp authentication pap
ppp pap sent-username bill password 0 good
R1:
conf t
username r1 password 0 good
int s0/0
encapsution ppp
ppp authentication chap
R2:
conf t
username r2 passord 0 good
encapsution ppp
ppp authentication chap
2.5 CHAP單向認證—cisco paket tracer中作不了此實驗,未驗證
r1(config)#username r2 password cisco
r1(config)#int s1/1
r1(config-if)#encapsulation ppp
r1(config-if)#ppp authentication chap
r2(config)#int s1/0
r2(config-if)# encapsulation ppp
r2(config-if)#ppp chap hostname r2 // 設置本端用戶名
r2(config-if)#ppp chap password cisco