实验步骤观察内容
显示路由器的串
口状态Command: show interface s0/0
或:display interface s0/0
Serial0/0 is up, line
protocol is up
Hardware is PowerQUICC Serial
Internet address is
192.0.0.1/24
MTU 1500 bytes, BW 2000000 Kbit,
DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP,
loopback not set
测试PC1/PC2连Pinging 202.0.1.2 with
32 bytes of data:
通状态Command: ping
Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for
202.0.1.2:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
1.配置采用PAP验证的PPP协议,PAP 验证是单向验证,RA作为主验证方,RB作为被验证方,是明文验证,配置中要注意双方的密码必须一致且区分大小写。配置完成后在串口上要shutdown接口后再no shutdown (Cisco命令)/ undo shutdown(Quidway命令)使之生效后才能检测是否配置正确。
验证方配置
a)配置验证方式
ppp authentication-mode pap
b)配置用户列表
[RA]local-user user-B
[RA]password simple sharepass
[RA]service-type ppp
被验证方配置
c)配置PAP用户名
ppp pap local-user username password {simple|cipher} password
在Cisco路由器中用到的命令格式如下:Router(config)#hostname name
要验证方的用户名和口令
Router(config)#username name password password
Enables PAP / CHAP 认证
Router(config-if)#ppp authentication {chap | chap pap | pap chap | pap}
测试PCA和PCB之间的连通性,填写表3。
表3
实验步骤观察内容显示路由器的串Serial0/0 is up, line
口状态Command: show interface s0/0
或:display interface s0/0
protocol is up
Hardware is PowerQUICC Serial
Internet address is
192.0.0.1/24
MTU 1500 bytes, BW 2000000 Kbit,
DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP,
loopback not set
测试PC1/PC2连
通状态Command: ping Pinging 202.0.1.2 with
32 bytes of data: Request timed out. Request timed out. Request timed out.
Request timed out.
Ping statistics for
202.0.1.2:
Packets: Sent = 4,
Received = 0, Lost = 4
(100% loss),
2.配置采用CHAP验证的PPP协议,CHAP验证是双向验证,是密文验证。配置完成后在串口上要shutdown接口后再no shutdown(Cisco命令)/ undo shutdown (Quidway命令)使之生效后才能检测是否配置正确。
主验证方配置:
a)配置本地验证对端(方式为CHAP)ppp authentication-mode chap
b)配置本地名称
ppp chap user RA
c)将对端用户名和共享密码加入本地用户列表
[RA]local-user RB
[RA-luser-RB]password simple sharepass [RA-luser-RB]service-type ppp
被验证方配置:
a)本地名称/密码:
[RB-Serial0/0] ppp chap user RB
b)对端用户名和共享密码(和主验证方配置的密码要一样才能通信)
[RB]local-user RA
[RB-luser-RA]password simple sharepass [RB-luser-RA]service-type ppp
测试PCA和PCB之间的连通性,填写表3。
表4
实验步骤观察内容
显示路由器的串口状态Command: show interface
s0/0
Serial0/0 is up, line protocol is up
Hardware is PowerQUICC Serial Internet address is