Cisco Aironet 集中管理型のIOSバックアップ
前提条件
手順
- PCに固定IPアドレスを設定
- PCでTFTPサーバを起動
- 初期ユーザ名とパスワードでログイン
- APにIPアドレスを設定する
- IOSの保存場所を確認
- IOSの保存場所までディレクトリを移動
- Backup用のコマンドを使えるようにする
- バックアップを実行
手順解説
PCに固定IPアドレスを設定
バックアップ用のローカルなネットワークを自分の好きなように決める APとPCを一対一で接続するIOSのバックアップの為だけのネットワークなので、通信ができれば何でもいい
今回使用するのネットワーク情報
PC:10.0.0.2 AP:10.0.0.1 mask:255.255.255.0
PCにIPを設定
それぞれのやり方でPCにIPを設定する
- コントロールパネルからIPを設定
- コントロールパネル(表示方法:カテゴリ)
- ネットワークの状態とタスクの表示
- アダプターの設定の変更
- ローカルエリア接続
- インターネットプロトコルバージョン4
- IPアドレスとサブネットマスクを設定
- コマンドプロンプトで設定する
- 管理者権限でコマンドプロンプトを起動
以下のコマンドを実行
netsh interface ip set address "ローカル エリア接続" static 10.0.0.2 255.255.255.0
※注意点:IOSのバックアップが完了した後、PCのネットワーク設定を元に戻すのを忘れないこと
PCでTFTPサーバを起動
PCで簡単にTFTPサーバを立てられるフリーソフトを使用。 以前は「3CDaemon」をが有名でそれを使用していたが、現在はもう開発が中止されていて更新されないので、別のソフトを使用する 今回は現在も開発が続けられている「tftpd(32 or 64)」を使用する 今回はzipの「tftpd64」を使用 - tftpdリンク http://www.jounin.net/tftpd32_download.html
初期ユーザ名とパスワードでログイン
Aironetの初期ユーザ名とパスワードでログイン
※パスワードの最初の文字「C」は大文字
Username: cisco
Password:
APにIPアドレスを設定する
PC2と通信を行うためにAPにもIPを設定する
特権モードに移行
ap>enable Password: ap#
IPとサブネットマスクの設定
ap#capwap ap ip address 10.0.0.1 255.255.255.0 You should configure Domain and Name Server from controller CLI/GUI.
IOSの保存場所を確認
PCとの疎通確認
ap#ping 10.0.0.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
保存をコマンドで確認する
Command
show flash:
結果
ap#show flash: Directory of flash:/ 2 -rwx 0 Mar 1 2002 00:00:31 +00:00 config.txt 3 -rwx 5144 Mar 1 2002 00:00:31 +00:00 private-multiple-fs 4 -rwx 65 Mar 1 2002 00:00:09 +00:00 env_vars 38 drwx 384 Oct 5 2011 19:05:13 +00:00 c1140-k9w8-mx.124-23c.JA2 7 drwx 128 Mar 1 2002 00:09:48 +00:00 c1140-rcvk9w8-mx
IOSの保存場所までディレクトリを移動
カレントディレクトリを「c1140-k9w8-mx.124-23c.JA2」移動する
ap#cd flash:/c1140-k9w8-mx.124-23c.JA2
- 移動確認
ap#dir Directory of flash:/c1140-k9w8-mx.124-23c.JA2/ 39 -rwx 172792 Oct 5 2011 19:04:23 +00:00 8001.img 40 -rwx 4717779 Oct 5 2011 19:05:10 +00:00 c1140-k9w8-mx.124-23c.JA2 41 drwx 64 Oct 5 2011 19:05:10 +00:00 html 63 -rwx 292 Oct 5 2011 19:05:13 +00:00 info 64 -rwx 23836 Oct 5 2011 19:05:13 +00:00 T5.bin 65 -rwx 8080 Oct 5 2011 19:05:13 +00:00 T2.bin
32126976 bytes total (24680960 bytes free)
Backup用のコマンドを使えるようにする
デフォルトのままではバックアックに使用する「archive」コマンドが使用できないので、
使えるコマンドの確認
ap#? Exec commands: capwap capwap exec commands cd Change current directory clear Reset functions clock Manage the system clock crypto Encryption related commands. debug Debugging functions (see also 'undebug') delete Delete a file dir List files on a filesystem disable Turn off privileged commands dot1x IEEE 802.1X Exec Commands enable Turn on privileged commands exit Exit from the EXEC fsck Fsck a filesystem help Description of the interactive help system led LED functions lock Lock the terminal login Log in as a particular user logout Exit from the EXEC lwapconfig OfficeExtend AP configurations lwapp lwapp exec commands mkdir Create new directory --More--
Backup用のコマンドを使えるようにする(debug/Tシュートモード)
ap#debug capwap console cli This command is meant only for debugging/troubleshooting Any configuration change may result in different behavior from centralized configuration. CAPWAP console CLI allow/disallow debugging is on
再度使えるコマンドの確認
ap# Exec commands: archive manage archive files capwap capwap exec commands cd Change current directory clear Reset functions clock Manage the system clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another crypto Encryption related commands. debug Debugging functions (see also 'undebug') delete Delete a file dir List files on a filesystem disable Turn off privileged commands disconnect Disconnect an existing network connection dot1x IEEE 802.1X Exec Commands enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC format Format a filesystem fsck Fsck a filesystem help Description of the interactive help system led LED functions --More--
バックアップを実行
Command
archive upload-sw tftp://PCのIPアドレス(tftp)/IOSのディレクトリ名.tar
※必ず最後に拡張子として「.tar」を付ける
実行
archive upload-sw tftp://10.0.0.2/c1140-k9w8-mx.124-23c.JA2.tar *Mar 1 00:04:56.001: %CAPWAP-3-ERRORLOG: Invalid event 38 & state 2 combination. Image info: Version Suffix: k9w8-.124-23c.JA2 Image Name: c1140-k9w8-mx.124-23c.JA2 Version Directory: c1140-k9w8-mx.124-23c.JA2 Ios Image Size: 4895232 Total Image Size: 5089792 Image Feature: WIRELESS LAN|LWAPP Image Family: C1140 Wireless Switch Management Version: 7.0.116.0!! archiving info (292 bytes) archiving c1140-k9w8-mx.124-23c.JA2 (directory) archiving c1140-k9w8-mx.124-23c.JA2/8001.img (172792 bytes) archiving c1140-k9w8-mx.124-23c.JA2/c1140-k9w8-mx.124-23c.JA2 (4717779 bytes)!!!!!!!!!!!!!!!!!!!