概要
このドキュメントでは、ブートイメージのTFTP機能を使用して、ROMモニタ(ROMmon)プロンプトからルータをアップグレードする方法について説明します。
前提条件
要件
このドキュメントに関する固有の要件はありません。
使用するコンポーネント
このドキュメントの内容は、特定のソフトウェアやハードウェアのバージョンに限定されるものではありません。
このドキュメントの情報は、特定のラボ環境にあるデバイスに基づいて作成されました。このドキュメントで使用するすべてのデバイスは、クリアな(デフォルト)設定で作業を開始しています。本稼働中のネットワークでは、各コマンドによって起こる可能性がある影響を十分確認してください。
表記法
表記法の詳細については、『シスコ テクニカル ティップスの表記法』を参照してください。
ブートイメージとは何か。(Rx ブート)
ブートイメージはCisco IOS®ソフトウェアのサブセットであり、回復状況でTFTPを使用してルータにメインのCisco IOSソフトウェアイメージをダウンロードするために使用されます。ユーザは、promptRouter(boot)#で識別されるコマンドラインインターフェイスを介してこのイメージと対話できます。
一部のプラットフォーム(Cisco 1600、2500)ではROMに保存され、他のプラットフォーム(ハイエンドルータ)ではブートフラッシュに保存されます。このイメージは、プラットフォームによって、xboot イメージ、Rxboot イメージ、ブートストラップ イメージ、あるいはブートローダまたはヘルパー イメージと呼ばれています。
ブート イメージの機能は限定されています。たとえば、ルーティング情報は含まれません。
警告:ブートモードで設定を保存すると、設定の一部(ルーティング部分など)が失われるため、この方法で保存しないでください。
ブートイメージのロード
ルータに有効なブートイメージが含まれている場合は、そのブートイメージを使用して、TFTPを使用して有効なCisco IOSソフトウェアイメージをフラッシュにダウンロードできます。これを行うには、次の手順を実行します。
-
ブートイメージをブートするようにコンフィギュレーションレジスタを変更し、次に示すようにコンフィギュレーションレジスタを設定します(プロンプトに応じて)。
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.
これで、ブート イメージをブートするようにコンフィギュレーション レジスタが変更されました。
-
ブートイメージをブートするには、ルータをリセットします。
rommon 2 > reset
or
> i
System Bootstrap メッセージが表示され、ルータがブート イメージをブートします。画面に次のように表示されます。
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)>
ここで、Router(boot)>のようなプロンプトが表示されます。
-
ROMmonのままである場合は、ブートイメージが失われているか、または破損していることを意味します。ルータのフラッシュまたはブートフラッシュに有効なイメージがなく、ROMmon からのアップグレード手順が他にない場合は、互換性のあるフラッシュ カードを搭載した同種のルータを用意し、このルータにイメージをダウンロードした後、フラッシュ カードを問題のルータに移す以外に復旧の方法はありません。
-
フラッシュ カードの互換性に関する情報は、「PCMCIA フラッシュカードのファイルシステム互換性対照表およびファイルシステム情報」を参照してください。
-
ユーザが TFTP サーバに到達できるネットワークにルータのイーサネット インターフェイス 0 を接続します。ルータのイーサネット インターフェイスの IP アドレスを設定します。
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
-
ブート イメージを実行するルータにルーティング機能がありません。したがって、そのルータのデフォルト ゲートウェイを設定する必要があります。このルータに適したデフォルトのゲートウェイを設定するには、ip default-gateway グローバル コンフィギュレーション コマンドを使用します。これは、イーサネット0インターフェイスと同じサブネットに接続されているルータのIPアドレスを指している必要があります。
Router(boot)(config)#ip default-gateway 10.77.241.129
-
TFTP サーバから Cisco IOS イメージをコピーする前に、ルータは 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)#
-
TFTP サーバからルータのフラッシュ メモリに Cisco IOS イメージをコピーします。
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)#
-
次回のリロード時に、新しくダウンロードしたCisco IOSイメージでルータがブートするように、コンフィギュレーションレジスタの値を2102に戻します。
Router(boot)#configure terminal
Router(boot)(config)#config-register 0x2102
Router(boot)(config)#exit
Router(boot)#
-
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>
-
ルータに正しいイメージがロードされたことを確認するには、show versionコマンドを使用して、ルータのCisco IOSイメージのバージョンをチェックします。
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>
TFTPサーバからロードされた新しいCisco IOSイメージが実行されます。
関連情報