Skip to content

Instantly share code, notes, and snippets.

@metalefty
Last active October 26, 2022 07:57
Show Gist options
  • Save metalefty/3cd9cd64f9b99c056396ea882a9e7be6 to your computer and use it in GitHub Desktop.
Save metalefty/3cd9cd64f9b99c056396ea882a9e7be6 to your computer and use it in GitHub Desktop.
IX2105ファームウェアアップデート手順

IX2105ファームウェアアップデート手順

IX2105のファームウェアアップデート手順の解説は多くの方がやっていますが、自分のやりやすい方法をまとめておきます。

手持ちのIX2105での方法を記録していますが、他のIXシリーズでも同様のはず。

事前準備

以下のサイトからファームウェアをダウンロードする(要パスワード)。

HTTPサーバーの準備

ダウンロードしたファームウェアを展開し、.rap ファイルをルーターからHTTPでアクセスできるところに置いておく。

ワンライナーでカレントディレクトリをHTTPで公開できるものを使って公開する。ポート番号は適当に9821とした。

$ cd /tmp
$ unzip ix2105-boot-19.1-gate-ms-10.2.42.zip
$ ruby -run -e httpd . -p 9821

Pythonの場合はこんな感じ。

$ python3 -m http.server 9821

ルーター側でのコマンド

まずIPアドレスの設定をする。今回はDHCPで設定した。ファームウェアのアップデートのみを行いたいので設定したIPアドレスは保存せず、再起動で消える状態にしておく。

Router# configure
Router(config)# interface GigaEthernet1.0
Router(config-GigaEthernet1.0)# ip address dhcp receive-default
Router(config-GigaEthernet1.0)# no shutdown
Router(config-GigaEthernet1.0)# show ip address GigaEthernet1.0
Interface GigaEthernet1.0 is up, line protocol is up
  Internet address is 192.168.1.31/24
  Broadcast address is 255.255.255.255
  Address determined by DHCP
  Primary DNS server is 192.168.1.1
Router(config-GigaEthernet1.0)# exit

IPアドレスの設定が完了したら、HTTPサーバに置いたファームウェアファイルの場所を指定してsoftware-updateコマンドを実行する。

Router(config)# software-update http://httpserver.example.com:9821/ix2105-boot-19.1-gate-ms-10.2.42.rap
% Downloading .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................
HTTP transfer complete, 7564355 bytes, MD5 = 4e9d6e8b62bafcc5ed620691364a45ab
% Check ...... done
% Update file name is ix2105-ms-10.2.42.ldc
% Writing ..................................................................................................................................................................................................................................................................................................................................................................................................................................... done
% Software update completed.

アップデートが完了したら show flash コマンドで結果を確認する。N+に新しいファームウェアが表示されていれば成功。

Router(config)# show flash
Codes: M - Main-side, B - Backup-side, N - Newfile, R - Runnable
       A - Active-file, + - Next-boot, * - Bootmode-entry
Length     Name                          Status
6545803    ix2105-ms-10.2.42.ldc         N+
4283502    ix2105-ms-8.9.17.b.ldc        MA

[10871672 bytes used, 3274490 available, 14146162 total]
13824 Kbytes of processor board System flash (Read/Write)

再起動する。確認されたら yes と答える。

Router(config)# 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]): yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment