🚧

USBメモリを使用したNEC IX2215のファームウェア更新方法

2025/03/09に公開

毎回やっていて忘れそうなので自分用に書きました。

必要なもの

  • USBメモリ
  • コンソールケーブル

USBメモリはお好きなものをを使用してください。コンソールケーブルに関してはSSHかTelnetができる場合、必須ではありませんが、持っておくとよいと思います。

コンソールケーブルに関して

今時のPCにシリアルポートがついているとは思えないので、多くの人がUSB変換のコンソールケーブルを使用すると思います。

ケーブルのUSB・シリアル変換に用いられるICのメーカーとして、FTDI, Nanjing Qinheng Microelectronics(WCH), Prolific Technologyが主に存在するのですが、Windows 10, 11で使用するにあたって、「動かなかった」等の報告が、FTDI以外の2社で確認できました。
ドライバダウンロードのページを確認したところ、2社ともWin11まで対応の記載はあったのですが、動かなかったといったレビューがあるため、私はFTDIチップ搭載のケーブルの購入をおすすめします。

Amazonを見るとかなりの数のノーブランド製品が存在し、割と購入に迷うと思うので私が使用しているものを記載しておきます。(アフィリエイトなし)
https://amzn.asia/d/j3FT3iy
このケーブルは商品名にFTDIチップ使用の記載があり、レビューにFTDI以外のチップが使われている情報が一切がないという理由で購入しました。

ファームウェアのダウンロード

2025/03現在、NECは一般向け?にもファームウェアを公開するようになりました。
https://jpn.nec.com/univerge/ix/Download/
上記リンクよりダウンロードと解凍をしておいてください。
今回は10.9.11→10.10.29のアップデートを行います。

USBメモリ

USBメモリはFAT32でフォーマットしたものを用意し、.rapファイルをルートにコピーしてください。

PS D:\> ls


    ディレクトリ: D:\


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        2025/01/27     13:13       10969247 ix2215-boot-25.1-gate-ms-10.10.29.rap

IX2215での操作

USBメモリをIX2215のUSBポートに接続します。
コンソールケーブルをコンソールポートとPCのUSBポートに接続し起動します。

USBポートの有効化

デバイスコンフィグモードに入り、USBポートを有効化します。

Router(config)# device USB0
Router(config-USB0)# no shutdown

USBメモリ機能の有効化

デバイスコンフィグモードから抜けて、USBメモリ機能を有効化します。
併せてUSBメモリが認識されているか確認します。

Router(config-USB0)# exit
Router(config)# usbmem enable

USBメモリの確認

IX2215にUSBメモリが認識されているか確認します。

Router(config)# show usbmem
USB Mass Storage Device (usbmem0)
total 30763122688 bytes
      11108352 bytes used
      30752014336 bytes free

ファームウェアの更新

software-updateコマンドを使用して更新を行います。
更新ファイルのファイル名は必要に応じて書き換えてください。

Router(config)# software-update usbmem0:/ix2215-boot-25.1-gate-ms-10.10.29.rap
% Reading ......................................................................done
USBMEM transfer complete, 10969247 bytes, MD5 = 9cbc5ff7c23a5f77e8b573ebe80254f5
% Check ...... done
% Erasing
  Now erasing ix2215-ms-10.6.64.ldc .... done
% Update file name is ix2215-ms-10.10.29.ldc
% Writing ......................................................................done
% Software update completed.

更新後のバージョン確認

reloadコマンドを使用し再起動を行います。
これでBootstrapでロードされるプログラムバージョンが確認できます。

NEC Bootstrap Software
Copyright (c) NEC Corporation 2001-2024. All rights reserved.

%BOOT-INFO: Trying flash load, exec-image [ix2215-ms-10.10.29.ldc].
Loading: ###################################################################### [OK]


Starting at 0x20000

Configuring router subsystems (before IDB proc): done.
Constructing IDB(Interface Database): done.
Configuring router subsystems (after IDB proc): done.
Initializing router subsystems: done.
Starting router subsystems: done.

All router subsystems coming up.

NEC Portable Internetwork Core Operating System Software
Copyright Notices:
Copyright (c) NEC Corporation 2001-2024. All rights reserved.
Copyright (c) 1985-1998 OpenROUTE Networks, Inc.
Copyright (c) 1984-1987, 1989 J. Noel Chiappa.

また、show versionを使用して、実行中のバージョンが確認できます。

Router# show version
NEC Portable Internetwork Core Operating System Software
IX Series IX2215 (magellan-sec) Software, Version 10.10.29, RELEASE SOFTWARE
Compiled Jan 10-Fri-2025 12:37:01 JST #2 by sw-build, coregen-10.10(29)

ROM: System Bootstrap, Version 25.1
System Diagnostic, Version 25.1
Initialization Program, Version 14.2

System uptime is 3 minutes
System woke up by reload, caused by command execution
System started at Mar 09-Sun-2025 13:51:12 JST
System image file is "ix2215-ms-10.10.29.ldc"

Processor board ID <0>
IX2215 (P1010E) processor with 262144K bytes of memory.
3 GigaEthernet/IEEE 802.3 interfaces
1 ISDN Basic Rate interface
1 USB interface
1024K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)

最後にshow flashコマンドを使用して、フラッシュに書き込まれているバージョンを確認します。
更新したバージョンがメインサイドかつアクティブに、更新以前のバージョンがバックアップサイドにあれば更新は完了です。

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
9408728    ix2215-ms-10.9.11.ldc         B
9434478    ix2215-ms-10.10.29.ldc        MA

[18992680 bytes used, 7989914 available, 26982594 total]
26368 Kbytes of processor board System flash (Read/Write)

Discussion