Powered by
Movable Type 4.1

« パスワードの設定 | メインですよ(エントリーアーカイブ) | コンフィギュレーションレジスタ »

パスワードの復旧

1.ルーターをブートした後、ブレイクを実行してブートシーケンスを中断する
  ブート中に[Ctrl] + [Break]を押せばよい (TeraTermはAlt+B)

2514>
System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 processor with 2048 Kbytes of main memory

Abort at 0x10205AC (PC)
>


2.コンフィギュレーションレジスタのビット6をオンにする(0x2142)

【2500シリーズの場合】

「o」コマンドを入力する

>o
Configuration register = 0xFFFF2102 at last boot Bit# Configuration register option settings:
15 Diagnostic mode disabled
14 IP broadcasts do not have network numbers
13 Boot default ROM software if network boot fails
12-11 Console speed is 9600 baud
10 IP broadcasts with ones
08 Break disabled
07 OEM disabled
06 Ignore configuration disabled
03-00 Boot file is cisco2-2500 (or 'boot system' command)

「o/r 0x2142」を入力する

>o/r 0x2142
>

【2600シリーズの場合】

> confreg 0x2142

でよい

3.ルータを最ロードする

【2500シリーズの場合】
「I」と入力する

【2600シリーズの場合】
「reset」と入力する


4.セットアップモードを無視し、特権モードにはいる

5.startup-config の内容を running-config にコピーする

Router#copy startup-config running-config
2514#
%SYS-5-CONFIG_I: Configured from memory by console
2514#

6.パスワードを変更する

2514#conf t
Enter configuration commands, one per line. End with CNTL/Z.
2514(config)#enable secret ***********
2514(config)#^Z

7.コンフィギュレーションレジスタをデフォルト値(0x2102)に戻す

2514#conf t
Enter configuration commands, one per line. End with CNTL/Z.
2514(config)#config-register 0x2102
2514(config)#^Z

8.ルータを再ロードする

2514#copy running-config startup-config
Building configuration...
[OK]

2514#reload
Proceed with reload? [confirm]y
%SYS-5-RELOAD: Reload requested


コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)