Вы находитесь на странице: 1из 3

Commandes switch CISCO

Selectionner plusieurs interfaces : conf term


Interface range fa0/1 15
Interface range fa0/1,15
Information sur le switch : show running-config
show version
Information sur les interfaces : show mac address-table
show interface
Initialiation du switch : delete vlan!dat
cop" nvram:startup-sauv nvram:startup-config
#oir l$adresse I% et &'( de cha)ue port : show arp
'ctiver *elnet : conf t
line vt" 0 15
password valeur%assword
login
(hanger l$I% telnet : conf term
interface #+', numero#lan'dministration
ip address adressI% mas-'ddressI%
(hanger dur.e de bail de table arp : conf term
mac-address-table aging-time dur.e/nSeconde
0orcer la vitesse d $un port : conf term
Interface fa0/1
speed vitesse2ande%assante
Interdire une adresse &'( : conf term
mac-address-table static adress&'( vlan 1 drop
S.curit. du port : conf term
Interface nomInterface
switchport mode access
//'ctivation de la s.curit. des ports switchport port-securit"
//+imite les transmissions 3 un poste switchport port-securit" ma4imum 1
//'ffectation par apprentissage switchport port-securit" mac-address stic-"
//'ffectation stati)ue switchport port-securit" mac-address 0001!15/6!(165
//'rr7t de transmission switchport port-securit" violation restrict
//'rr7t du port switchport port-securit" violation shutdown
Sauvegarde de la config : cop" startup-config tftp:nomSauvegarde(onfig
Sauvegarde du s"stem : cop" flash:nomS"stem tftp:nomSauvegardeS"stem
(r.ation du #+', : Switch8 vlan database
Switch9vlan:8 vlan num.ro-de-vlan name nom-de-vlan
Switch9vlan:8 e4it
'ssocier un #+', 3 une interface: Switch9config:8 interface fastethernet 0/;
Switch9config-if:8 switchport mode access
Switch9config-if:8 switchport access vlan num.ro-de-vlan
Rsumer Commande CISCO Page 1
<.clarer une interface en mode trun- pour seulement les #+', 10 et =0 :
Switch9config:8 interface fastethernet 0/1
Switch9config-if:8 switchport mode trun-
Switchport trun- allowed vlan 10,=0
9Switch9config-if:8 switchport trun- encap dot1):
>emar)ue: +a derni?re commande n@e4iste pas sur les commutateurs 1;50 car seule l@encapsulation
601!1) est support.e!
#oir les informations sur les #+',s : show vlan
show vlan brief
show vlan id num.ro-de-vlan
'ctiver du S%', sur l$interface :
conf term
monitor session sessionAnumber source interface interface-id B, C -D Bboth C r4 C t4D
<.sactiver le spanning tree sur un vlan : conf term
no spanning vlan numero#+',
<.finit le switch comme pont racine 9principal ou secondaire: :
conf term
spanning-tree vlan idAdeAvlan root primar"Csecondar"
<.finit la priorit. du switch 9par d.faut : =1E56FI< du #lan: : conf term
spanning-tree vlan idAdeAvlan priorit" value
&odification de la priorit. des ports 9par d.faut 116!numero%ort: : conf term
interface fa0/1
spanning-tree port-priorit" valeur
&odification du cout des ports : spanning-tree cost 15
Suppression de l$interface du processus de convergence S*% : interface fa0/1
spanning-tree portfast
#oir le r.sultat .lection spanning-tree : show spanning-tree
<.finir un mot de passe enable : enable secret mot<e%asse
<.finir un domaine #*% : vtp domain nom<omaine#*%
<.finir le mode #*% : vtp mode server/client
<.finir la version #*% : vtp version 1
<.finir un password #*% : vtp password nom%assword
#.rification du num.ro de r.vision de configuration #*% : show vtp status
'fficher des statisti)ues sur les annonces envo".es et reGues sur le commutateur : show vtp counters
/lagage #*% 9activer sur un seul commutateur serveur #*% du domaine: : vtp pruning
(onfiguration d $un port en mode <*% : interface nomInterface
switchport mode d"namic autoCdesirable
<.sactivation du mode <*% : switchport nonegociate
'ctivation de ssh : ip domain-name mondomaine!fr
//(r.e une paire de cl.s rsa cr"pto -e" generate rsa
ip ssh version 1C1
line vt" 0 15
//Interdit les conne4ions telnet transport input sshCtelnetCall
//%ermet de supprimer les cl.s rsa cr"pto -e" eroie rsa
Rsumer Commande CISCO Page 2
(r.ation d $un /therchannel %'H% : interface range nomInterface
switchport mode access/trun-
//(as d$un mode access 9switchport access vlan numero#+',:
//(as du mode trun- 9switchport trun- allowed vlan numero#+',:
channel-group numero/therchannel mode auto/desirable/on
//<ans le cas d$un switch en face auto/desirable I non-silent
//<ans le cas d$un serveur ou autre en face, on I silent
(r.ation d $un /therchannel +'(% 9I///: : interface range nomInterface
switchport mode access/trun-
//(as d$un mode access 9switchport access vlan numero#+',:
//(as du mode trun- 9switchport trun- allowed vlan numero#+',:
channel-group numero/therchannel mode active/passive/on
(onfiguration de l$etherchannel : interface port-channel numero/therchannel
switchport mode access/trun-
//(as d$un mode access 9switchport access vlan numero#+',:
//(as du mode trun- 9switchport trun- allowed vlan numero#+',:
(onfiguration de la r.partition de charge : port-channel load-balance dst-ip/dst-mac/src-dst-ip/src-dst-mac/
src-ip/src-mac
/ffacer table mac d $un switch: clear mac-address-table
Rsumer Commande CISCO Page 3

Вам также может понравиться