Procédure de ré-initialisation d'un routeur Cisco en mode Rommon
- Détails
- Catégorie : Cisco
- Publié le mercredi 18 décembre 2013 16:01
- Écrit par Brahim AIT BENALI
- Affichages : 6951
Procédure de ré-initialisation d'un routeur Cisco en mode Rommon
Cet article, a pour objectif de préciser les étapes et contrôles à effectuer lors d'une restauration d’un routeur d'accès 7604 à partir du mode Rommon.
On peut distinguer deux cas de figure:
I - Cas A :
Le routeur possède une image de boot valide sur la mémoire bootdisk, nous pouvons démarrer le routeur pour télécharger une image via tftp, en procédant comme suit :
1. Changer la valeur du registre de démarrage via la commande :
rommon 1 > confreg 0x2101 |
Ou la commande :
rommon 1 > o/r 0x2101 |
2. Réinitialiser ou redémarrer le routeur pour que la nouvelle configuration prenne effet :
rommon 2 > reset |
Ou :
rommon 2 > i |
Le routeur démarre sur son image boot, et vous devez avoir quelque chose qui ressemble à cet imprime écran :
System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Copyright (c) 1997 by cisco Systems, Inc. C1600 processor with 18432 Kbytes of main memory program load complete, entry point: 0x4018060, size: 0x1e1568 Restricted Rights Legend . . !--- Output omitted. . . Router(boot)>
|
À ce stade vous devrez avoir le prompt
Router (boot)> |
3. Connecter l’interface gigabitEthernet 1/2 au réseau sur lequel se trouve le serveur TFTP.
4. Configurer l’interface gigabitEthernet 1/2, comme suit :
Routeur (boot)>enable Routeur (boot)>configure terminal Routeur (boot) (config)> interface gigabitEthernet 1/2 Routeur (boot) (config-if)> media-type rj45 Routeur (boot) (config-if)>ip address 10.0.0.1 255.255.255.0 Routeur (boot) (config-if)>no shutdown Routeur (boot) (config-if)> end
|
5. Les routeurs démarrant sur la ‘’boot image’’ n’ont pas la fonctionnalité de routage :
- Alors il faut configurer la router par défaut. Elle devrait pointer sur l’adresse IP du routeur connecté au même sous-réseau que l’interface gigabitEthernet 1/2 :
Router (boot) (config)#ip default-gateway 10.0.0.254 255.255.255.0 |
- Si le serveur TFTP se trouve dans le même sous-réseau que le routeur, alors vous pouvez passer à l’étape 6.
6. Avant de copier l’image à partir du serveur TFTP, vérifier la connectivité entre le ce dernier et le routeur :
Router( boot)#ping 10.0.2.10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echoes to 10.0.2.10, timeout is 2 seconds: !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms Router (boot)#
|
7. Copier l’image ISO à partir du serveur TFTP :
Router # copy tftp://10.0.2.10/c7600rsp72043-advipservicesk9-mz.151-3.S2.bin sup-bootdisk: Destination filename [c7600rsp72043-advipservicesk9-mz.151-3.S2.bin]? Copy in progress... ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! 166914596 bytes copied in 174.228 secs (958024 bytes/sec) |
8. Changer la configuration du registre à 2102 pour que le routeur démarre sur la nouvelle image :
Router (boot)#configure terminal Router (boot)(config)#config-register 0x2102 Router (boot)(config)#exit |
9. Redémarrer le routeur et ne pas enregistrer
Router (boot)#reload System configuration has been modified. Save? [yes/no]: no
Building configuration...
[OK] Proceed with reload? [confirm]
!--- Press 'Enter'
%SYS-5-RELOAD: Reload requested
System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Copyright (c) 1997 by cisco Systems, Inc. C1600 processor with 18432 Kbytes of main memory program load complete, entry point: 0x4018060, size: 0x1e1568
!--- Output omitted.
Router>
|
10. Vérifier si l’image a bien été chargée sur le routeur.
Router #show version Cisco IOS Software, c7600rsp72043_rp Software (c7600rsp72043_rp-ADVIPSERVICESK9-M), Version 15.1(3)S2, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2011 by Cisco Systems, Inc. Compiled Mon 12-Dec-11 04:06 by prod_rel_team
ROM: System Bootstrap, Version 12.2(33r)SRD5, RELEASE SOFTWARE (fc1) BOOTLDR: Cisco IOS Software, c7600rsp72043_rp Software (c7600rsp72043_rp-ADVIPSERVICESK9-M), Version 15.1(3)S2, RELEASE SOFTWARE (fc1)
CLM-1541 uptime is 10 weeks, 3 days, 23 hours, 38 minutes Uptime for this control processor is 10 weeks, 3 days, 23 hours, 5 minutes System returned to ROM by power cycle (SP by power on) System restarted at 12:10:12 CDT Sat Oct 5 2013 System image file is "sup-bootdisk:c7600rsp72043-advipservicesk9-mz.151-3.S2.bin" Last reload type: Normal Reload Last reload reason: power-on
This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser..
Cisco CISCO7604 (M8500) processor (revision 2.0) with 917504K/65536K bytes of memory. Processor board ID FOX1419GNJT BASEBOARD: RSP720 CPU: MPC8548_E, Version: 2.1, (0x80390021) CORE: E500, Version: 2.2, (0x80210022) CPU:1200MHz, CCB:400MHz, DDR:200MHz, L1: D-cache 32 kB enabled I-cache 32 kB enabled
Last reset from power-on 3 Virtual Ethernet interfaces 26 Gigabit Ethernet interfaces 8 Ten Gigabit Ethernet interfaces 3964K bytes of non-volatile configuration memory.
507024K bytes of Internal ATA PCMCIA card (Sector size 512 bytes). Configuration register is 0x2102
CLM-1541# |
2- Cas B :
Le routeur ne possède pas d’image valide dans sa mémoire bootdisk. Pour vérifier cela, procéder comme suit :
1. Changer la valeur du registre de démarrage via la commande :
rommon 1 > confreg 0x2101 |
Ou la commande :
rommon 1 > o/r 0x2101 |
2. Réinitialiser ou redémarrer le routeur pour que la nouvelle configuration prenne effet :
rommon 2 > reset |
Ou :
rommon 2 > i |
Le routeur démarre sur son image boot, si après redémarrage le routeur est toujours en mode rommon cela signifie que l’image de boot est corrompue ou inexistante.
Le prompt affiche la ligne suivante:
rommon 1 > |
Dans ce cas, il faut prendre la carte RSP, la mettre sur un autre routeur, puis copier l’image présente sur la RSP de ce routeur.
(Cette partie reste à tester, pour que l’on puisse faire une procédure plus détaillée)