分类: 系统运维
2013-06-07 11:17:56
R1702:
Router>en
Router#config
Router_config#hostname
Router_config#hostname R1702
R1702_config#username R2626 password 110
R1702_config#int s0/2
R1702_config_s0/2#ip add 192.168.1.1 255.255.255.0
R1702_config_s0/2#encapsulation (封装PPP)
R1702_config_s0/2#Jan 1 00:07:24 Line on Interface Serial0/2, changed state to up
R1702_config_s0/2#ppp authentication chap (启用chap验证)
R1702_config_s0/2#ppp chap hostname R1702
R1702_config_s0/2#quit
R1702_config#aaa authentication ppp default local
R1702_config_s0/2#physical-layer spe
speed -- 端口速率
R1702_config_s0/2#physical-layer speed 64000
R1702_config_s0/2#Jan 1 00:21:33 Line protocol on Interface Serial0/2, changed state to up
R1702_config_s0/2#quit
R2626:
Router>enter
Router#Jan 1 00:13:31 Unknown user enter privilege mode from console 0, level = 15
Router#config
Router_config#hostname R2626
R2626_config#username R1702 password 110
R2626_config#int s0/1
R2626_config_s0/1#ip add 192.168.1.2 255.255.255.0
R2626_config_s0/1#encapsulation ppp
R2626_config_s0/1#ppp auJan 1 00:15:24 Line on Interface Serial0/1, changed state to up
R2626_config_s0/1#ppp authentication chap
R2626_config_s0/1#ppp chap hostname ?
WORD -- CHAP 交互主机名
R2626_config_s0/1#ppp chap hostname R2626
R2626_config_s0/1#quit
R2626_config#aaa authentication ppp default local
在1702上测试连通性:
R1702#ping 192.168.1.1 (ping交换机1702的ip)
PING 192.168.1.1 (192.168.1.1): 56 data bytes
!!!!!
--- 192.168.1.1 ping 统计信息 ---
5 发送报文, 5 响应报文, 0% 没有应答
往返时间 最小/平均/最大 = 0/0/0 ms
ok,成功ppp协议,chap验证!!!