Académique Documents
Professionnel Documents
Culture Documents
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
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
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
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