Département Informatique SRCTR, M2SSI
FEI, USTHB
TP n°5
1) Configuration du PPP
Configuration de l’interface série du routeur 1
Router1 (config-if)# encapsulation ppp
Configuration de l’interface série du routeur 2
Router2 (config-if)# encapsulation ppp
2) Configuration de l’authentification PAP
Configuration du routeur 1
Router1 (config)# username USER-R1 password 0 AQW1
Router1 (config-if)# ppp authentication pap
Router1 (config-if)# ppp pap sent-username USER-R2 password 0 AQW2
Configuration du router2
Router2 (config)# username USER-R2 password 0 AQW2
Router2 (config-if)# ppp authentication pap
Router2 (config-if)# ppp pap sent-username USER-R1 password 0 AQW1
Observation de la négociation et de l’authentification PPP avec les commandes suivantes :
debug ppp authentication ----> Pour voir les messages de chaque étape du processus
l’authentification PAP ou CHAP se déroule
debug ppp negotiation ----> Génère des messages pour le processus de négociation LCP
et NCP qui a lieu entre les équipements
3) Configuration de l’authentification CHAP
Configuration du routeur 1
Router1 (config)# username USER-R1 password 0 AQW1
Router1 (config-if)# ppp authentication chap
Router1 (config-if)# ppp chap hostname USER-R2
Router1 (config-if)# ppp chap password 0 AQW2
Configuration du router2
Router2 (config)# username USER-R2 password 0 AQW2
Router2 (config-if)# ppp authentication chap
Router2 (config-if)# ppp chap hostname USER-R1
Router2 (config-if)# ppp chap password AQW1
5) Configurer l’authentification du protocole de routage EIGRP
Router (config)# key chain EIGRP_KEY
Router(config-keychain)# key 1
Router(config-keychain-key)# key-string CCNP
Router(config)# interface serial 0/0
Router(config-if)# ip authentication mode eigrp 1 md5
Router(config-if)# ip authentication key-chain eigrp 1 EIGRP_KEY
6) Configurer l’authentification du protocole de routage OSPF
Router(config)# interface serial 0/0
Router(config-if)# ip ospf message-digest-key 1 md5 cisco
Router(config-if)# ip ospf authentication message-digest
Router(config-if)# exit
Router(config)# router ospf 10
Router(config-router)# area 0 authentication message-digest
7) Configurer l’authentification du protocole RIPv2
Router(config)# router rip
Router(config-router)# passive-interface default // désactivation de la propagation des mises
à jour de routage
Router(config-router)# no passive-interface serial 0/0 // activation de la propagation sur une
seule interface
Router(config)# key chain SSI
Router(config-keychain)# key 1
Router(config-keychain-key)# key-string cisco
Router(config)# interface serial 0/0
Router(config-if)# ip rip authentication mode md5
Router(config-if)# ip rip authentication key-chain SSI