Authentification CHAP


CHAP (Défi Authentication Protocol): Au lieu d'envoyer le mot de passe en clair, nous allons envoyer un «défi» qui est un hash du mot de passe pour plus sécurisé.

 Règle : 

Router(config)# hostname nom-premier-Routeur
Router(config)# username nom-deuxième-Routeur password mot-de-passe
Router(config)# interface type numéro
Router(config-if)# encapsulation ppp
Router(config-if)# ppp authentication chap
Router(config-if)# exit

+pour utilise authentification chap pap
Router(config-if)# ppp authentication chap pap
ou
Router(config-if)# ppp authentication pap chap

 Exemple : 



 sur R1
Router(config)# hostname R1
R1(config)# username R2 password 123456
R1(config)# interface Se 1/0
R1(config-if)# encapsulation ppp
R1(config-if)# ppp authentication chap
R1(config-if)# exit

sur R2
Router(config)# hostname R2
R2(config)# username R1 password 123456
R2(config)# interface Se 1/0
R2(config-if)# encapsulation ppp
R2(config-if)# ppp authentication chap
R2(config-if)# exit

Partager sur: Share Share Share Share