Table of Contents

Commandes Cisco

Ci-dessous une liste des commandes dans l'IOS de cisco

Commandes de visualisation


Modes de commandes


Configuration de base

Switch(config)# hostname switch1
  1. stocké en clair dans la configuration : show running-config
    Switch(config)# enable password <mot-de-passe>
  2. hash visible dans la configuration : secret5
    Switch(config)# enable secret <mot-de-passe>
Switch(config)#line con 0
Switch(config-line)#password cisco
Switch(config-line)#login
Switch(config)#service password-encryption
Switch(config)#line con 0
Switch(config-line)#logging synchronous
Switch(config)#interface vlan 1
Switch(config-if)#ip address 10.10.0.1 255.255.255.0
Switch(config-if)#no shutdown
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 10.10.0.254 255.255.255.0
Router(config-if)#no shutdown
Router(config)#interface loopback 0
Router(config-if)#ip address 2.2.2.2 255.255.255.255
Switch(config)#ip default-gateway 10.10.0.254
Switch(config)#no ip domain lookup

Gestion de la configuration

Switch#copy running-config startup-config

ou

Switch#wr
Switch#copy running-config tftp
Address or name of remote host []? 10.10.0.2
Destination filename [Switch-conf]?
Writing running-config....!!
[OK - 1120 bytes]
1120 bytes copied in 3.008 secs (372 bytes/sec)
Switch#copy tftp running-config
Address or name of remote host []? 10.10.0.2
Source filename []? Switch-conf
Destination filename [running-config]? running-config
Accessing tftp://10.10.0.2/Switch-conf...
Loading Switch-confg from 10.10.0.2: !
[OK - 1120 bytes]
1120 bytes copied in 0.006 secs (186666 bytes/sec)
Switch# delete flash:/vlan.dat
Switch# delete flash:/config.text
Switch# reload
System configuration has been modified. Save? [yes/no]:no
Proceed with reload? [confirm]