Introduzione
Questo documento descrive come aggiornare un router dal prompt ROM monitor (ROMmon) con la funzionalità TFTP dell'immagine di avvio.
Prerequisiti
Requisiti
Nessun requisito specifico previsto per questo documento.
Componenti usati
Il documento può essere consultato per tutte le versioni software o hardware.
Le informazioni discusse in questo documento fanno riferimento a dispositivi usati in uno specifico ambiente di emulazione. Su tutti i dispositivi menzionati nel documento la configurazione è stata ripristinata ai valori predefiniti. Se la rete è operativa, valutare attentamente eventuali conseguenze derivanti dall'uso dei comandi.
Convenzioni
Per ulteriori informazioni sulle convenzioni usate, consultare il documento Cisco sulle convenzioni nei suggerimenti tecnici.
Che cos'è l'immagine d'avvio? (Avvio Rx)
L'immagine di avvio è un sottoinsieme del software Cisco IOS® utilizzato per scaricare le immagini principali del software Cisco IOS sul router con protocollo TFTP in situazioni di ripristino. L'utente può interagire con questa immagine tramite un'interfaccia della riga di comando indicata da promptRouter(boot)#.
alcune piattaforme (Cisco 1600, 2500) le hanno nella ROM, altre (router high-end) le hanno in bootflash. Questa immagine può essere denominata immagine xboot, immagine rxboot, immagine bootstrap o immagine boot loader o helper, a seconda della piattaforma in uso.
Le funzionalità dell'immagine di avvio sono limitate. Ad esempio, non contiene informazioni di routing.
Avviso: non salvare mai la configurazione in modalità di avvio. Se si esegue questo salvataggio, parte della configurazione (ad esempio la parte di routing) andrà persa.
Caricare l'immagine d'avvio
Se il router contiene un'immagine di avvio valida, può essere utilizzato per scaricare un'immagine valida del software Cisco IOS nella memoria flash con TFTP. A tale scopo, effettuare le seguenti operazioni:
-
Modificare il registro di configurazione per avviare l'immagine di avvio e impostare il registro di configurazione come mostrato di seguito (in base al prompt visualizzato):
rommon 1 > confreg 0x2101
or
> o/r 0x2101
You must reset or power cycle for the new configuration to take effect.
!--- This is the router output when a configuration register command is entered.
Il registro di configurazione è stato modificato per l'avvio dell'immagine di avvio.
-
Per avviare l'immagine di avvio, reimpostare il router:
rommon 2 > reset
or
> i
Viene visualizzato il messaggio System Bootstrap (Avvio sistema) e il router avvia l'immagine di avvio. Sullo schermo verrà visualizzato un messaggio simile al seguente:
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)>
A questo punto, il prompt deve essere simile a Router(boot)>.
-
Se si utilizza ancora ROMmon, l'immagine di avvio verrà persa o danneggiata. Se il router non dispone di un'immagine valida in Flash o Bootflash e non dispone di altre procedure di aggiornamento ROMmon, l'unico modo per eseguire il ripristino è avere un router simile con una scheda Flash compatibile, scaricare l'immagine su tale router e quindi spostare la scheda Flash su quella bloccata.
-
Per informazioni sulla compatibilità della scheda Flash, vedere Compatibilità dei file system PCMCIA e Informazioni sul file system.
-
Collegare l'interfaccia Ethernet 0 del router alla rete per raggiungere il server TFTP. Configurare l'indirizzo IP sull'interfaccia Ethernet del router.
Router(boot)>enable
Router(boot)#configure terminal
Router(boot)(config)#interface ethernet 0
Router(boot)(config-if)#ip address 10.77.241.160 255.255.255.0
Router(boot)(config-if)#no shutdown
-
I router che eseguono le immagini di avvio non dispongono di funzionalità di routing. È quindi necessario configurare un gateway predefinito per questo router. Eseguire il comando di configurazione globale ip default-gateway per impostare il gateway predefinito appropriato per questo router. Questo deve puntare all'indirizzo IP del router collegato alla stessa subnet dell'interfaccia Ethernet 0.
Router(boot)(config)#ip default-gateway 10.77.241.129
-
Prima di copiare l'immagine Cisco IOS dal server TFTP, verificare che il router sia connesso al server TFTP.
Router(boot)#ping 10.77.233.94
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echoes to 10.77.233.94, timeout is 2 seconds:
.!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
Router(boot)#
-
Copiare l'immagine Cisco IOS dal server TFTP nella memoria flash del router.
Router(boot)#copy tftp flash
PCMCIA flash directory:
No files in PCMCIA flash
[0 bytes used, 16777216 available, 16777216 total]
Address or name of remote host [255.255.255.255]? 10.77.233.94
!--- Enter the IP address of the TFTP Server.
Source file name? c1600-y-l.122-10d.bin
!--- This is the filename of the Cisco IOS image that you want to copy from
!--- the TFTP server.
Destination file name [c1600-y-l.122-10d.bin]?
!--- Press 'Enter'.
Accessing file 'c1600-y-l.122-10d.bin' on 10.77.233.94...
Loading
c1600-y-l.122-10d.bin from 10.77.233.94 (via Ethernet0):
! [OK] Device needs erasure before copying new file Erase flash device before writing? [confirm]y
!--- Press 'y' or 'Enter'.
!--- On Class B Flash file systems, the router gives you the option of erasing
!--- the existing contents of Flash memory before writing to it. If no free Flash
!--- memory is available, or if no files have ever been written to Flash memory,
!--- the erase routine is required before new files can be copied. If there is
!--- enough free Flash memory, the router gives you the option of erasing the
!--- existing Flash memory before writing to it. The system will inform you
!--- of these conditions and prompt you for a response.
!--- If you enter 'n' after the "Erase flash before writing?" prompt, the copy
!--- process continues. If you enter 'y' and confirm the erasure, the erase
!--- routine begins. Make sure to have ample Flash memory space before entering "n"
!--- at the erasure prompt. Copy 'c1600-y-l.122-10d.bin' from server as 'c1600-y-l.122-10d.bin' into Flash WITH erase? [yes/no]yes
!--- Entering 'yes' erases all the files in Flash.
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased Loading
c1600-y-l.122-10d.bin from 10.77.233.94 (via Ethernet0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!
[OK - 7220632/16777216 bytes]Verifying checksum... OK (0x6526) Flash device copy took 00:05:57 [hh:mm:ss] Router(boot)#
-
Modificare il valore del registro di configurazione a 2102 in modo che il router si avvii con l'immagine Cisco IOS appena scaricata mentre si esegue il successivo ricaricamento.
Router(boot)#configure terminal
Router(boot)(config)#config-register 0x2102
Router(boot)(config)#exit
Router(boot)#
-
Ricaricare il router con il comando reload.
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>
-
Per verificare se l'immagine corretta è stata caricata nel router, controllare la versione dell'immagine Cisco IOS nel router con il comando show version.
Router>show version
Cisco Internetwork Operating System Software
Cisco IOS (tm) 1600 Software (C1600-Y-L), Version 12.2(10d), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Wed 14-May-03 01:04 by pwade
Image text-base: 0x0803A510, data-base: 0x02005000
ROM: System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
ROM: 1600 Software (C1600-BOOT-R), Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE
SOFTWARE (fc1)
1603 uptime is 19 hours, 26 minutes
System returned to ROM by reload
System image file is "flash:c1600-y-l.122-10d.bin"
cisco 1603 (68360) processor (revision C) with 13824K/4608K bytes of memory.
Processor board ID 10240382, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
1 ISDN Basic Rate interface(s)
System/IO memory with parity disabled
2048K bytes of DRAM onboard 16384K bytes of DRAM on SIMM
System running from FLASH
7K bytes of non-volatile configuration memory.
16384K bytes of processor board PCMCIA flash (Read ONLY)
Configuration register is 0x2102
Router>
Viene ora eseguita la nuova immagine Cisco IOS caricata da un server TFTP.
Informazioni correlate