雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1664|回复: 5

[讨论/求助] 关于ppp的一个问题!

[复制链接]
发表于 2011-8-6 11:34:31 | 显示全部楼层 |阅读模式
请问我在R1和R2之间设了pap,而在R0和R1之间设了chap,为什么R0可以ping通R1,而R2ping不通R1!
R0:
username R1 password 0 cham
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.1.1 255.255.255.0
encapsulation ppp
ppp authentication chap
!
R1:
hostname R1
!
!
!
!
!
!
!
!
username R0 password 0 cham
username R2 password 0 taburiss
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.1.2 255.255.255.0
encapsulation ppp
ppp authentication chap
clock rate 2000000
!
interface Serial3/0
ip address 192.168.2.1 255.255.255.0
encapsulation ppp
ppp authentication pap
!
R2:
hostname R2
!
!
!
!
!
!
!
!
username R1 password 0 taburiss
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.2.2 255.255.255.0
encapsulation ppp
ppp authentication pap
clock rate 2000000


本帖子中包含更多资源

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

x
发表于 2011-8-6 15:52:21 | 显示全部楼层
发表于 2011-8-7 13:08:52 | 显示全部楼层
看你的配置连认证都没发起,只是开启了认证,这叫什么!!
 楼主| 发表于 2011-8-8 10:05:47 | 显示全部楼层
本帖最后由 taburiss 于 2011-8-8 10:07 编辑
liqiaohuang 发表于 2011-8-7 13:08
看你的配置连认证都没发起,只是开启了认证,这叫什么!!


是我对于pap和username xxx pasword xxx(这个是全局的)的理解不对!改成这样就可以了,R0和R1以及R2和R1都可以互相ping通!多谢回答我的问题!
R0:
hostname R0
!
!
!
!
!
!
!
!
username R1 password 0 cham
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.1.1 255.255.255.0
encapsulation ppp
ppp authentication chap
!
R1:
hostname R1
!
!
!
!
!
!
!
!
username R0 password 0 cham
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.1.2 255.255.255.0
encapsulation ppp
ppp authentication chap
clock rate 2000000
shutdown
!
interface Serial3/0
ip address 192.168.2.1 255.255.255.0
encapsulation ppp
ppp authentication pap
!
R2:
hostname R2
!
!
!
!
!
!
!
!
username R1 password 0 taburiss
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.2.2 255.255.255.0
encapsulation ppp
ppp pap sent-username R0 password 0 cham
clock rate 2000000
!
发表于 2011-8-15 11:04:57 | 显示全部楼层
能拿出你原始的配置内容看起来更加直观
发表于 2011-10-5 14:45:22 | 显示全部楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-7-3 01:36 , Processed in 0.092581 second(s), 20 queries , Gzip On.

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