---Configuration de base---
enable
conf t
hostame Switch2
!
enable secret Ifs
username admin privilege 15 secret KLNB2o
!
no ip http server
no ip http secure-server
no service telnet
ip domain name La_fibre_en_folie
crypto key generate rsa module 2048
ip ssh version2
end
conf t
spanning-tree mode rapid-pvst


---Configuration des VLANs---
conf t
vlan 200
name Services_logiciels
end
conf t
vlan 210
name Comptabilité
end
conf t
vlan 220
name Administratif
end
conf t
vlan 230
name Vente
end
conf t
vlan 240
name Supervision
end
conf t
vlan 250
name Administration
end
conf t
vlan 696
name Natif
end


---Attribution des ports aux VLANs---
conf t
interface range FastEthernet0/3-7
description Ports_Vente_VLAN_230
switchport mode access
Switchport access vlan 230
end
conf t
interface range FastEthernet0/8-12
description Ports_Supervision_VLAN_240
switchport mode access
Switchport access vlan 240
end
conf t
interface range FastEthernet0/13-17
desciption Ports_Administration_VLAN_250
switchport mode access
Switchport access vlan 250
end
conf t
interface range FastEthernet0/18-24
description Ports_Securite_VLAN_696
switchport mode access
Switchport access vlan 696
end


---Ports restants en mode trunk---
conf t
interface range FastEthernet0/1-2
switchport mode trunk
end
conf t
interface range GigabitEthernet0/1-2
switchport mode trunk
end


---Liens agrégés---
enable
conf t
interface range FastEthernet0/1-2
channel-protocol lacp
channel-group 2 mode active
end
enable
conf t
interface range GigabitEthernet0/1-2
channel-protocol lacp
channel-group 1 mode active
end


---Garder en mémoire---
write memory


















































conf t
interface range FastEthernet0/1-3
switchport mode access 
switchport access vlan 200
end
conf t
interface range FastEthernet0/4-6
switchport mode access 
switchport access vlan 210
end
conf t
interface range FastEthernet0/7-9
switchport mode access 
switchport access vlan 220
end

conf t
vlan 200
name Services_logiciels
end
conf t
vlan 210
name Comptabilité
end
conf t
vlan 220
name Administratif
end

Show run et swhow vlan pour vérifier

conf t
vlan 210
name Comptabilité
ip adress 192.168.3.253 255.255.255.0
end



