• 締切済み

CiscoルータのROMモニターからの回復について

お世話になります。 Cisco 1720ルータを使用しているのですが、電源をいれてみたらIOSが起動しませんでした。 復旧のため以下コマンドを試してみましたが、うまくいきません。 rommon 1 > boot loadprog: bad file magic number: 0x0 boot: cannot load "flash:" rommon 2 > rommon 2 > dir flash: File size Checksum File name 576 bytes (0x240) 0x905f tftpc rommon 3 > rommon 3 > boot flash:tftpc loadprog: bad file magic number: 0x0 boot: cannot load "flash:tftpc" rommon 4 > rommon 4 > boot flash:c1700-ny-mz.121-6.bin open: file "c1700-ny-mz.121-6.bin" not found open(): Open Error = -1 loadprog: error - on file open boot: cannot load "flash:c1700-ny-mz.121-6.bin" rommon 5 > rommon 5 > xmodem -c tftpc Do not start the sending program yet... File size Checksum File name 576 bytes (0x240) 0x905f tftpc WARNING: All existing data in bootflash will be lost! Invoke this application only for disaster recovery. Do you wish to continue? y/n [n]: y Ready to receive file tftpc ... CCCCCCCCCC Timeout waiting for data - aborting download... 数日前に色々コマンドを試し打ちしていた際 tftpサーバは特に立ち上げていることはなく Router#copy running-config tftp Address or name of remote host []? tftp というようなコマンドを打っていたのを覚えています。 正常に起動できるような復旧方法がありましたら 教えていただきたいと思います。 よろしくお願いします。

みんなの回答

  • invalid
  • ベストアンサー率61% (67/109)
回答No.2

>IOSイメージはバックアップ等行っていなく存在しません。 >そのような場合でも、tftpdnldコマンド、Xmodemコマンドは使用できるのでしょうか。 ROMモニタのtftpdnldコマンド、Xmodemコマンドは使用できますが 肝心のIOSファイルが無ければ意味が無いですね。 IOSを入手してもらうしかないのですが http://www.cisco.com/support/ja/130/recovery_c1700.shtml#topic2 の中ほどにある"Cisco IOSイメージのバックアップがない場合"のリンク先のとおり サポートのページでダウンロードする(登録ユーザのみ)か、 独自の方法(オークションとか?)で入手するしかないかと思います。 ちなみにサポート契約してますか?

  • invalid
  • ベストアンサー率61% (67/109)
回答No.1

数日前に入力したコマンドが合っているか分かりませんが IOSの中身を飛ばして、running-configの内容がtftpcという ファイル名になっているように思われます。 (576バイトというサイズから ) IOSの復旧方法は、 ROMmonでTFTP(tftpdnldコマンド)を使用したダウンロード ROMmonでXmodemを使用したダウンロード になります。 http://www.cisco.com/support/ja/130/recovery_c1700.shtml ※どちらの方法もIOSをルータに送るためのPCが必要となります。  TFTPだとTFTPサーバとなるPC、Xmodemだと通信相手となるPC 肝心なところが英語だけでしたので http://www.google.co.jp/search?hl=ja&q=cisco+tftpdnld&lr=lang_ja で検索すると出てきますので参考にしてください。

rainnoise
質問者

補足

ご回答ありがとうございます。返事が遅くなりました。 上記ページと http://www.kuwazou.net/blog/cat38/cisco_ios/ を参考に TFTPサーバとなるPCとルータとをクロスLANケーブルで繋ぎ tftpdnldコマンドを試してみましたが、結果以下となりました。 rommon 24 > tftpdnld IP_ADDRESS: 10.0.16.36 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 10.0.16.254 TFTP_SERVER: 10.0.16.11 TFTP_FILE: tftpc Invoke this command for disaster recovery only. WARNING: all existing data in all partitions on flash will be lost! Do you wish to continue? y/n: [n]: y Initializing interface. Interface link state up. ARPing for 10.0.16.11 ARP reply for 10.0.16.11 received. MAC address 00:0f:xx:xx:xx:xx TFTP error 1 received (t@C ンオワケ・. ェカ TFTP: tftp stopped due to error. TFTP: Operation terminated. tftpdnldコマンド、Xmodemコマンド共に文献資料を確認していましたら、 tftpdnldコマンドはROMモニターモードからのTFTPサーバを使ったダウンロードのためのコマンドということで、 TFTPサーバとなるPCにIOSイメージが存在しないといけないのかと思いますが、 IOSイメージはバックアップ等行っていなく存在しません。 そのような場合でも、tftpdnldコマンド、Xmodemコマンドは使用できるのでしょうか。 それともまた別の方法にて復旧方法がありましたら 教えていただきたいと思います。 よろしくお願いします。

関連するQ&A

  • ciscoルータが起動時にIOSをロードしない

    機器はCisco1712です。 当初はc1700-k9o3sy7-mz.122-15.ZL1.binというIOSが入っていて、問題なく動作していました。 今回IOSをc1700-advsecurityk9-mz.124-12.binというのに変更しました。 それだけの操作で、次回起動時には新しいIOSをロードしてくれるものだと思っていたのですが その後ルータを起動するとIOSはロードしてくれず、rommonモードのプロンプトで停止するようになりました。ここで boot flash:c1700-advsecurityk9-mz.124-12.bin を実行すれば正常に起動してくれますのでイメージファイルは問題ないと思っています。 自動で新しいIOSをロードしてもらえるようにできないでしょうか。 参考に起動時のログを載せておきますが、ご存知の方がいましたら宜しくお願いします。 System Bootstrap, Version 12.2(7r)XM4, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 2003 by cisco Systems, Inc. C1700 platform with 65536 Kbytes of main memory loadprog: bad file magic number: 0x0 boot: cannot load "flash:" System Bootstrap, Version 12.2(7r)XM4, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 2003 by cisco Systems, Inc. C1700 platform with 65536 Kbytes of main memory loadprog: bad file magic number: 0x0 boot: cannot load "flash:" System Bootstrap, Version 12.2(7r)XM4, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 2003 by cisco Systems, Inc. C1700 platform with 65536 Kbytes of main memory rommon 1 > dev Devices in device table: id name flash: flash rommon 2 > dir flash: File size Checksum File name 3176448 bytes (0x307800) 0xc273 sdm.tar (deleted) 1430 bytes (0x596) 0x820a home.html 1038 bytes (0x40e) 0xddd8 home.shtml 4096 bytes (0x1000) 0xedab sdm.tar (deleted) (bad checksum: 0x1254) 13474288 bytes (0xcd99f0) 0xe603 c1700-advsecurityk9-mz.124-12.bin 15765 bytes (0x3d95) 0x7eac sdm.shtml 2196 bytes (0x894) 0x3c5e sdmconfig-1711-1712.cfg 660 bytes (0x294) 0xae56 vlan.dat 216064 bytes (0x34c00) 0xf287 home.tar 3176448 bytes (0x307800) 0xc273 sdm.tar rommon 4 > boot flash:c1700-advsecurityk9-mz.124-12.bin program load complete, entry point: 0x80008000, size: 0xcd9878 Self decompressing the image : ####### [OK] 以下省略

  • TFTPからIOSを起動できない。

    FLASH容量の少ないルータでIOSをTFTPから起動したいと思っていますが、次のエラーで起動できません。 %SYS-6-READ_BOOTFILE_FAIL: tftp://192.168.1.65/c1710-k9o3sy-mz[1].124-19.bin Fil e read failed -- Timed out. %SYS-6-BOOT_MESSAGES: Messages above this line are from the boot loader. boot of "tftp:c1710-k9o3sy-mz[1].124-19.bin 192.168.1.65" using boot helper "fla sh:c1710-k9o3sy-mz[1].122-8.T4.bin" failed error returned: File read failed -- Timed out loadprog: error - on file open boot: cannot load "tftp:c1710-k9o3sy-mz[1].124-19.bin 192.168.1.65" *TFTPはWinXP(192.168.1.65)の「POOR TFTP」です。ルータから左記XPにはPING到達できます。ルータはCisco1710。オリジナルIOSは、「c1710-k9o3sy-mz.122-8.T4.bin」。TFTPからの起動希望IOSは「c1710-k9o3sy-mz[1].122-8.T4.bin」。 ご指導をお願いします。

  • IOSの復旧エラー

    IOSをPC内TFTPからアップグレードしたいと思っていますがエラーが発生します。 <コマンド> rommon 12 > set PS1=rommon ! > IP_SUBNET_MASK=255.255.255.0 BSI=0 TFTP_SERVER=192.168.1.65 DEFAULT_GATEWAY=192.168.1.254 TFTP_FILE=c1710-k9o3sy-mz.122-8.T4.bin IP_ADDRESS=192.168.1.100 ?=0 RET_2_RTS= rommon 14 > sync rommon 15 > tftpdnld IP_ADDRESS: 192.168.1.100 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 192.168.1.254 TFTP_SERVER: 192.168.1.65 TFTP_FILE: c1710-k9o3sy-mz.122-8.T4.bin Invoke this command for disaster recovery only. WARNING: all existing data in all partitions on flash will be lost! Do you wish to continue? y/n: [n]: y ... ARP: address resolution for 192.168.1.65 timed out. ARP failed with failure code 1. TFTP transfer aborted. TFTP: Operation terminated prematurely. rommon 16 > tftpdnld IP_ADDRESS: 192.168.1.100 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 192.168.1.254 TFTP_SERVER: 192.168.1.65 TFTP_FILE: c1710-k9o3sy-mz.122-8.T4.bin Invoke this command for disaster recovery only. WARNING: all existing data in all partitions on flash will be lost! Do you wish to continue? y/n: [n]: y TFTP error 1 received (File not found.). TFTP: Operation terminated. <状況> PCから1710にPINGが到達しません。同じセグメントの他のCiscoDeviceにはPING到達できます。1710のF0にクロスケーブルで接続しています。 TFTPは「POOR TFTP」です。最近、何回かこの「POOR TFTP」を利用しIOSをアップグレードしましたが、その時には問題なく動作しています。 よろしくお願いします。

  • cisco社スイッチのIOSの復旧

    cisco社スイッチのIOSの復旧ができず困っています。知識不足から原因を特定できずいます。以下に情報を載せました。よろしくお願いいたします 機器名:catalyst3512XL-EN ターミナルソフト:UTF-8 Tera Term Pro サーバソフト:Poor TFTP Server ブートシステム:Boot Loader (c3500-HBOOT-M) Version 12.0 (5) XU PC:Microsoft Windows XP Professional Version2002 起動時のプロンプト: switch: 操作手順: switch: copy xmodem: flash:c2900XL-c3h2s-mz-120.5-XU.bin Termより、ファイル→転送→XMODEM→送信→c2900XL-c3h2s-mz-120.5-XU(ファイル名) 結果: 一定時間(1分くらい)後に転送の表示が消え、通常状態に戻る。インストールはされていない模様 確認: switch: dir flash: 結果: unable to start flash:/:invalid argument また、以下の操作時に情報表示後にフリーズする switch:set BAUD 11520 & switch:flash_init switch:load_helperは通常どおり処理しているように見えます IOSはサーバソフトを利用し、catalyst2912XL-EN(唯一起動するスイッチになります)より #copy flash tftp にてPCに転送しています

  • TFTPサーバ構築

    CentOS5.2でTFTPサーバーを構築し、Ciscoルータからcopy flash tftpをしたいのですが、なぜかtime outになってしまいます。 何が悪いのかご検討のつく方、アドバイスをお願いします。 cat /etc/xinetd.d/tftp -------------------- # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 } ------------------------------------------- ls -la / | grep tftpboot --------------------------------------------- drwxrwxrwx 2 nobody nobody 4096 3月 28 2007 tftpboot --------------------------------------------- Router#copy flash tftp Source filename []? c2600-io3-mz.123-6b.bin Address or name of remote host []? 192.168.1.5 Destination filename [c2600-io3-mz.123-6b.bin]? ..... %Error opening tftp://192.168.1.5/c2600-io3-mz.123-6b.bin (Timed out)

  • Catalyst2960のバージョンアップ

    CiscoIOS12からIOS15にバージョンアップを行おうとしています。 #show flash:で見ますと、"3 drwx 256 ************ +00:00 c2960-lanbase-mz.122-35.SE5"と言うディレクトリがあってそこにc2960-lanbase-mz.122-35.SE5.binと言うIOSが入っています。 tftpでそこのディレクトリにIOS15をダウンロードしたのですが、他にhtmlやinfoと言うファイルがあります。そこで、Switch# configure terminal Switch(config)# no boot system flash:古いIOSファイル名.bin Switch(config)# boot system flash :新しいIOSファイル名.bin Switch(config)# exit Switch# copy running-config startup-configとしたら、確かに次に立ち上がったときにはIOS15で立ち上がってくれます。 しかし、何かの拍子で初期化してしまうとIOS12で立ち上がるのでは無いでしょうか?また、そもそも、IOS12の入っていたディレクトリにIOS15 を置いておいて良いのかどうかです。 #erase startup-configとしたときに正常に立ち上がるのか?と言う疑問があります。 このような場合どうすれば良いのでしょうか? 何か違うような気がします。初学者ですが、試験勉強もしていますが、実機にも慣れておきたいので実機を触っています。RouterはIOSがディレクトリに入っていなかったので、問題はなく、またメモリも外付けで何とかなります。しかしスィッチはメモリが内蔵されていて下手すると取り返しが付かなくなる可能性もあり戸惑っております。 ネットでは比較的簡単に触れられているだけですし、今学校に行っていますが、Routerについては記載があったのですがSwitchに関してはあまり深く書かれていません。お教えいただければ幸いです。ネット情報もいろいろで、確かに上の設定で大丈夫ですが、何か中途半端な印象を受けます。よろしくお願いいたします。

  • CISCO上でtftp操作

    CISCO上でtftpの操作を行いたいのですがError openingとでます。目的は現在のconfigのバックアップ作業です。 (1)CISCOに入る (2)enableモードになる (3)copy running-config tftp:(とコマンドをうつ) (4)Address or name of remote host[]?と聞いてきたのでtftpのアドレスを記入。 (5)Destination filename[note-gsr-config]?と聞いてきたので適当なファイル名を記入 一応流れはこうなっています。 逆にtftpサーバからCISCOにアップする方法もお願いします。

  • Ciscoルータ(1710)の起動不可。

    Ciscoルータ(1710)の起動不可。 多機能IOS(Version 12.2)への変更を試みたところ、 下記のエラーが発生しました。 プロパーIOS(Ver11)を搭載し直しましたが改善しません。 ブートストラップがVersion 12.2であることがメモリ不足の要因に なっていのではないかと考え、 ROMモニタでFLASH内のプロパーIOSを指定して起動しましたが、 改善しません。 進行の必要な他の作業もあるため、状況をここに投げて アドバイスを求めたいと思いました。 よろしくお願いします。 System Bootstrap, Version 12.2(1r)XE1, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Copyright (c) 2001 by cisco Systems, Inc. C1700 platform with 49152 Kbytes of main memory program load complete, entry point: 0x80008000, size: 0xab6ff0 Self decompressing the image : ######################################################################################################## ############################################################################### [OK] Smart Init is disabled. IOMEM set to: 25 Memory required: 52840224 bytes, Memory available: 50331648 bytes INSUFFICIENT MEMORY TO LOAD IMAGE! The difference between Memory required and Memory available is the additional memory you need to run the router. Alternately, use a smaller image; this may cause the memory requirement to decrease, and may allow you to at least use the router with reduced functionality until you get more memory. *** System received a Software forced crash *** signal= 0x17, code= 0x200, context= 0x8000626c PC = 0xffffffff, Vector = 0x200, SP = 0xffffffff System Bootstrap, Version 12.2(1r)XE1, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support Copyright (c) 2001 by cisco Systems, Inc. C1700 platform with 49152 Kbytes of main memory rommon 1 >

  • CiscoIOSバックアップについて

    CiscoIOSイメージのバックアップがしたいのですが、 %Error ファイルをオープンできません(Time out)という エラーが出てしまいます。 今cisco2600というルータのfa0/0とPCを コンソールとLANケーブルで接続しております。 TFTPD.exeを使用しております。 それぞれ設定は下記の通りです。 ------------------- PC:192.168.64.1/24 ルータfa0/0:192.168.64.254/24 ------------------- PC⇔ルータfa0/0間で疎通は正常で telnetログインOK ------------------- TFTPD.exeの設定はデフォルトです。 ダウンロード先を変更したぐらい。 <作業結果>一部抜粋 ----------------------------------------- cisco2600#show run Building configuration... Current configuration : 788 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname cisco2600 ! boot-start-marker boot-end-marker ! enable password cisco ! no network-clock-participate slot 1 no network-clock-participate wic 0 no aaa new-model ip subnet-zero ip cef ! ! no ip domain lookup ip host catalyst2950 192.168.64.253 ! ! ! interface FastEthernet0/0 ip address 192.168.64.254 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! ! end cisco2600# ----------------------------------------- cisco2600# cisco2600#dir Directory of flash:/ 1 -rw- 15308288 <no date> c2600-is5-mz.123-9.bin cisco2600# ----------------------------------------- cisco2600#copy flash tftp Source filename []? c2600-is5-mz.123-9.bin Address or name of remote host []? 192.168.64.1 Destination filename [c2600-is5-mz.123-9.bin]? ..... %Error opening tftp://192.168.64.1/c2600-is5-mz.123-9.bin (Timed out) 16252924 bytes total (944572 bytes free) cisco2600# ----------------------------------------- う~ん... 何が問題なのかわかりません。 どうぞ、ご教授お願いします。

  • cisco 2500 のRXBOOTでのboot systemコマンドの結果

    Cisco 2500 のRXBOOTで起動したのち enable configure terminal boot system tftp c2500-is-l.120-23.bin 後 ユーザモードで show protocolsを実行しようとしたのですが show p?をタイプしてもprotocolsが Cisco 2500からエコーバックされません。 RXBOOTでのboot systemコマンド実行した場合 RELOADしないと取得したIOSの機能は有効に ならないもんでしょうか?