Il y a 3 méthodes d’authentification possible :
- (0)Aucune : Par défaut.
- (1) Plain-text : Le mot de passe circule en clair.
- (2) MD5 (Message-Digest 5) : Le mot de passe ne circule pas sur le réseau.
NB : Privilégiez le MD5 au Plain-text.
Authentication Plain-text pour le protocole OSPF
Important :
- le mot de passe doit être identique (max 8 caractères)
- OSPFv3 ne supporte plus cette méthode
Étape 1 : Créer le mot de passe.
R1(config)# interface FastEthernet 0/0 R1(config-if)# ip ospf authentication-key [PASSWORD]
Étape 2 : Choisir où l’appliquer.
Pour ce faire deux méthodes :
-> Pour toutes les interfaces du routeur appartenant à l’aire OSPF :
R1(config)# router ospf 1 R1(config-router)# area [Num.d'AREA] authentication
-> Pour l’interface concernée :
R1(config)# interface FastEthernet0/0
R1(config-if)# ip ospf authentication
configuration CISCO de l'Authentication Plain-text pour le protocole OSPF
L'architecture

configuration de R1
R1(config)# interface FastEthernet0/0 R1(config-if)# ip address 10.10.10.1 255.255.255.0 R1(config-if)# ip ospf authentication R1(config-if)# ip ospf authentication-key FINGER R1(config)# router ospf 1 R1(config-router)# network 10.10.10.0 0.0.0.255 area 0
configuration de R2
R2(config)# interface FastEthernet0/0 R2(config-if)# ip address 10.10.10.2 255.255.255.0 R2(config-if)# ip ospf authentication-key FINGER R2(config)# router ospf 1 R2(config-router)# network 10.10.10.0 0.0.0.255 area 0 R2(config-router)# area 0 authentication
- R1 applique l’authentification plain-text sur son interface FastEthernet0/0
- R2 applique l’authentification plain-text sur les interfaces connectées à l’aire 0
Authentication MD5 pour le protocole OSPF
Important :
- Le mot de passe doit être identique
- Le numéro de clef doit être identique
Étape 1 : Créer le mot de passe.
R1(config)# interface FastEthernet 0/0 R1(config-if)# ip ospf message-digest-key [KEY] md5 [PASSWORD]
Étape 2 : Choisir où l’appliquer.
Pour ce faire deux méthodes :
-> Pour toutes les interfaces du routeur appartenant à l’aire OSPF :
R1(config)# router ospf 1
R2(config-router)# area [Num.d'AREA] authentication message-digest-> Pour l’interface concernée :
R1(config)# interface FastEthernet0/0
R1(config-if)# ip ospf authentication message-digest configuration CISCO de l'Authentication MD5 pour le protocole OSPF
L'architecture

configuration de R1
R1(config)# interface FastEthernet0/0 R1(config-if)# ip address 10.10.10.1 255.255.255.0 R1(config-if)# ip ospf message-digest-key 1 md5 FINGER R1(config-if)# ip ospf authentication message-digest R1(config)#router ospf 1 R1(config-router)# network 10.10.10.0 0.0.0.255 area 0
configuration de R2
R2(config)# interface FastEthernet0/0 R2(config-if)# ip address 10.10.10.2 255.255.255.0 R2(config-if)# ip ospf message-digest-key 1 md5 FINGER R2(config)# router ospf 1 R2(config-router)# network 10.10.10.0 0.0.0.255 area 0 R2(config-router)# area 0 authentication message-digest
- R1 applique l’authentification md5 sur son interface FastEthernet0/0
- R2 applique l’authentification md5 sur les interfaces connectées à l’aire 0
CONCLUSION
-> Privilégiez le MD5 au Plain-text.
Pour allez plus loin :
https://www.cisco.com/c/fr_ca/support/docs/ip/open-shortest-path-first-ospf/13697-25.pdf
En espérant avoir pu vous aidez !
N’hésitez pas si vous avez des questions ou si vous avez des informations à apporter.
FingerInTheNet
Sur le même thème :
- Présentation
- Le protocole OSPF
- Les bases
- Les aires OSPF
- Le Virtual Link
- Election du DR et du BDR
- Les tables OSPF
- La Neighbors Table
- La Link State Database
- La table de routage
- La Sécurité
- Authentification OSPF
- Le LSA Filtering
- Autres
- Les types de réseau WAN
Merci de votre soutien et de votre fidélité ! Ce site existe grâce à vous et je ne vous remercierais jamais assez !