taburiss 发表于 2011-8-6 11:34:31

关于ppp的一个问题!

请问我在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


Kevin_Liu 发表于 2011-8-6 15:52:21

-woniu1- -woniu4-

liqiaohuang 发表于 2011-8-7 13:08:52

看你的配置连认证都没发起,只是开启了认证,这叫什么!!-woniu8 -

taburiss 发表于 2011-8-8 10:05:47

本帖最后由 taburiss 于 2011-8-8 10:07 编辑

liqiaohuang 发表于 2011-8-7 13:08 http://bbs.spoto.net/static/image/common/back.gif
看你的配置连认证都没发起,只是开启了认证,这叫什么!!

是我对于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

页: [1]
查看完整版本: 关于ppp的一个问题!