Voir les informations de switch Cisco (modèle, version etc…) :
1
sh version
Voir les VLAN(s) :
1
sh vlan id <NUMERO_DU_VLAN>
Création d’un VLAN :
1
2
3
4
5
conf t
vlan <INDIQUE_UN_NUMERO_DE_VLAN>
name <NOM_DE_VLAN>
no shut
exit
Supprimer un VLAN :
1
2
3
4
conf t
vlan <NUMERO_DU_VLAN>
no vlan <NUMERO_DU_VLAN>
exit
Création d’une interface pour un VLAN :
1
2
3
4
5
6
conf t
interface vlan <NUMERO_DU_VLAN>
description <UNE_DESCRIPTION>
ip address <IP/CIDR>
no shutdown
exit
Supprimer une interface d’un VLAN :
1
2
3
conf t
no interface vlan <NUMERO_DU_VLAN>
exit
Supprimer un VLAN avec son interface :
1
2
3
4
5
conf t
vlan <NUMERO_DU_VLAN>
no interface vlan <NUMERO_DU_VLAN>
no vlan <NUMERO_DU_VLAN>
exit
Assignation d’un VLAN à un port physique :
1
2
3
4
5
conf t
interface <PORT_PHYSIQUE_EXEMPLE_e1/18>
switchport access vlan <NUMERO_DU_VLAN>
no shutdown
exit
Retirer un VLAN d’un port physique :
1
2
3
4
5
conf t
interface <PORT_PHYSIQUE_EXEMPLE_e1/18>
no switchport access vlan <NUMERO_DU_VLAN>
no shutdown
exit
Voir les détails d’un port physique :
1
sh int <PORT_PHYSIQUE_EXEMPLE_e1/2>
Voir l’IP d’une interface VLAN :
1
sh ip interface vlan <NUMERO_DU_VLAN>
Voir l’historique des commandes de la session :
1
sh cli history
Voir le statut des licences :
1
sh license usage
Voir les services associés par licences :
1
sh license usage <NOM_DE_LA_LICENCE_EXEMPLE_LAN_BASE_SERVICES_PKG>
Voir la liste des ACL (contrôle d’accès) :
1
sh access-lists
Supprimer une ACL :
1
no ip access-list <NOM_DE_VOTRE_ACL>
Voir la liste des routages par les ACL :
1
sh route-map
Voir les services :
1
sh feature
Voir les services activé :
1
sh feature | grep enabled
Désactivé un service :
1
2
conf t
no feature <NOM_DU_SERVICE>
Activer un service :
1
2
conf t
feature <NOM_DU_SERVICE>
Sauvegarder la configuration du switch :
1
copy running-config startup-config ou cop run sta
Redémarrer le switch :
1
reload
Forcer un port Ethernet en 1Gb/s Full duplex :
1
2
3
4
5
conf t
interface <PORT_PHYSIQUE_EXEMPLE_e1/18>
duplex full
speed 1000exit
Mise à niveau firmware
Mise à niveau du firmware (vérification) :
1
show install all impact kickstart bootflash:///n6000-uk9-kickstart.7.X.X.N1.1.bin system bootflash:///n6000-uk9.7.X.X.N1.1.bin
Mise à niveau du firmware (installation) :
1
install all kickstart bootflash:///n6000-uk9-kickstart.7.X.X.N1.1.bin system bootflash:///n6000-uk9.7.X.X.N1.1.bin
Installation licence (pensez à uploader votre licence via SFTP à la racine du switch) :
1
2
conf t
install license bootflash:///MDS2028XXXXXXXXXXXX.lic
Faire un reset d’usine (après le reboot, attaque par console pour la configuration initial) :
1
2
write erase
reload
Les fichiers dans l’espace de stockage du switch ne sont pas effacés (fichier licence, log, firmware etc..) et vous revenez au dernier firmware installé.