Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Les commandes de routage dynamique sous gns3

Configuration de pc  :
Pc0  : ip 192.168.1.2 255.255.255.0 gateway 192.168.1.1
Pc1  : ip 192.168.1.4 255.255.255.0 Gateway 192.168.1.1
Pc2  : ip 192.168.5.2 255.255.255.0 gateway 192.168.5.1
Pc3  : ip 192.168.5.3 255.255.255.0 gateway 192.168.5.1
Pc4  : ip 192.168.3.4 255.255.255.0 gateway 192.168.3.1
Pc5  :ip 192.168.3.5 255.255.255.0 gateway 192.168.3.1
Pc6  : ip 192.168.7.6 255.255.255.0 gateway 192.168.7.1
Pc7  :ip 192.168.7.7 255.255.255.0 gateway 192.168.7.1
Configuration de interfaces de tous les routeurs  :
Ro
R0#enable
R0#config
R0(config)#interface fast Ethernet 0/0
R0(config-if)#ip address 192.168.1.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#interface serial 0/1
R0(config-if)#ip address 192.168.4.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#interface serial 0/0
R0(config-if)#ip address 192.168.2.1 255.255.255.0
R0(config-if)#no shutdown
R1
R1#enable
R1#config
R1(config)#interface serial0/0
R1(config-if)#ip address 192.168.4.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet0/1
R1(config-if)#ip address 192.168.5.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/1
R1(config-if)#ip address 192.168.6.1 255.255.255.0
R0(config-if)#no shutdown
R2
R2#enable
R2#config
R2(config)#interface serial0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet0/0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
R3
R3#enable
R3#config
R3(config)#interface serial0/0
R3(config-if)#ip address 192.168.6.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet0/1
R3(config-if)#ip address 192.168.7.1 255.255.255.0
R3(config-if)#no shutdown
Activation du protocole de routage dynamique RIP
R0
R0#conf t
R0(config)#router rip
R0(config-router)#network 192.168.4.0
R0(config-router)#network 192.168.1.0
R0(config-router)#network 192.168.2.0
R1
R1#conf t
R1(config)#router rip
R1(config-router)#network 192.168.4.0
R1(config-router)#network 192.168.6.0
R1(config-router)#network 192.168.5.0
R2
R2#conf t
R2(config)#router rip
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.3.0
R3
R3#conf t
R3(config)#router rip
R3(config-router)#network 192.168.7.0
R3(config-router)#network 192.168.6.0
Mise en place d’une nouvelle route

R3
R3#enable
R3#config
R3(config)#interface serial0/1
R3(config-if)#ip address 192.168.8.2 255.255.255.0
R3(config-if)#no shutdown
R2
R2#enable
R2#config
R2(config)#interface serial0/0
R2(config-if)#ip address 192.168.8.1 255.255.255.0
R2(config-if)#no shutdown
Suppression d’une route
R2(config)#no ip route 192.168.8.1 255.255.255.0 serial 0/1
R3(config)#no ip route 192.168.8.2 255.255.255.0 serial 0/1

You might also like