Configuración ppp PAP

Configiración autenticación pap entre dos equipos

Configuración R1, creamos usuario para R2 y enviamos nuestros credenciales a R2.

username R2 password 0 PW2
interface Serial0/0
 ip address 10.0.0.1 255.255.255.252
 encapsulation ppp
 serial restart-delay 0
 ppp authentication pap
 ppp chap refuse
 ppp pap sent-username R1 password 0 PW1
end

Configuración R2

username R1 password 0 PW
interface Serial0/0
 ip address 10.0.0.2 255.255.255.252
 encapsulation ppp
 serial restart-delay 0
 ppp chap refuse
 ppp pap sent-username R2 password 0 PW2
end

Vemos como autentica con debug ppp authentication
*Mar  1 00:37:51.691: %SYS-5-CONFIG_I: Configured from console by console
*Mar  1 00:37:51.715: Se0/0 PPP: Using default call direction
*Mar  1 00:37:51.715: Se0/0 PPP: Treating connection as a dedicated line
*Mar  1 00:37:51.715: Se0/0 PPP: Session handle[F000158] Session id[343]
*Mar  1 00:37:51.715: Se0/0 PPP: Authorization required
*Mar  1 00:37:51.719: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
*Mar  1 00:37:51.939: Se0/0 PAP: I AUTH-REQ id 4 len 11 from "R2"
*Mar  1 00:37:51.939: Se0/0 PAP: Authenticating peer R2
*Mar  1 00:37:51.943: Se0/0 PPP: Sent PAP LOGIN Request
*Mar  1 00:37:51.947: Se0/0 PPP: Received LOGIN Response PASS
*Mar  1 00:37:51.947: Se0/0 PPP: Sent LCP AUTHOR Request
*Mar  1 00:37:51.951: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar  1 00:37:51.955: Se0/0 LCP: Received AAA AUTHOR Response PASS
*Mar  1 00:37:51.955: Se0/0 IPCP: Received AAA AUTHOR Response PASS
*Mar  1 00:37:51.955: Se0/0 PAP: O AUTH-ACK id 4 len 5
*Mar  1 00:37:51.959: Se0/0 PPP: Sent CDPCP AUTHOR Request
*Mar  1 00:37:51.963: Se0/0 CDPCP: Received AAA AUTHOR Response PASS
*Mar  1 00:37:52.111: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar  1 00:37:52.959: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

No hay comentarios:

Publicar un comentario