cisco 841Mの初期化が詰んだ話(工場出荷時に戻したい編)
前回に引き続き
前回は、cisco 841Mにてワンタイムパスワードを使った後にログインできない状態から
復帰する手順を書きましたが、今回は工場出荷時に戻す手順を書きなぐっておこうと思います。
ちな前回
大前提として
正直まとめるまでもなく、公式様の手順がすごくわかりやすい https://community.cisco.com/t5/cisco-start-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/c841m-%E3%83%AA%E3%82%AB%E3%83%90%E3%83%AA-%E5%88%9D%E6%9C%9F%E5%8C%96%E3%82%AC%E3%82%A4%E3%83%89/ta-p/3156931
customer-config.txtのダウンロードと諸々の準備
■以下のURLから「customer-config.txt」をダウンロードしてきます。 https://community.cisco.com/t5/cisco-start-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/c841m-%E3%83%AA%E3%82%AB%E3%83%90%E3%83%AA-%E5%88%9D%E6%9C%9F%E5%8C%96%E3%82%AC%E3%82%A4%E3%83%89/ta-p/3156931
■手順書にも書かれているように、「.txt」の拡張子を消します。
ファイル名で判断しているとは思うのですが、他のファイルが入っていないUSBで作業します。
■起動の確認
CCP Express or CLIで正常に起動していることを確認します。
GUI面倒くさいのでCLIで確認しました。
普通にログインできているので、これを以て正常起動とします。
Username: admin Password: % Password expiration warning. ----------------------------------------------------------------------- Cisco Configuration Professional (Cisco CP) is installed on this device and it provides the default username "cisco" for one-time use. If you have already used the username "cisco" to login to the router and your IOS image supports the "one-time" user option, then this username has already expired. You will not be able to login to the router with this username after you exit this session. It is strongly suggested that you create a new username with a privilege level of 15 using the following command. username <myuser> privilege 15 secret 0 <mypassword> Replace <myuser> and <mypassword> with the username and password you want to use. ----------------------------------------------------------------------- yourname>en yourname# yourname#
いざ初期化
以降の作業の際も、コンソールの画面を確認しながら作業していきます。
■後ろにUSBを指します。 コンソール画面上でもUSBが認識されたメッセージが出ることを確認します。
yourname# *Oct 16 12:09:36.379: %USBFLASH-5-CHANGE: usbflash0 has been inserted! yourname#
■後ろにあるリセットボタンを5秒以上押します。
私が作業をしたときはリセットボタンが押されたと判断できるメッセージが出るまで10秒ほどかかりました。
yourname# *Oct 16 12:11:01.527: %SYS-5-RELOAD: Reload requested by Reset button detect process. Reload Reason: Load customer configuration. System Bootstrap, Version 15.5(1r)T1, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 2014 by cisco Systems, Inc. Total memory size = 512 MB C841M-4X-JSEC/K9 platform with 524288 Kbytes of main memory Main memory is configured to 32 bit mode Readonly ROMMON initialized IOS Image Load Test ___________________ Digitally Signed Production Software Self decompressing the image : (あとは長いので割愛)
■工場出荷時のバナーが出ていることと、ワンタイムパスワードでログインできました。
きっちり計測したわけではないですが、リセットボタンを押してから再起動が完了するまでは
3分ほどかかりました。
----------------------------------------------------------------------- Cisco Configuration Professional (Cisco CP) is installed on this device. This feature requires the one-time use of the username "cisco" with the password "cisco". These default credentials have a privilege level of 15. YOU MUST USE CISCO CP or the CISCO IOS CLI TO CHANGE THESE PUBLICLY-KNOWN CREDENTIALS Here are the Cisco IOS commands. username <myuser> privilege 15 secret 0 <mypassword> no username cisco Replace <myuser> and <mypassword> with the username and password you want to use. IF YOU DO NOT CHANGE THE PUBLICLY-KNOWN CREDENTIALS, YOU WILL NOT BE ABLE TO LOG INTO THE DEVICE AGAIN AFTER YOU HAVE LOGGED OFF. For more information about Cisco CP please follow the instructions in the QUICK START GUIDE for your router or go to http://www.cisco.com/go/ciscocp ----------------------------------------------------------------------- User Access Verification Username:
今度こそは、忘れないうちにユーザとパスワードを設定しました。。。
余談
cisco starsは概ねこのワンタイムパスワードが採用されているようです。 今後出る機器がこのワンタイムパスワード形式になっていくのかはわかりませんでしたが このやり方が主流になっていくかもしれない可能性を覚えておこうと思う事案でした…。
ワンタイムパスワードはともかく、工場出荷時の戻し方があまり好きではないです・・・。 ふと思ったんですが、同じファイル名で任意の設定を入れておけば好きなコンフィグで起動させることができるんでしょうか。 また試してみようかと思います。