注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 Exchange服务器系列课程之..
 帮助

PPP身份认证实验配置(ppp)


2007-06-14 21:31:59
 标签:PPP身份认证   [推送到技术圈]

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://loveme23.blog.51cto.com/7891/30193
实验来源:工大瑞普Cisco网络技术论坛

1.按照拓扑图配置好两台路由器的接口IP地址;
2验证路由器之间的连通性;
3.配置PPP协议:
方法一,PAP双向验证:
Router(config)#hostname R1       //设置主机名为R1

R1(config)#username R2 password cisco       //建立用户R2,密码cisco
R1(config)#int s1/0
R1(config-if)#encapsulation ppp   //用PPP封装
R1(config-if)#ppp authentication pap   //PPP验证方式为pap
R1(config-if)#ppp pap sent-username R1 password 0 cisco     //发送用户名R1,密码cisco

Router(config)#hostname R2
R2(config)#username R1 password cisco
R2(config)#int s1/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication pap
R2(config-if)#ppp pap sent-username R2 password 0 cisco
使用ping命令验证连通性。(注意,这里在R1上发送的用户名和密码必须和在R2上建立的用户名密码一致)
方法二,使用PAP单向认证:(验证方R1—被验证方R2)
Router(config)#hostname R1
R1(config)#username R2 password cisco
R1(config)#int s1/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication pap

Router(config)#hostname R2
R2(config)#int s1/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp pap sent-username R2 password 0 cisco
使用ping命令验证连通性。
方法三,使用CHAP双向认证:
Router(config)#hostname R1
R1(config)#username R2 password cisco
R1(config)#int s1/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap

Router(config)#hostname R2
R2(config)#username R1 password cisco
R2(config)#int s1/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap
使用ping命令验证连通性。
方法四,CHAP单向认证:(验证方R1—被验证方R2)
Router(config)#hostname R1
R1(config)#username R2 password cisco
R1(config)#int s1/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap

Router(config)#hostname R2
R2(config)#int s1/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp chap hostname R2
R2(config-if)#ppp chap password 0 cisco
使用ping命令验证连通性。
OK,试验完。--------------------------------------------(感谢银色香槟对本次试验提供的帮助)

本文出自 “★Beckham~23” 博客,请务必保留此出处http://loveme23.blog.51cto.com/7891/30193





    文章评论
 
2007-07-07 08:59:27
好样的,经常没事就来博主的博客里坐坐,能看到不少的东西

2007-10-09 21:29:43
R2(config-if)#ppp chap hostname R2
R2(config-if)#ppp chap password 0 cisco

这条命令在我的boson里无法执行,是我的netsim问题么?

2007-10-09 22:14:41
boson不好用,用dynamips吧!

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: