雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1422|回复: 6

[讨论/求助] pap 单向认证问题

[复制链接]
发表于 2012-12-2 12:21:11 | 显示全部楼层 |阅读模式
请哪位大侠帮忙看看下面的配置为什么还是不能通信:
R1 配置:

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#user R2 pass aaa
R1(config)#int s 0/0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#en ppp
R1(config-if)#ppp auth pap
R1(config-if)#exit

R2配置:
interface Serial0/0/0
ip address 192.168.1.2 255.255.255.0
encapsulation ppp
ppp authentication pap
ppp pap sent-username R2 password 0 aaa
clock rate 64000







本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2012-12-2 12:57:13 | 显示全部楼层
ppp authentication pap
表示启用PAP认证  你在R2上也开启了 这就变成双向了

点评

tea
大爷正解  发表于 2012-12-2 13:14
 楼主| 发表于 2012-12-2 13:47:50 | 显示全部楼层
紫川凌 发表于 2012-12-2 12:57
ppp authentication pap
表示启用PAP认证  你在R2上也开启了 这就变成双向了

把R1的封装取消了还是ping不通,这是啥情况啊?

R2
interface Serial0/0/0
ip address 192.168.10.2 255.255.255.0
encapsulation ppp
ppp authentication pap
ppp pap sent-username R2 password 0 aaa
clock rate 64000


Router>
Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#user R2 pass aaa
R1(config)#int s0/0/0
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#no shut
 楼主| 发表于 2012-12-2 13:49:41 | 显示全部楼层
紫川凌 发表于 2012-12-2 12:57
ppp authentication pap
表示启用PAP认证  你在R2上也开启了 这就变成双向了

有没有一个相关的视频或者文档啥的,我在网上搜没有搜到视频,文档写的挺乱的
发表于 2012-12-2 15:05:04 | 显示全部楼层
紫麒麟 发表于 2012-12-2 13:49
有没有一个相关的视频或者文档啥的,我在网上搜没有搜到视频,文档写的挺乱的

建议看一下这篇文章..里面涉及到了CCNA的PPP主要的基础知识~
http://www.qingsword.com/qing/661.html
发表于 2012-12-2 15:43:04 | 显示全部楼层
紫麒麟 发表于 2012-12-2 13:47
把R1的封装取消了还是ping不通,这是啥情况啊?

R2

你只要把R2上的PAP认证去掉就好了


=================PAP单向认证=================


R1:

en
conf t
username spoto password cisco
int s0/0
ip address 12.12.12.1 255.255.255.0
encapsulation ppp
ppp authentication pap
no sh
exit



R2:

enable
conf t
int s0/0
ip address 12.12.12.2 255.255.255.0
encapsulation ppp
ppp pap sent-username spoto password 0 cisco
no sh
exit

!
!







=================PAP双向认证=================


en
conf t
username spoto password cisco
int s0/0
ip address 12.12.12.1 255.255.255.0
encapsulation ppp
ppp authentication pap
ppp pap sent-username ccna password 0 ccnp
no sh
exit



R2:

enable
conf t
username ccna password ccnp
int s0/0
ip address 12.12.12.2 255.255.255.0
encapsulation ppp
ppp pap sent-username spoto password 0 cisco
no sh
exit



=================PPP chap 单向认证=================


R1:
en
conf t
username spoto password cisco
int s0/0
ip address 12.12.12.1 255.255.255.0
encapsulation ppp
ppp authentication chap
no sh
exit



R2:

enable
conf t
int s0/0
ip address 12.12.12.2 255.255.255.0
encapsulation ppp
ppp chap hostname spoto
ppp chap password cisco
no sh
exit  





=================CHAP双向认证=================



R1:

en
conf t
username R2 password spoto
int s0/0
ip address 12.12.12.1 255.255.255.0
encapsulation ppp
ppp authentication chap
no sh
exit



R2:

enable
conf t
username R1 password spoto
int s0/0
ip address 12.12.12.2 255.255.255.0
encapsulation ppp
ppp authentication chap
no sh
exit



点评

顶起~  发表于 2012-12-2 16:49
 楼主| 发表于 2012-12-3 10:15:58 | 显示全部楼层
多谢各位了!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-6-16 15:43 , Processed in 0.082157 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表