Password : cisco class
Nommez le périphérique pour le distinguer des autres routeurs et configurez les mots de passe, comme indiqué dans l'exemple. Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname R1 R1(config)# enable secret class R1(config)# line console 0 R1(config-line)# password cisco R1(config-line)# login R1(config-line)# exit R1(config)# line vty 0 4 R1(config-line)# password cisco R1(config-line)# login R1(config-line)# exit R1(config)# service password-encryption R1(config)# Configurez une bannière pour fournir une notification légale d'accès non autorisé, comme le montre l'exemple. R1(config)# banner motd #Authorized Access Only!# R1(config)# Enregistrez les modifications sur un routeur, comme indiqué dans l'exemple. R1# copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]
Compatibilité des Routeurs :
Disponibilité des Interfaces :
Exemple de Configuration sur un Routeur (R1) :
Ces étapes garantissent que les interfaces des routeurs sont correctement configurées et prêtes à fonctionner dans un environnement réseau.
L'exemple suivant montre la configuration des interfaces sur R1. R1(config)# interface gigabitethernet 0/0/0 R1(config-if)# ip address 192.168.10.1 255.255.255.0 R1(config-if)# ipv6 address 2001:db8:acad:1::1/64 R1(config-if)# description Link to LAN 1 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface gigabitethernet 0/0/1 R1(config-if)# ip address 192.168.11.1 255.255.255.0 R1(config-if)# ipv6 address 2001:db8:acad:2::1/64 R1(config-if)# description Link to LAN 2 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface serial 0/0/0 R1(config-if)# ip address 209.165.200.225 255.255.255.252 R1(config-if)# ipv6 address 2001:db8:acad:3::225/64 R1(config-if)# description Link to R2 R1(config-if)# no shutdown R1(config-if)# exit R1(config)#
Définition et Utilité de l'Interface de Bouclage :
Procédure d'Activation et de Configuration :
Exemple Pratique
Cette configuration est simple mais puissante pour tester et simuler des scénarios dans des environnements de production ou de formation.
R1(config)# interface loopback 0 R1(config-if)# ip address 10.0.0.1 255.255.255.0 R1(config-if)# exit R1(config)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up