Chinaunix首页 | 论坛 | 博客
  • 博客访问: 924068
  • 博文数量: 276
  • 博客积分: 4182
  • 博客等级: 上校
  • 技术积分: 4486
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:14
文章分类

全部博文(276)

文章存档

2014年(9)

2013年(132)

2012年(135)

分类: 系统运维

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验证!!!

阅读(859) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~