わりと高い頻度でルーターの初期化をするのですが、毎回調べていて面倒になってきたので、備忘録です。
対象のルーター
- Yamaha RTXシリーズ
- NEC IXシリーズ
ログインできる場合
administrator
やenable-config
になれる場合です
Yamaha
> administrator
Password:
# cold start
Password:
NEC
Router# enable-config
Router(config)# erase startup-config
Are you sure you want to erase the startup-configuration? (Yes or [No]): y
Router(config)# exit
Router# default-console command-line
Router# reload
% Warning: current running-configuration is not saved yet.
Notice: The router will be RELOADED. This is to ensure that
the peripheral devices are properly initialized.
Are you sure you want to reload the router? (Yes or [No]): y
ログインできない場合
ログインのパスワード忘れちゃった場合です
Yamaha
security class
のforgetがon(初期値)の場合
Password: w,lXlma
# cold start
Password: w,lXlma
security class
のforgetがoffの場合
型番 | やり方 |
---|---|
RTX1100 | initボタンを押しながら起動 |
RTX1200 | microSD,USB,DOWNLOAD の3つのボタンを押しながら起動 |
NEC
起動中にLoading: ##
が出力されている途中でCtrl+cを入力
NEC Bootstrap Software
Copyright (c) NEC Corporation 2001-2014. All rights reserved.
%BOOT-INFO: Trying flash load, exec-image [ix2215-ms-9.0.9.ldc].
Loading: #########
ブートモニタモードになる
NEC Bootstrap Software, Version 6.0
Copyright (c) NEC Corporation 2001-2014. All rights reserved.
boot[0]>
ccコマンドを実行し、スタートアップコンフィグを削除
boot[0]> cc
Enter "Y" to clear startup configuration: y
% Startup configuration is cleared.
bコマンドを実行し、プログラムファイルをロード
boot[0]> b
NEC Bootstrap Software
Copyright (c) NEC Corporation 2001-2014. All rights reserved.
%BOOT-INFO: Trying flash load, exec-image [ix2215-ms-9.0.9.ldc].
Loading: ##################################### [OK]
蛇足
UbuntuなPCでUSB→RS232Cケーブルで繋いだ時に使うコマンド
$ sudo screen /dev/ttyUSB0 9600