コンフィグレーションレジスタを変更する
コンフィグレーションレジスタは、NVRAMに保存されるルータの起動に関わる大事な値です。この値は、主にトラブルシューティングを行う時に変更します。
◆「config-register」コマンド
変更する際は、グローバルコンフィグレーションモードで以下のコマンドを入力することで変更します。
Rotuer(config)#config-register <値>
値に設定するコンフィグレーションレジスタの値は、16進数で表現し、値の先頭に「0x」を付けます。
◆ROMモニタで起動する
例えば、ROMモニタで起動するように、コンフィグレーションレジスタの値を0x2100に変更してみます。
Rotuer(config)#config-register 0x2100
コンフィグレーションレジスタの値は、「copy running-config startup-config」コマンドを実行しなくても、保存されるので、入力の際は、注意して下さい。
コマンドを実行して、「show version」して確認するとコンフィグレーションレジスタの値が変更されているのが分かります。
●実行のログ
Router#show version
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 23-Feb-11 14:19 by pt_team
ROM: System Bootstrap, Version 15.1(4)M4, RELEASE SOFTWARE (fc1)
cisco1941 uptime is 1 minutes, 41 seconds
System returned to ROM by power-on
System image file is "flash0:c1900-universalk9-mz.SPA.151-1.M4.bin"
Last reload type: Normal Reload
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
export@cisco.com.
Cisco CISCO1941/K9 (revision 1.0) with 491520K/32768K bytes of memory.
Processor board ID FTX152400KS
2 Gigabit Ethernet interfaces
DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory.
249856K bytes of ATA System CompactFlash 0 (Read/Write)
License Info:
License UDI:
-------------------------------------------------
Device# PID SN
-------------------------------------------------
*0 CISCO1941/K9 FTX15242NA7-
Technology Package License Information for Module:'c1900'
----------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
-----------------------------------------------------------------
ipbase ipbasek9 Permanent ipbasek9
security None None None
data None None None
Configuration register is 0x2102 (will be 0x2100 at next reload)
上の黄色でハイライトしているところに注目して下さい。
再起動後に、有効になるコンフィグレーションレジスタが表示されています。
ROMモニタ上のコマンド
ROMモニタモードでコンフィグレーションレジスタの値を変更するには、以下のコマンドを使います。
rommon 1>confreg 0x2102 <Enter>
rommon 2>reset <Enter>
再起動は、「reset」コマンドで行います。