Vous êtes sur la page 1sur 6

TP2 RESEAU

MANKOURI Amani

2020-2021
10 FEV 2021
Architecture des réseaux
Sommaire :
I. Introduction
II. Topologie de réseau
a. Information de réseau
b. Création de la topologie
III. Configuration
a. Pour les hôtes
b. Pour les routeurs
IV. Ping mutuelle
V. Mode simulation
VI. Configuration des routes statique
VII. Ping mutuelle
VIII. Les sauts
IX. Routage dynamique
Le but de ce TP est d’apprendre à configurer les routes statiques sur
un routeur Cisco, en utilisant le simulateur de réseaux Packet Tracer.

a. Les informations de réseau :


Adresse Réseau Information
PC1 10.0.0.0/8 IP : 10.0.0.1
Masque : 255.0.0.0
Passerelle : 10.0.0.254
R1 10.0.0.0/8 IP : 10.0.0.254
Masque : 255.0.0.0
R1 162.168.0.0/30 IP : 162.168.0.1
Masque : 255.255.255.252
R2 162.168.0.0/30 IP : 162.168.0.2
Masque : 255.255.255.252
R2 148.16.0.0/16 IP : 148.16.255.254
Masque : 255.255.0.0
PC2 148.16.0.0/16 IP : 148.16.255.1
Masque : 255.255.0.0
Passerelle : 148.16.255.254

b. Création de la topologie :
a. Configuration des hôtes :
Pour les hôtes on les configure avec l’interface PC/Desktop/IP configuration

PC1 PC2

b. Configuration des Routeurs :


Pour les Routeurs on les configure avec CLI (Commande Line Interface)

Routeur 1 :
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]? terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 10.0.0.254 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf
Configuring from terminal, memory, or network [terminal]? terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 192.168.0.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
^Z

Routeur 2 :
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]? terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.0.2 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
Router(config-if)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf
Configuring from terminal, memory, or network [terminal]? terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 148.16.255.254 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
^Z

Les PCs 1 et 2 ne peuvent pas se pinger mutuellement car ils sont de deux
réseaux différents + on n’a pas encore configuré la route entre R1 (Routeur de
PC1) et R2 (Routeur de PC2).
Apres un Ping de PC1 vers PC2 on obtient :

NEXT LAYER :

NEXT LAYER :

R1 Router(config)#ip route 148.16.0.0 255.255.0.0 192.168.0.2


R2 Router(config)#ip route 10.0.0.0 255.0.0.0 192.168.0.1

Les PCs 1 et 2 peuvent se pinger mutuellement car il y a la route entre R1


(Routeur de PC1) et R2 (Routeur de PC2).

Le ping d’un pc vers l’autre a besoin d’entrer dans 2 autres réseau (plus que
son réseau d’envoie), ça s’appelle les sauts. Donc il a besoin de 2 sauts, et on
peut confirmer avec « Time to live » dans l’entête IP

On peut ne peut pas utiliser le routage dynamique RIPv1 car il marche que
avec les réseaux classfull, et notre réseau est classless.
Par contre on peut configurer par le RIPv2 :
R1 Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 10.0.0.0
Router(config-router)#network 192.168.0.0
Router(config-router)#passive-interface g0/0
R2 Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 192.168.0.0
Router(config-router)#network 148.16.0.0
Router(config-router)#passive-interface g0/0

Vous aimerez peut-être aussi