Vous êtes sur la page 1sur 10

 Le plan d’adressage IP pour les vlans du Siège et Succursale

  Nom Sous-réseau Réseau/Préfix Plage Diffusion


VLAN 10 (120H) 192.168.0.0/25 192.168.0.1 → 192.168.0.126 192.168.0.127
VLAN 20 (60H) 192.168.0.128/26 192.168.0.129 → 192.168.0.190 192.168.0.191
Siége
VLAN 40 (30H) 192.168.0.192/27 192.168.0.193 →192.168.0.222 192.168.0.223
VLAN 99 (20H) 192.168.0.224/27 192.168.0.225 → 192.168.0.254 192.168.0.255

Succursale VLAN 30 (30H) 192.168.1.0/27 192.168.1.1 →192.168.1.30 192.168.1.31


oujda VLAN 50 (28H) 192.168.1.32/27 192.168.1.33 →192.168.1.62 192.168.1.63

Succursale
55H 192.168.1.64/26 192.168.1.65 → 192.168.1.126 192.168.1.127
Tanger

 Les adresse IP des interfaces virtuelles des commutateurs multicouches SD1 et SD2

  SD1(1 ère Adresse du SR) SD1(2 -ème Adresse du SR) RT-virtuelle (3 -ème Adresse du SR)
SVI VLAN 10 192.168.0.1 /25 192.168.0.2 /25 192.168.0.3 /25
SVI VLAN 20 192.168.0.129 /26 192.168.0.130 /26 192.168.0.131 /26
SVI VLAN 40 192.168.0.193 /27 192.168.0.194 /27 192.168.0.195 /27
SVI VLAN 99 192.168.0.225 /27 192.168.0.226 /27 192.168.0.227 /27
 La configuration IP des interfaces des routeurs et des commutateurs multicouches :

  Interfaces @ IP Masque
S0/0/0 10.10.10.9 255.255.255.252
S0/0/1 10.10.10.13 255.255.255.252
R-Rabat
G0/0 10.10.10.2 255.255.255.252
G0/1 10.10.10.6 255.255.255.252
S0/0/0 10.10.10.10 255.255.255.252
R-Oujda G0/1.30 192.168.1.1 255.255.255.224
G0/1.50 192.168.1.33 255.255.255.224
S0/0/0 10.10.10.14 255.255.255.252
R-Tanger
G0/1 192.168.1.65 255.255.255.192
VLAN10 192.168.0.1 255.255.255.128
VLAN20 192.168.0.129 255.255.255.192
SD1 VLAN40 192.168.0.193 255.255.255.224
VLAN99 192.168.0.225 255.255.255.224
G0/1 10.10.10.1 255.255.255.252
VLAN10 192.168.0.2 255.255.255.128
VLAN20 192.168.0.130 255.255.255.192
SD2 VLAN40 192.168.0.194 255.255.255.224
VLAN99 192.168.0.226 255.255.255.224
G0/1 10.10.10.5 255.255.255.252
VLAN10 192.168.0.3 255.255.255.128
VLAN20 192.168.0.131 255.255.255.192
R-Virtuel
VLAN40 192.168.0.195 255.255.255.224
VLAN99 192.168.0.227 255.255.255.224
SA1 VLAN99 192.168.0.228 255.255.255.224
SA2 VLAN99 192.168.0.229 255.255.255.224

 La configuration des hôtes dans le tableau ci-dessous

Sites Hôte IP/Masque Passerelle


PC1-vlan 10 192.168.0.4/25 192.168.0.3
PC2-vlan 20 192.168.0.132/26 192.168.0.131
PC3-vlan 10 192.168.0.5/25 192.168.0.3
Siège
PC4-vlan 20 192.168.0.132/26 192.168.0.131
SA1-vlan99 192.168.0.228/27 192.168.0.227
SA2-vlan99 192.168.0.229/27 192.168.0.227
PC5-vlan 30 192.168.1.2/27 192.168.1.1
R-Oujda
PC6-vlan 50 192.168.1.34/27 192.168.1.33
R-Tanger PC7 192.168.1.66/26 192.168.1.65
 Configuration de basse de commutateur SA1
Hostname S-A1
Enable secret marocsoft
Line console 0
Password marocsoft
Login
Username admin1 password marocsoft
Ip domain-name siege.ma
Crypto key generate rsa general-keys modulus 1024
Ip ssh version 2
Line vty 0 10
Transport input ssh
Login local
No ip domain lookup
Line console 0
Loggin synchronous
Banner motd # tout acces non autorise est interdit #

 Configuration de VTP :
Sur SD1  :
Hostname SD1
Vtp mode server
Vtp version 2
Vtp domain siege.ma
Vtp password siege
Exit
Write
Sur SD2 :
Hostname SD2
Vtp mode client
Vtp version 2
Vtp domain siege.ma
Vtp password siege
Exit
Write
Sur S-A1 :
Vtp mode client
Vtp version 2
Vtp domain siege.ma
Vtp password siege
Exit
Write
Sur SA2 :
Hostname SA2
Vtp mode client
Vtp version 2
Vtp domain siege.ma
Vtp password siege
Exit
Write
 Configuration des vlans
Sur VTP Server  : SD1
Vlan 10
Name Informatique
Vlan 20
Name Mark
Vlan 40
Name VOIP
Vlan 99
Name Natif-gestion
End
Write
 Configuration des ports d’accès et les ports Trunk comme indiqué sur le schéma
Sur SD1  :
Interface range f0/1-2 , f0/23-24
switchport trunk encapsulation dot1q
switchport mode trunk
end
Write
Sur SD2  :
Interface range f0/1-2 , f0/23-24
switchport trunk encapsulation dot1q
switchport mode trunk
End
Write
Sur S-A1 :
Interface range f0/1-2 , f0/23-24
switchport mode trunk
interface f0/10
switchport mode acces
switchport acces vlan 10
switchport voice vlan 40
interface f0/20
switchport mode acces
switchport acces vlan 20
switchport voice vlan 40
End
Write
Sur SA2
Interface range f0/1-2 , f0/23-24
switchport mode trunk
interface f0/10
switchport mode acces
switchport acces vlan 10
switchport voice vlan 40
interface f0/20
switchport mode acces
switchport acces vlan 20
switchport voice vlan 40
End
Write

 Configuration EtherChannel
sur SD1  :
Interface range f0/1-2
channel-protocol pagp
channel-group 1 mode desirable
Interface range f0/23-24
channel-group 4 mode on
End
Write

sur S-A1 :
Interface range f0/1-2
channel-protocol pagp
channel-group 1 mode desirable
Interface range f0/23-24
channel-group 3 mode on
sur SD2  :
Interface range f0/1-2
channel-protocol LACP
channel-group 2 mode active
Interface range f0/23-24
channel-group 3 mode on
End
Write
sur SA2 :
Interface range f0/1-2
channel-protocol LACP
channel-group 2 mode active
Interface range f0/23-24
Channel-group 4 mode on
End
Write
 Configuration de PVST :
Sur SD1  :
spanning-tree mode rapid-pvst
spanning-tree vlan 10,20 priority 4096
spanning-tree vlan 40,99 priority 8192
End
Write
Sur SD2  :
spanning-tree mode rapid-pvst
spanning-tree vlan 40,99 priority 4096
spanning-tree vlan 10,20 priority 8192
End
Write
Sur S-A1 :
spanning-tree mode rapid-pvst
End
Write
Sur SA2 :
spanning-tree mode rapid-pvst
End
Write

 Routage int-Vlan sur SD1 et SD2 :


sur SD1
interface Vlan10
ip address 192.168.0.1 255.255.255.128
no shutdown

interface Vlan20
ip address 192.168.0.129 255.255.255.192
no shutdown

interface Vlan40
ip address 192.168.0.193 255.255.255.224
no shutdown
interface Vlan99
ip address 192.168.0.225 255.255.255.224
no shutdown
exit
ip routing
End
Write
sur SD1  :
interface Vlan10
ip address 192.168.0.2 255.255.255.128
no shutdown

interface Vlan20
ip address 192.168.0.130 255.255.255.192
no shutdown
interface Vlan40
ip address 192.168.0.194 255.255.255.224
no shutdown
interface Vlan99
ip address 192.168.0.226 255.255.255.224
no shutdown
exit
ip routing
End
Write

SUR S-A1 :
interface vlan 99
ip add 192.168.0.228 255.255.255.224
no shutdown
exit
SUR SA2 :
interface vlan 99
ip add 192.168.0.229 255.255.255.224
no shutdown
exit
 Configurer les interfaces des routeurs avec les adresses IP indiquées sur le schéma
Sur R-Rabat  :
hostname R-Rabat 
interface s0/0/0
ip address 10.10.10.9 255.255.255.252
clock rate 128000
no shutdown
interface s0/0/1
ip address 10.10.10.13 255.255.255.252
no shutdown
interface g0/0
ip address 10.10.10.2 255.255.255.252
no shutdown
interface g0/1
ip address 10.10.10.6 255.255.255.252
no shutdown
End
Write
sur R-Oujda
hostname R-Oujda
interface s0/0/0
ip address 10.10.10.10 255.255.255.252
no shutdown
 configuration les sous-interfaces dans le routeur R-Oujda
interface g0/1
no shutdown
interface g0/1.30
encapsulation dot1Q 30
ip address 192.168.1.1 255.255.255.224
interface g0/1.50
encapsulation dot1Q 50
ip address 192.168.1.33 255.255.255.224
sur R-Tanger
hostname R-Tanger
interface s0/0/0
ip address 10.10.10.14 255.255.255.252
clock rate 128000
no shutdown
interface g0/1
ip address 192.168.1.65 255.255.255.192
no shutdown
configuration des ports routé sur SD1 et SD2
sur SD1  :
interface g0/1
no switchport
ip address 10.10.10.1 255.255.255.252
no shutdown
sur SD2  :
interface g0/1
no switchport
ip address 10.10.10.5 255.255.255.252
no shutdown

 Configurer les Vlans, les ports d’accès et les ports Trunk sur SW1
SUR SW1 :
Hostname SW1
Vlan 30
Name Commercial
Vlan 50
Name Production
Interface f0/1
Switchport mode trunk
Interface f0/2
Switchport mode acces
Switchport acces vlan 30

Interface f0/3
Switchport mode acces
Switchport acces vlan 50
 Le Routage statique
Sur SD1
Ip route 0.0.0.0 0.0.0.0 g0/1
Sur SD2
Ip route 0.0.0.0 0.0.0.0 g0/1

Sur R-Oujda
Ip route 0.0.0.0 0.0.0.0 s0/0/0
Sur R-Tanger
Ip route 0.0.0.0 0.0.0.0 s0/0/0
Sur R-Rabat
Ip route 192.168.1.0 255.255.255.0 s0/0/0
Ip route 192.168.1.64 255.255.255.192 s0/0/1
Ip route 0.0.0.0 0.0.0.0 g0/0
Ip route 0.0.0.0 0.0.0.0 g0/1
Ou
ip route 192.168.0.0 255.255.255.0 g0/0
ip route 192.168.0.0 255.255.255.0 g0/1

 configuration de protocole HSRP


pour groupe 10
Sur SD1
Interface vlan 10
Standby 10 ip 192.168.0.3
Standby 10 preempt
Standby 10 priority 110
Standby 10 track g0/1
Sur SD2
Interface vlan 10
Standby 10 ip 192.168.0.3
Standby 10 track g0/1
pour groupe 20
Sur SD1
Interface vlan 20
Standby 20 ip 192.168.0.131
Standby 20 preempt
Standby 20 priority 110
Standby 20 track g0/1

Sur SD2
Interface vlan 20
Standby 20 ip 192.168.0.131
Standby 20 track g0/1
pour groupe 40
Sur SD2
Interface vlan 40
Standby 40 ip 192.168.0.195
Standby 40 preempt
Standby 40 priority 110
Standby 40 track g0/1
Sur SD1
Interface vlan 40
Standby 40 ip 192.168.0.195
Standby 40 track g0/1
pour groupe 99
Sur SD2
Interface vlan 99
Standby 99 ip 192.168.0.227
Standby 99 preempt
Standby 99 priority 110
Standby 99 track g0/1
Sur SD1
Interface vlan 99
Standby 99 ip 192.168.0.227
Standby 99 track g0/1

Vous aimerez peut-être aussi