PAP authentication in PPP

Answered Question
Jul 16th, 2009
User Badges:

I read that for configuring PAP authentication in a serial PPP link we need the following commands. I am using R1 and R2 as example:

In R1:

username (R2) passsword (word) - Global command.

encapsulation ppp (int subcommand)

ppp authentication pap (int subcomand)


The same commands in R2 but configuring the username as R1.


Once I enter the "ppp authentication pap" command the link goes down.... is there any reason for this behavior? Is there any crazy thing like needing the cable to be unplugged before setting the configuration and plugged back once the configuration is done?


This is my configuration in R1:


username R2 password 0 carro

!

interface Serial0/0

ip address 12.0.0.1 255.255.255.252

encapsulation ppp

no fair-queue

ppp authentication pap

!


Help please to understand why... I am doing what the book says.

Correct Answer by Edison Ortiz about 8 years 1 month ago

You need to send the username and password with the following command:


On R1:

ppp pap sent-username R1 password carro


On R2:

ppp pap sent-username R2 password carro

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
Istvan_Rabai Thu, 07/16/2009 - 12:08
User Badges:
  • Gold, 750 points or more

Hi Francisco,


R2 configuration should be the following:


username R1 password 0 carro

!

interface Serial0/0

ip address 12.0.0.2 255.255.255.252

encapsulation ppp

ppp authentication pap


Did you configue this on R2 ?


Cheers:

Istvan

fjcardenas-1 Thu, 07/16/2009 - 12:14
User Badges:

Yes, that is the configuration in R2... but it doesn't work... the connection fails once I enter the "ppp authentication pap" command on either end.

Istvan_Rabai Thu, 07/16/2009 - 12:28
User Badges:
  • Gold, 750 points or more

OK. But you have to enter "ppp authentication pap" on both ends.


Use "debug ppp authentication" to see what is happening.


Cheers:

Istvan

Correct Answer
Edison Ortiz Thu, 07/16/2009 - 14:17
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

You need to send the username and password with the following command:


On R1:

ppp pap sent-username R1 password carro


On R2:

ppp pap sent-username R2 password carro

Istvan_Rabai Fri, 07/17/2009 - 00:05
User Badges:
  • Gold, 750 points or more

Hi Edison,


You're right, I forgot about this.


Thanks for your contribution.


Istvan

Actions

This Discussion