ccna:commandes_cisco
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ccna:commandes_cisco [2025/05/01 22:00] – [Gestion de la configuration] alberto | ccna:commandes_cisco [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Commandes Cisco ====== | ||
- | |||
- | Ci-dessous une liste des commandes dans l'IOS de cisco | ||
- | |||
- | ===== Commandes de visualisation ===== | ||
- | |||
- | * **show version :** afficher la version matériel et logiciel IOS. | ||
- | * **show flash :** affiche le contenu de la mémoire flash. | ||
- | * **show runnning-config :** affiche la configuration chargée en RAM (celle en cours d' | ||
- | * **show startup-config :** affiche la configuration stocké en mémoire flash (NVRAM : Non Volatile…). | ||
- | * **show interfaces status :** affiche le statut des interfaces. | ||
- | * **show interface fastEthernet 0/X (S0/0/X, Gig 0/0/..) :** affiche des informations sur l' | ||
- | * **show ip(v6) interfaces (brief) :** affiche les interfaces avec un contenu éventuellement bref. | ||
- | * **show interfaces trunk :** affiche les interfaces de type trunk et les VLAN transitant sur celles-ci. | ||
- | * **show vlan (brief) :** affiche les vlan configurés. | ||
- | * **show arp :** affiche la table ARP. | ||
- | * **show cdp neighbors :** affiche les périphériques réseaux voisins (Cisco Discovery Protocol). | ||
- | * **show access-list :** affiche les règles access list configurées. | ||
- | * **show vtp :** affiche les informations concernant Vlan Trunking Protocol. | ||
- | * **show spanning-tree (interface fa0/x vlan x) :** affiche les informations à propos du protocole spanning tree. | ||
- | * **show tech-support :** Affiche toutes les configurations présentes sur un matériel Cisco. | ||
- | |||
- | |||
- | ===== Modes de commandes ===== | ||
- | |||
- | * **Switch> | ||
- | * **Switch> | ||
- | * **Switch# :** mode privilégié. | ||
- | * **Switch# configure terminal** ou **Switch# conf t :** passage en mode configuration. | ||
- | * **Switch(config)# | ||
- | |||
- | ===== Configuration de base ===== | ||
- | |||
- | * **Attribuer un nom d' | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | </ | ||
- | |||
- | * **Spécifier un mot de passe pour entrer en mode privilégié (en) :** | ||
- | |||
- | - stocké en clair dans la configuration : show running-config < | ||
- | - hash visible dans la configuration : secret5 < | ||
- | |||
- | * **Mettre en place une authentification à la connexion** | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | Switch(config-line)# | ||
- | Switch(config-line)# | ||
- | </ | ||
- | |||
- | * **Masquer les mots de passe de connexion dans la configuration :** | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | </ | ||
- | |||
- | * **Eviter la perturbation de la CLI à l’arrivé des logs :** | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | Switch(config-line)# | ||
- | </ | ||
- | |||
- | * **Attribuer une adresse IPv4 à un VLAN :** | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | Switch(config-if)# | ||
- | Switch(config-if)# | ||
- | </ | ||
- | |||
- | * **Attribuer une addresse IPv4 à une interface :** | ||
- | |||
- | < | ||
- | Router(config)# | ||
- | Router(config-if)# | ||
- | Router(config-if)# | ||
- | </ | ||
- | |||
- | * **Attribuer une adresse de loopback (si routeur ou commutateur de niveau 3) :** | ||
- | |||
- | < | ||
- | Router(config)# | ||
- | Router(config-if)# | ||
- | </ | ||
- | |||
- | * **Spécifier une passerelle par défaut :** | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | </ | ||
- | |||
- | * **Supprimer la résolution de noms DNS en cas de commandes incorrectes :** | ||
- | |||
- | < | ||
- | Switch(config)# | ||
- | </ | ||
- | |||
- | ===== Gestion de la configuration ===== | ||
- | |||
- | * **Sauvegarder la configuration dans la mémoire flash (running config → startup config) :** | ||
- | |||
- | < | ||
- | Switch#copy running-config startup-config | ||
- | </ | ||
- | ou | ||
- | < | ||
- | Switch#wr | ||
- | </ | ||
- | |||
- | * **Exporter la configuration vers un fichier texte par tftp (running / startup config)** | ||
- | |||
- | < | ||
- | 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) | ||
- | </ | ||
- | |||
- | * **Importer la configuration depuis un fichier texte par tftp vers run ou startup config :** | ||
- | |||
- | < | ||
- | Switch#copy tftp running-config | ||
- | Address or name of remote host []? 10.10.0.2 | ||
- | Source filename []? Switch-conf | ||
- | Destination filename [running-config]? | ||
- | Accessing tftp:// | ||
- | Loading Switch-confg from 10.10.0.2: ! | ||
- | [OK - 1120 bytes] | ||
- | 1120 bytes copied in 0.006 secs (186666 bytes/sec) | ||
- | </ | ||
- | |||
- | |||
- | * **Réinitialisation :** | ||
- | |||
- | < | ||
- | Switch# delete flash:/ | ||
- | Switch# delete flash:/ | ||
- | Switch# reload | ||
- | System configuration has been modified. Save? [yes/no]:no | ||
- | Proceed with reload? [confirm] | ||
- | </ | ||
ccna/commandes_cisco.1746129630.txt.gz · Last modified: 2025/05/01 22:00 by alberto