Untitled 3
Voici les configurations détaillées pour chaque switch de votre topologie VoIP, adaptées aux
équipements présents (2960-24TT) et aux besoins spécifiques de votre réseau :
1. Switch3 (Switch de Distribution - Serveur VTP)
enable
configure terminal
! Configuration de base
hostname DIST-SW
enable secret Cisco@ENSA
! Configuration VTP (Serveur)
vtp mode server
vtp domain ENSA
vtp password VoIP@2025
! Création des VLANs
vlan 10
name VoIP
vlan 20
name Data
vlan 99
name Management
vlan 100
name Native
! Configuration des ports Trunk
interface GigabitEthernet0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,99,100
switchport trunk native vlan 100
spanning-tree portfast trunk
no shutdown
! VLAN Management
interface Vlan99
ip address 192.168.99.253 255.255.255.0
no shutdown
ip default-gateway 192.168.99.254
! Ports vers routeur (Router-on-a-stick)
interface GigabitEthernet0/1
switchport mode trunk
switchport trunk allowed vlan 10,20,99
switchport trunk native vlan 100
no shutdown
end
copy running-config startup-config
2. Switch2 (Switch d'Accès - Client VTP)
enable
configure terminal
hostname ACC-SW2
enable secret Cisco@ENSA
! Configuration VTP Client
vtp mode client
vtp domain ENSA
vtp password VoIP@2025
! Ports Trunk vers switch distribution
interface GigabitEthernet0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,99,100
switchport trunk native vlan 100
no shutdown
! Configuration ports téléphones IP
interface range FastEthernet0/1-12
switchport mode access
switchport access vlan 20
switchport voice vlan 10
spanning-tree portfast
no shutdown
! Ports PC
interface range FastEthernet0/13-20
switchport mode access
switchport access vlan 20
spanning-tree portfast
no shutdown
end
copy running-config startup-config
3. Switch1 (Switch d'Accès - Client VTP)
enable
configure terminal
hostname ACC-SW1
enable secret Cisco@ENSA
vtp mode client
vtp domain ENSA
vtp password VoIP@2025
interface GigabitEthernet0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,99,100
switchport trunk native vlan 100
no shutdown
! Ports pour téléphones IP + PC
interface range FastEthernet0/1-8
switchport mode access
switchport access vlan 20
switchport voice vlan 10
spanning-tree portfast
no shutdown
! Port spécial pour imprimante
interface FastEthernet0/9
switchport mode access
switchport access vlan 30
no shutdown
end
copy running-config startup-config
4. Switch0 (Switch Serveurs)
enable
configure terminal
hostname SERVER-SW
enable secret Cisco@ENSA
! Mode Transparent pour ne pas affecter la base VTP
vtp mode transparent
! VLAN spécial serveurs
vlan 30
name Servers
! Port Trunk principal
interface GigabitEthernet0/24
switchport mode trunk
switchport trunk allowed vlan 30,99
no shutdown
! Ports serveurs
interface range FastEthernet0/1-4
switchport mode access
switchport access vlan 30
no shutdown
! Port management
interface FastEthernet0/5
switchport mode access
switchport access vlan 99
no shutdown
end
copy running-config startup-config
Vérifications communes
Pour tous les switches, exécutez ces commandes de vérification :
show vtp status # Vérifier le mode et la synchronisation
show vlan brief # Lister les VLANs configurés
show interfaces trunk # Vérifier les liaisons trunk
show running-config # Afficher la configuration complète
Conseils d'implémentation
1. Ordre de configuration :
Configurez d'abord le serveur VTP (DIST-SW)
Puis les clients (ACC-SW1, ACC-SW2)
Enfin le switch transparent (SERVER-SW)
2. Tests de connectivité :
ping 192.168.99.253 # Test vers l'interface de management
ping 192.168.10.1 # Test vers le VLAN VoIP
3. Sécurité :
interface range FastEthernet0/21-24
shutdown # Désactiver les ports inutilisés
Cette configuration assure :
Une gestion centralisée des VLANs via VTP
Une segmentation claire VoIP/Data/Management
La connectivité avec le routeur pour le routage inter-VLAN
Une base solide pour les communications VoIP