順序 | 動作 | アクセス場所 | 説明 |
1 | POST (Power On Self Start) の実行 | ROM | ハードウェア テストを行う |
2 | ブート ストラップの実行 | NVRAM (不揮発性 RAM) | コンフィギュレーション レジスタを読み取り、起動方法を決定 |
3 | startup-config を RAM にロードし、boot system コマンドの有無を確認 | ||
4 | EEPROM (Flash ROM) | IOS を RAM にロード ※ | |
5 | startup-config の検索 | NVRAM (不揮発性 RAM) | なし:セットアップ モードへ あり:running-config として RAM にロード |
rommon 1 >
rommon 1 > confreg 0x2101 rommon 2 > reset
rt(boot)>
rt(config)# config-register reg![]()
レジスタ値 | 説明 |
0x2100 | ROM モニタで起動 |
0x2101 | Mini IOS で起動 |
0x2102 | デフォルト |
0x2142 | NVRAM を無視して起動 |
rt# show version | i register
rommon 1> confreg 0x2142
rommon 2> reset
router# configure memory
rt# configure terminal rt(config)# enable secret passwd
rt(config)# interface type mod/num rt(config-if)# no shutdown
rt(config)# config-register 0x2102
rt# write memory
rt(config)# boot system flash file
rt(config)# boot system tftp file ip-addr
rt# reload![]()
階層 | モード | 入るコマンド | 抜けるコマンド |
3 | Interface Configuration Mode | interface if | exit end でEnable Mode ^z で User Mode |
Line Configuration Mode | line line | ||
Router Configuration Mode | router protocol | ||
2 | Global Configuration Mode | configure terminal | exit |
1 | Enable Mode | enable | disable exit でログアウト |
0 | User Mode | - | - |
Press RETURN to get started.User Access Verification Password: rt>
rt> enablert#
rt# configure terminalEnter configuration commands, one per line. End with CNTL/Z. rt(config)#
rt(config)# interface type mod/numrt(config-if)#
rt(config)# interface range type mod/num - numrt(config-if-range)#
rt(config)# line console 0rt(config-line)#
rt(config)# line vty start-vty end-vtyrt(config-line)#
rt(config)# router protocolrt(config-router)#
rt(config-xxx)# do command
キー | 説明 |
Tab | コマンド保管 |
[↑↓] Ctrl + [PN] | 直前に入力したコマンド |
Ctrl + A | カーソルをコマンドの先頭に移動 |
Ctrl + E | カーソルをコマンドの行末に移動 |
Ctrl + F | カーソルを一文字進む |
Ctrl + B | カーソルを一文字戻る |
Ctrl + D | 一文字削除 |
Ctrl + C | コマンド実行前のキャンセル |
Ctrl + Shift + 6 | コマンド実行中のキャンセル |
rt# command | action [section] regex
/regex
rt# show flash: -#- --length-- -----date/time------ path 1 1821 Sep 10 2007 14:04:36 +09:00 sdmconfig-18xx.cfg 2 861696 Sep 10 2007 14:05:02 +09:00 es.tar 3 1164288 Sep 10 2007 14:05:28 +09:00 common.tar 4 1038 Sep 10 2007 14:05:50 +09:00 home.shtml 5 113152 Sep 10 2007 14:06:12 +09:00 home.tar 6 16785132 Dec 10 2007 19:02:32 +09:00 c1841-ipbase-mz.124-18.bin 12976128 bytes available (18939904 bytes used)
rt# dir [media]
rt# copy コピー元 コピー先![]()
コマンド | 説明 |
nvram:filename | NVRAM に保存されたファイル |
flash:filename | Flash に保存されたファイル |
tftp: | TFTP サーバ上のファイル |
null: | 空ファイル |
running-config | RAM にある現在の設定ファイル |
startup-config | NVRAM に保存された設定ファイル |
rt# delete [/force] [/recursive] targetrt# squeeze
![]()
rt# erase target![]()
コマンド | 意味 |
config network | copy tftp runと同意 |
write memory | copy run startと同意 |
write network | copy run tftpと同意 |
write erase |
model-future_set-memory compress.major-maintenanse[.T].bin
#pre(soft){{
rt# verify /md5 flash:filename
................................................................................
.............................Done!
verify /md5 (flash:filename) = 7396a8db39d0b383cb8c660d40f98747