Académique Documents
Professionnel Documents
Culture Documents
Cisco IOS
82
Se connecter à l’équipement
83
1
5/30/2022
Le port CONSOLE
84
85
2
5/30/2022
Se connecter à l’équipement
Connexion logicielle
86
Le Logiciel
87
3
5/30/2022
Interface de connexion
88
DEUX modes
• Le mode USER :
• Le ‘prompt’ est « > »
• Seulement certaines commandes sont disponibles
• Le mode PRIVILEGIE :
• Le ‘prompt’ est « # »
• Toutes les commandes sont disponibles
89
4
5/30/2022
90
Passage reservé
91
5
5/30/2022
92
Activer le cryptage
TATA#conf t
TATA(config)#service password-encryption
93
6
5/30/2022
94
Contextes
•Router#
•Router(config)#
•Router(config-if)#
•Router(config-router)#
95
7
5/30/2022
Le contexte de gestion
96
Le contexte de gestion
97
8
5/30/2022
98
99
9
5/30/2022
100
• Et inversement :
• Une commande de gestion ne fonctionne pas dans le contexte de
configuration.
• On peut toutefois forcer la commande de consultation avec le prefix
‘do’.
101
10
5/30/2022
Router>hostname TOTO
^
% Invalid input detected at '^' marker.
Router>enable
Router#
Router#hostname TOTO
^
% Invalid input detected at '^' marker.
Router#configure terminal
Enter configuration commands,one per line.End with CNTL/Z.
Router(config)#hostname TOTO
TOTO(config)#
102
TOTO#conf t
Enter configuration commands, one per line. End with CNTL/Z.
TOTO(config)#show ip interface brief
^
% Invalid input detected at '^' marker.
TOTO(config)#do show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
103
11
5/30/2022
104
Router#
Router#configure terminal
Router(config)#
Router(config)#interface FastEthernet 0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit end ou Ctrl-Z
Router#
105
12
5/30/2022
Exemples
TOTO#
TOTO#configure terminal
TOTO(config)#
TOTO(config)#interface fastEthernet 0/0
TOTO(config-if)#no shutdown
TOTO(config-if)#ip address 10.0.0.1 255.255.255.0
TOTO(config-if)#exit
TOTO(config)#
TOTO(config)#line console 0
TOTO(config-line)#password Z3Y6
TOTO(config-line)#exit
TOTO(config)#
TOTO(config)#router ospf 1
TOTO(config-router)#area 0 authentication
TOTO(config-router)#exit
TOTO(config)#
TOTO(config)#exit
TOTO#
106
Contexte de gestion
TOTO#
TOTO#configure terminal
TOTO(config)#
TOTO(config)#interface fastEthernet 0/0
TOTO(config-if)#no shutdown
TOTO(config-if)#ip address 10.0.0.1 255.255.255.0
TOTO(config-if)#exit
TOTO(config)#
TOTO(config)#line console 0
TOTO(config-line)#password Z3Y6
TOTO(config-line)#exit
TOTO(config)#
TOTO(config)#router ospf 1
TOTO(config-router)#area 0 authentication
TOTO(config-router)#exit
TOTO(config)#
TOTO(config)#exit
TOTO#
107
13
5/30/2022
TOTO#
TOTO#configure terminal
TOTO(config)#
TOTO(config)#interface fastEthernet 0/0
TOTO(config-if)#no shutdown
TOTO(config-if)#ip address 10.0.0.1 255.255.255.0
TOTO(config-if)#exit
TOTO(config)#
TOTO(config)#line console 0
TOTO(config-line)#password Z3Y6
TOTO(config-line)#exit
TOTO(config)#
TOTO(config)#router ospf 1
TOTO(config-router)#area 0 authentication
TOTO(config-router)#exit
TOTO(config)#
TOTO(config)#exit
TOTO#
108
109
14
5/30/2022
110
111
15
5/30/2022
112
TOTO>
TOTO>enable
TOTO#
TOTO#configure terminal
TOTO(config)#
TOTO(config)#interface fastEthernet 0/0
TOTO(config-if)#no shutdown
TOTO(config-if)#^Z
TOTO#
113
16
5/30/2022
Les sauvegardes
114
DEUX configurations
115
17
5/30/2022
Sauvegarde
116
Modification de la running-config
117
18
5/30/2022
Au démarrage
118
Le dialogue de configuration
119
19
5/30/2022
120
‘?’
• Exemples :
• TOTO(config)#h?
• help hostname http
• Dans le contexte de configuration globale, il existe trois
commandes qui commencent par ‘h’.
• TOTO(config)#ho?
• hostname
• Dans le contexte de configuration globale, il n’existe
qu’une seule commande qui commence par ‘ho’.
121
20
5/30/2022
--More--
• Trois possibilités :
• appuyer sur ‘Entrée’ afficher 1 ligne
supplémentaire
• appuyer sur ‘Barre d’espace’ afficher 1 page
supplémentaire
• appuyer sur toute autre touche arrêter l’affichage
122
123
21
5/30/2022
Auto-complétion
• Exemple :
• configure terminal
Cette commande peut être simplement saisie avec :
• conf t
car il n’existe pas d’autre commande qui commence avec ces
mêmes lettres.
124
Trois possibilités
125
22
5/30/2022
Exemple 1
TOTO#configure terminal
TOTO(config)#^Z
TOTO#conf t
TOTO(config)#^Z [tabulation]
TOTO#conf
[tabulation]
TOTO#configure t
TOTO#configure terminal
126
Exemple 2
TOTO#show ip in
TOTO#show ip interface br
127
23
5/30/2022
Positionner le curseur
128
• 1ère méthode :
• utiliser les flèches de déplacement
• 2ème méthode :
• utiliser les touches de déplacement rapide
129
24
5/30/2022
[Ctrl] + ‘a’
130
[Ctrl] + ‘e’
131
25
5/30/2022
[Ctrl] + ‘x’
132
[Ctrl] + ‘w’
133
26
5/30/2022
Rappeler de commandes
134
135
27
5/30/2022
Configurations de base
Configurations globales
136
Hostname
• Par défaut :
• ‘Router’ sur un routeur
• ‘Switch’ sur un switch
137
28
5/30/2022
• Exemple :
• une interface vient de tomber
• un protocole de routage vient de découvrir un voisin
138
Exemple d’interférence
139
29
5/30/2022
• TATA#conf t
• TATA(config)#line console 0
• TATA(config-line)#logging synchronous
140
sans interférence
141
30
5/30/2022
Configurations de base
142
• Enable
conf t
interface [TYPE] [NUMERO]
• Ethernet
• FastEthernet
• GigabitEthernet
• Serial
• Loopback
• Tunnel
• etc …
• Exemples :
• interface Ethernet 0
• interface Fasthethernet 1
• interface Serial 0
143
31
5/30/2022
Slots
slot 4
slot 3
slot 2
slot 1
slot 0
144
145
32
5/30/2022
• Par défaut :
• sur un switch : toutes les interfaces sont déjà actives
• sur un routeur : toutes les interfaces sont inactives
146
147
33
5/30/2022
148
le statut de le statut de
l’interface la ligne
STATUS PROTOCOL
Port opérationnel : Up Up
Problème couche 2 ISO : Up Down
Problème couche 1 (serial) ISO : Down Down
Port désactivé : Administratively Down Down
149
34
5/30/2022
150
Sécurité
151
35
5/30/2022
• conf t
• line console 0
• no login ne pas exiger de MDP
• login exiger le MDP de la ligne
• login local exiger le MDP de la BDD locale
152
• conf t
• line vty 0 4
• no login ne pas exiger de MDP
• login exiger le MDP de la ligne
• login local exiger le MDP de la BDD locale
153
36
5/30/2022
SSH
154
Configurer SSH
• conf t
• hostname R1
• ip domain-name EL.COM
• line vty 0 4
• login local
• transport input ssh
155
37
5/30/2022
156
Test
• Réponse : C
157
38