! 1) Créer et nommer les VLANs conf t vlan 10 name ADMIN vlan 20 name ETUDIANT vlan 30 name PROFS exit

! 2) Ports access ! Ports 1–6 -> VLAN 10 interface range Fa0/1 - 6 switchport mode access switchport access vlan 10 exit

! Ports 7–12 -> VLAN 20 interface range Fa0/7 - 12 switchport mode access switchport access vlan 20 exit

! Ports 13–18 -> VLAN 30 interface range Fa0/13 - 18 switchport mode access switchport access vlan 30 exit

! 3) Ports 19, 20 et 24 -> VLAN par défaut (VLAN 1) interface range Fa0/19 , Fa0/20 , Fa0/24 switchport mode access switchport access vlan 1 exit

! 4) Trunks inter-switch (ports 21 à 23) interface range Fa0/21 - 23 switchport mode trunk switchport trunk allowed vlan 10,20,30 ! on ne transporte que ces VLANs

exit

! (optionnel – éviter les surprises VTP) vtp mode transparent end wr