Cisco Packet Tracer routage dynamique avec protocole RIP V2
Passons
au la pratique avec RIP V2 on va utiliser LE RIP V2 car j'ai utilisé une
adresse réseaux de 192.168.1.0/30 c'est à dire que le masque et 255.255.255.252
alors que RIP V1 ne supporte pas ce genre de ip classless
voila la maquette
Pour router0
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.168.1.1 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
Pour router1
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.168.1.2 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 11.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
On fait entrer les adresse ip aux PC
PC0
 |
PC0
|
Pour PC1
 |
PC1
passons aux routeurs pour faire le routage avec RIP V2
LE SYNTAXE DE ROUTAGE RIP V2
router rip
network x.x.x.x
version2
La
règle on met l'adresse réseaux qui est relié directement à notre routeur
Router0
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 192.168.1.0
Router(config-router)#version 2
Router(config-router)#end
Router
%SYS-5-CONFIG_I: Configured from console by console
Router1
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#network 192.168.1.0
Router(config-router)#network 11.0.0.0
Router(config-router)#version 2
Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
N’oublié pas de sauvegarder votre travail avec la commande
copy running-config star config
Et
voila c'est terminé faisons un ping pour tester la connexion entre pc0 et pc1
Voila c'est fait passons maintenant pour voir la table de routage
dans router0
Router#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
C 10.0.0.0/8 is directly connected, FastEthernet0/0
R 11.0.0.0/8 [120/1] via 192.168.1.2, 00:00:09, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.0 is directly connected, Serial2/0
On
voit que RIP a détecté la présence de sous réseau 192.168.1.0/30
Cisco Packet Tracer avec protocole rip v2
|