21 mars 2013

Cisco: Routage avec RIP

Le but ici est de s'echanger entre voisins les informations de routage via RIP version 1.

Fichier a telecharger: routage_rip_clean.pkt
Logiciel: packet tracer




-Mettre les hostnames: Router0 (Paris), Router1 (Bruxelles)
-Désactiver la résolution de noms
-Synchroniser la ligne console
-Configurer les interfaces puis ajouter des descriptions
-Mettre en place RIP avec comme condition de ne pas accepter les mises a jour venant des hotes
-Mettre en place un service de DHCP pour assigner automatiquement des adresses IP pour les hôtes


dns-server 8.8.8.8

















****************************************************
Correction
****************************************************

I.- Mise en place des nom d'hotes
```````````````````````````````````
Router0>enable
Router0#configure terminal
Router0(config)#hostname Paris
Paris(config)#


Router1>enable
Router1#configure terminal
Router1(config)#hostname Bruxelles
Bruxelles(config)#

II.- Désactiver la résolution de noms
``````````````````````````````````````

Paris(config)#no ip domain-lookup

Bruxelles(config)#no ip domain-lookup


III.- Synchroniser la ligne console
```````````````````````````````````

Paris(config)#line console 0
Paris(config-line)#loggin synchronous
Paris(config-line)#exit


Bruxelles(config)#line console 0
Bruxelles(config-line)#loggin synchronous
Bruxelles(config-line)#exit


IV.- Configurer les interfaces puis ajouter des descriptions
```````````````````````````````````````````````````````````


1. Interfaces ethernets:
Paris(config)#interface fastethernet 0/0
Paris(config-if)#description vers LAN
Paris(config-if)#ip address 192.168.100.254 255.255.255.0
Paris(config-if)#no shutdown
Paris(config-if)#exit

Bruxelles(config)#interface fastethernet 0/0
Bruxelles(config-if)#description vers LAN
Bruxelles(config-if)#ip address 192.168.200.254 255.255.255.0
Bruxelles(config-if)#no shutdown
Bruxelles(config-if)#exit

2. Interfaces series:

Paris#show controllers serial 0/0/0
Interface Serial0/0/0
Hardware is PowerQUICC MPC860
DCE V.35, no clock

Bruxelles#show controllers s0/0/1
Interface Serial0/0/1
Hardware is PowerQUICC MPC860
DTE V.35 clocks stopped.


Paris#configure terminal
Paris(config)#interface serial 0/0/0
Paris(config-if)#description vers Bruxelles
Paris(config-if)#ip address 1.0.0.1 255.0.0.0
Paris(config-if)#clock rate 128000
Paris(config-if)#bandwidth 128
Paris(config-if)#no shutdown

Bruxelles#configure terminal
Bruxelles(config)#interface serial 0/0/1
Bruxelles(config-if)#description vers Paris
Bruxelles(config-if)#ip address 1.0.0.2 255.0.0.0
Bruxelles(config-if)#no shutdown



V.- Mettre en place RIP avec comme condition de ne pas accepter les mises a jour venant des hotes
```````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

Paris(config)#router rip
Paris(config-router)#passive-interface fastethernet 0/0
Paris(config-router)#network 1.0.0.0
Paris(config-router)#network 192.168.100.0
Paris(config-router)#end
Paris# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Paris#

Bruxelles(config)#router rip
Bruxelles(config-router)#passive-interface fastethernet 0/0
Bruxelles(config-router)#network 1.0.0.0
Bruxelles(config-router)#network 192.168.200.0
Bruxelles(config-router)#end
Bruxelles# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Bruxelles#


VI.- Mettre en place un service de DHCP pour assigner automatiquement des adresses IP pour les hôtes
````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

Paris(config)#ip dhcp pool LAN
Paris(dhcp-config)#network 192.168.100.0 255.255.255.0
Paris(dhcp-config)#default-router 192.168.100.254
Paris(dhcp-config)#dns-server 8.8.8.8
Paris(dhcp-config)#end

Bruxelles(config)#ip dhcp pool LAN
Bruxelles(dhcp-config)#network 192.168.200.0 255.255.255.0
Bruxelles(dhcp-config)#default-router 192.168.100.254
Bruxelles(dhcp-config)#dns-server 8.8.8.8
Bruxelles(dhcp-config)#end


VII. Verification
`````````````````````

Paris#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    1.0.0.0/8 is directly connected, Serial0/0/0
C    192.168.100.0/24 is directly connected, FastEthernet0/0
R    192.168.200.0/24 [120/1] via 1.0.0.2, 00:00:07, Serial0/0/0
Paris#

 
Bruxelles#debug ip ?
  icmp ICMP transactions
  inspect Stateful inspection events
  nat NAT events
  ospf OSPF information
  packet Packet information
  rip RIP protocol transactions
  routing Routing table events
Bruxelles#debug ip rip
 RIP protocol debugging is on
Bruxelles#RIP: sending v1 update to 255.255.255.255 via Serial0/0/1 (1.0.0.2)
 RIP: build update entries
  network 192.168.200.0 metric 1


Bruxelles#RIP: received v1 update from 1.0.0.1 on Serial0/0/1
192.168.100.0 in 1 hops


Bruxelles#undebug ?
aaa AAA Authentication, Authorization and Accounting
all Enable all debugging
custom-queue Custom output queueing
eigrp EIGRP Protocol information
frame-relay Frame Relay
ip IP information
ntp NTP information
ppp PPP (Point to Point Protocol) information
Bruxelles#undebug all
All possible debugging has been turned off
Bruxelles#

Fichier contenant la correction a telecharger: routage_rip_correction.pkt

Aucun commentaire:

Enregistrer un commentaire