Interconnexion de Deux Sites Distants (DHCP-OSPF-HSRP)

Télécharger au format pdf ou txt
Télécharger au format pdf ou txt
Vous êtes sur la page 1sur 11

Thème : Interconnexion de deux sites distants

Objectif : le premier site comporte deux switches avec deux vlan chacun une adresse réseau différente de l’autre
et un routeur Dhcp qui va être interconnecter via OSPF avec le deuxième site où on a deux routeurs dont l’un est
actif et l’autre est en mode Standby

Technologies utilisées : DHCP , Vlan , IVR , Ospf , HSRP

Matériels adoptées : Switch Cisco 2960, routeur Cisco 2901 , machines de test
Partie 1 :

Router :

en

conf t

int gi0/1

ip add 1.0.0.1 255.255.255.252

no sh

exit
int gi0/2

ip add 2.0.0.1 255.255.255.252

no sh

exit

int gi0/0

no sh

no ip add

exit

int gi0/0.10

encapsulation dot1Q 10

ip add 192.168.10.1 255.255.255.0

no sh

exit

int gi0/0.20

encapsulation dot1q 20

ip add 172.16.0.1 255.255.0.0

no sh

exit

router ospf 1

network 192.168.0.0 0.0.0.255

network 172.16.0.0 0.0.255.255

network 1.0.0.0 0.0.0.3 area 0

network 2.0.0.0 0.0.0.3 area 0

exit

ip dhcp pool Admin

network 192.168.10.0 255.255.255.0

default-router 192.168.10.1

dns-server 8.8.8.8

exit

ip dhcp pool IT

network 172.16.0.0 255.255.0.0


default-router 172.16.0.1

dns-server 8.8.8.8

exit

ip dhcp excluded-address 192.168.10.1

ip dhcp excluded-address 172.16.0.1

do wr

Switch 1:

en

conf t

ip domain-name test.ma

no ip domain-lookup

int fa0/1

switchport mode trunk

exit

int gi0/1

switchport mode trunk

switchport trunk allowed vlan all

exit

vtp domain test.ma

vtp version 2

vtp password P@ssw0rD

vtp mode server

vlan 10

name Admin

vlan 20

name IT

exit

spanning-tree mode rapid-pvst

int fa0/2

switchport mode access


switchport access vlan 10

exit

int fa0/3

switchport mode access

switchport access vlan 20

exit

do wr

Switch 2:

en

conf t

ip domain-name test.ma

no ip domain-lookup

int gi0/1

switchport mode trunk

switchport trunk allowed vlan all

exit

vtp domain test.ma

vtp version 2

vtp password P@ssw0rD

vtp mode client

spanning-tree mode rapid-pvst

int fa0/2

switchport mode access

switchport access vlan 20

exit

int fa0/3

switchport mode access

switchport access vlan 10

exit
do wr

Partie 2:

Router 2:

en

conf t

int gi0/0

ip add 1.0.0.2 255.255.255.252

no sh

exit

int gi0/1

no sh
ip add 10.10.10.1 255.0.0.0

standby 1 ip 10.10.10.10

standby 1 priority 110

standby 1 preempt

exit

router ospf 1

network 10.10.10.0 0.255.255.255 area 0

network 1.0.0.0 0.0.0.3 area 0

exit

Router 2 :

en

conf t

int gi0/0

ip add 2.0.0.2 255.255.255.252

no sh

exit

int gi0/1

no sh

ip add 10.10.10.2 255.0.0.0

standby 1 ip 10.10.10.10

standby 1 priority 90

standby 1 preempt

exit

router ospf 1

network 10.10.10.0 0.255.255.255 area 0

network 1.0.0.0 0.0.0.3 area 0

exit
Partie 3 : phase de teste

Tester que les machines arrivent a récupérer leur paramètres TCP/IP à partir du routeur configurer
comme serveur DHCP :
Test du bon fonctionnement du protocole HSRP :
Maintenant on va désactiver un liason du ROUTEUR 2

Int gi0/0

Shutdown

Exit

On va relancer le ping vers 192.168.10.3

Vous aimerez peut-être aussi

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy