Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Configuring ppp with chap authent.

Hi.I've configured ppp on two routers In a home lab.I've enabled chap authentication with the ppp authentication chap command.The connections are up and working.The problem Is It doesnt matter what username and password combination I use on the routers.It still works.From what I've read I have to use the hostname of the peer as a username and Identical passwords.What might I be doing wrong here ?

1 ACCEPTED SOLUTION

Accepted Solutions
Purple

Configuring ppp with chap authent.

Hi,

just do a shut/no shut of your serial interface and you will see it is not working.

you can do  debug ppp authentication to see what is the problem.

Regards.

Alain

Don't forget to rate helpful posts.
10 REPLIES
Purple

Configuring ppp with chap authent.

Hi,

take a look here:http://www.cisco.com/en/US/tech/tk713/tk507/technologies_tech_note09186a00800b4131.shtml

Regards.

Alain

Don't forget to rate helpful posts.

Configuring ppp with chap authent.

hi,

i recently read CCNA CNAP's chapter 2 - PPP and here's what i got from my notes and sample below. the hostname on one router must match the username the other router has configured. the passwords must also match. this occurs on initial link establishment and can be repeated any time after the link has been established

hostname R1

!

username R3 password 0 someone

!

interface Serial0/1/0

ip address 172.16.0.1 255.255.255.252

encapsulation ppp

ppp authentication chap

clock rate 64000

Serial0/1/0 IPCP: I CONFREQ [Closed] id 1 len 10

Serial0/1/0 IPCP: O CONFACK [Closed] id 1 len 10

Serial0/1/0 IPCP: I CONFREQ [REQsent] id 1 len 10

Serial0/1/0 IPCP: O CONFACK [REQsent] id 1 len 10

Serial0/1/0 IPCP: O CONFREQ [Closed] id 1 len 10

Serial0/1/0 IPCP: I CONFACK [Closed] id 1 len 10

Serial0/1/0 IPCP: O CONFREQ [Closed] id 1 len 10

Serial0/1/0 IPCP: I CONFACK [REQsent] id 1 len 10

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

----

hostname R3

!

username R1 password 0 someone

!

interface Serial0/0/0

ip address 172.16.0.2 255.255.255.0

encapsulation ppp

ppp authentication chap

Community Member

Configuring ppp with chap authent.

Thats what I've read too.But It's still working whatever password , username config I use.I'm doing something wrong.

Cisco Employee

Configuring ppp with chap authent.

Hello,

In addition to the recommendations of John and Alain, would you mind posting your configurations of both routers?

Best regards,

Peter

Community Member

Re: Configuring ppp with chap authent.

I've attached the startup config both routers.My problem Is It still works even with different passwords and usernames.

Purple

Configuring ppp with chap authent.

Hi,

just do a shut/no shut of your serial interface and you will see it is not working.

you can do  debug ppp authentication to see what is the problem.

Regards.

Alain

Don't forget to rate helpful posts.
Community Member

Re: Configuring ppp with chap authent.

Thanks.I'm happy to report things have stopped working!

Re: Configuring ppp with chap authent.

hi,

i tried to simulate your config and it's not working. when re-configured the username to match the remote router and using same passwords, the serial links went up. could you try it on your lab and confirm?

hostname R1.12

!

username R1.12 password 0 reprovo

!

interface Serial0/0

ip address 192.168.6.3 255.255.255.0

encapsulation ppp

ppp authentication chap

clock rate 128000

----

hostname R2.10

!

username R2.10 password 0 rep

!

interface Serial0/0

ip address 192.168.6.1 255.255.255.0

encapsulation ppp

ppp authentication chap

-------

R1.12#sh ip int br

Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        unassigned      YES unset  administratively down down

Serial0/0              192.168.6.3     YES manual up                    down

R2.10#sh ip int br

Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        unassigned      YES unset  administratively down down

Serial0/0              192.168.6.1     YES manual up                    down

------

R1.12(config)#username R2.10 password reprovo

R1.12(config)#

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

R2.10(config)#username R1.12 password reprovo

R2.10(config)#

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

Community Member

Re: Configuring ppp with chap authent.

Yeah as cadet Alain pointed out I had to shutdown no shutdown on the serial Interfaces.The connection then stopped working

Re: Configuring ppp with chap authent.

ok great!

1095
Views
0
Helpful
10
Replies
CreatePlease to create content