Re: PPP CHAP Question

From: xh_liu (xh_liu@xxxxxxxxxxxxxxxx)
Date: Fri Apr 20 2001 - 22:33:59 GMT-3


   
HI,

It seems 'ppp chap password' have not
work. Perhaps neednot input such a commond because:

> %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to
> down
> %LINK-3-UPDOWN: Interface Serial0, changed state to down
> %LINK-3-UPDOWN: Interface Serial0, changed state to up
> Se0 PPP: Treating connection as a dedicated line
> Se0 PPP: Phase is AUTHENTICATING, by both
> Se0 CHAP: Using alternate hostname bhead
> Se0 CHAP: O CHALLENGE id 26 len 26 from "bhead"

R2 send out:clear text + ''bhead''(no ppp chap password)

> Se0 CHAP: I CHALLENGE id 28 len 27 from "beavis"

R1 send out:clear text+''beavis''(no ppp chap password)

> Se0 CHAP: Using alternate hostname bhead
> Se0 CHAP: O RESPONSE id 28 len 26 from "bhead"

R2 know beavis's pass by 'username/password'

> Se0 CHAP: I RESPONSE id 26 len 27 from "beavis"

R1 know bheas's password by 'username/password'

> Se0 CHAP: O SUCCESS id 26 len 4
MD5 calcuate and compare
> Se0 CHAP: I SUCCESS id 28 len 4
MD5 calcuate and compare

So, have nothing with 'ppp chap password'.

> %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up

Hope it is helpful.

LXH

R1,
----- Original Message -----
From: Rob Hopkins <rshopkins@earthlink.net>
To: <ccielab@groupstudy.com>
Sent: Friday, April 20, 2001 11:46 AM
Subject: PPP CHAP Question

> I must be missing something here,
> See the config below, which works, my question is why does it work? Notice
> R1 doesnt even have the
> password "bheadpass" anywhere, in fact if I change bhead pass on R1 to
> bheadpass it doesnt work.
>
> When I debug ppp authentication it (from R2)
>
> %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to
> down
> %LINK-3-UPDOWN: Interface Serial0, changed state to down
> %LINK-3-UPDOWN: Interface Serial0, changed state to up
> Se0 PPP: Treating connection as a dedicated line
> Se0 PPP: Phase is AUTHENTICATING, by both
> Se0 CHAP: Using alternate hostname bhead
> Se0 CHAP: O CHALLENGE id 26 len 26 from "bhead"
> Se0 CHAP: I CHALLENGE id 28 len 27 from "beavis"
> Se0 CHAP: Using alternate hostname bhead
> Se0 CHAP: O RESPONSE id 28 len 26 from "bhead"
> Se0 CHAP: I RESPONSE id 26 len 27 from "beavis"
> Se0 CHAP: O SUCCESS id 26 len 4
> Se0 CHAP: I SUCCESS id 28 len 4
> %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
>
>
>
> R1
>
> username bhead password 0 beavispass
>
> interface Serial0
> ip address 10.1.1.1 255.255.255.252
> encapsulation ppp
> ppp authentication chap
> ppp chap hostname beavis
> ppp chap password 7 15100E0D12233834292026 (beavispass)
> !
>
>
>
>
> R2
> username beavis password 0 beavispass
>
> interface Serial0
> ip address 10.1.1.2 255.255.255.252
> encapsulation ppp
> no fair-queue
> clockrate 1000000
> ppp authentication chap
> ppp chap hostname bhead
> ppp chap password 7 13071F170A08142B3837 (bheadpass)
> !
> **Please read:http://www.groupstudy.com/list/posting.html
**Please read:http://www.groupstudy.com/list/posting.html



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:29:53 GMT-3