Cet article apporte une solution pour le challenge proposé ici: Challenge et Mini-Lab Niveau CCNA
Tâche 1: configurer RIP sur toutes les interfaces de R2
Solution proposée:
router rip version 2 network 10.0.0.0 no auto-summary
On pourra vérifier la bonne configuration à l’aide de la commande show suivante:
show ip rip database
Tâche 2: configurer OSPF sur toutes les interfaces de R3
Solution proposée:
router ospf 1 network 10.1.2.0 0.0.0.255 area 0 network 10.13.0.0 0.0.0.255 area 0
On pourra vérifier la bonne configuration à l’aide de la commande show suivante (hors programme CCNA);
show ip ospf database router self-originate
Tâche 3: configurer EIGRP sur toutes les interfaces de R4
Solution proposée:
router eigrp 1 network 10.1.2.0 0.0.0.255 network 10.14.0.0 0.0.0.255 no auto-summary
On pourra vérifier la bonne configuration à l’aide de la commande show suivante (hors programme CCNA);
show ip eigrp topology
Tâche 4: configurer RIP sur l’interface s2/0 de R1
Solution proposée:
router rip version 2 network 10.1.12.0 no auto-summary
On pourra vérifier la bonne configuration à l’aide de la commande show suivante (hors programme CCNA);
show ip route rip
Tâche 5: configurer OSPF et EIGRP sur (respectivement) s2/1 et s2/2 du routeur R1
Solution proposée:
interface Serial2/1 ip ospf 1 area 0 ! router eigrp 1 network 10.14.0.0 0.0.0.255 no auto-summary
Pour répondre à la question on pourra utiliser les commandes:
show ip route show ip route 10.1.2.0
La dernière commande retourne:
R1#show ip route 10.1.2.0 Routing entry for 10.1.2.0/24 Known via "eigrp 1", distance 90, metric 2195456, type internal Redistributing via eigrp 1 Last update from 10.14.0.4 on Serial2/2, 00:00:10 ago Routing Descriptor Blocks: * 10.14.0.4, from 10.14.0.4, 00:00:10 ago, via Serial2/2 Route metric is 2195456, traffic share count is 1 Total delay is 21000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes Loading 1/255, Hops 1
Le routeur R4 est donc utilisé pour accéder au réseau 10.1.2.0/24. Pour influencer le routage, il faut d’abord avoir bien compris que ce choix de routage s’appuie sur la distance administrative (relire attentivement l’article Routage IP: le traitement des paquets IP par un routeur (S1E3).
Tâche 6: choisir R2 avant R3 lui même avant R4
Si vous avez bien compris, c’est la distance administrative qui va permettre de choisir les informations issues d’un protocole de routage par rapport à un autre. Par défaut, AD(EIGRP)=90 < AD (OSPF) = 110 < AD (RIP) = 120.
On peut vérifier ces valeurs à l’aide de la commande show ip protocols | inc Protocol|Distance :
R1#show ip protocols | inc Protocol|Distance Routing Protocol is "rip" Gateway Distance Last Update Distance: (default is 120) Routing Protocol is "ospf 1" Gateway Distance Last Update Distance: (default is 110) Routing Protocol is "eigrp 1" Gateway Distance Last Update Distance: internal 90 external 170
Pour répondre à la question, il faut donc modifier la distance administrative des protocoles pour être conforme aux spécifications. Par exemple, on pourra définir – sur R1 – l’AD(OSPF) = 80 et AD(RIP) = 70 comme suit:
router rip distance 70 ! router ospf 1 distance ospf intra-area 80
Et, nous vérifions le résultat par la commande show ip route:
R1#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 10.0.0.0/24 is subnetted, 4 subnets C 10.14.0.0 is directly connected, Serial2/2 C 10.12.0.0 is directly connected, Serial2/0 C 10.13.0.0 is directly connected, Serial2/1 R 10.1.2.0 [70/1] via 10.12.0.2, 00:00:00, Serial2/0
La dernière ligne nous indique bien que le protocole RIP a été préféré et que le next-hop pour le réseau 10.1.2.0/24 est bien R2 (IP: 10.12.0.2).
Pour vraiment être sur que R3 sera préféré sur R4, on peut, par exemple, simuler une panne sur la liaison S2/0 (entre R1 et R2) avec la commande shutdown sous l’interface S2/0 de R1.
R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int s2/0 R1(config-if)#shut R1(config-if)#end R1#sh R1#show ip *Mar 1 15:37:52.184: %SYS-5-CONFIG_I: Configured from console by console R1#show ip route *Mar 1 15:37:53.396: %LINK-5-CHANGED: Interface Serial2/0, changed state to administratively down *Mar 1 15:37:54.396: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down R1#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 3 subnets
C 10.14.0.0 is directly connected, Serial2/2
C 10.13.0.0 is directly connected, Serial2/1
O 10.1.2.0 [80/65] via 10.13.0.3, 00:00:03, Serial2/1
La route vers R3 est alors utilisée. C’est exactement conforme aux spécifications.
J’attends toutes vos questions ou demandes de précision dans les commentaires ci-dessous….
Laisser un commentaire