如何使用 SSH/终端更新 MikroTik 路由器固件

要更新 MikroTik 路由器的固件,你可以使用终端或 SSH。

首先,登录到终端。你应该看到以下提示符:

mikrotik_update.cmd
[admin@MikroTik] >

检查新固件版本

在能够升级之前,我们需要检查是否有新版本可用。可以使用以下命令完成:

check_for_update.rsc
/system/package/update/check-for-update

示例输出:

check_for_update_output.rsc
[admin@MikroTik] > /system/package/update/check-for-updates
            channel: stable
  installed-version: 7.13.2
     latest-version: 7.15.2
             status: New version is available

更新固件

如果有新版本可用,你可以使用以下命令更新固件:

install_update.rsc
/system/package/update/install

这将自动下载并安装新固件版本。

更新需要几分钟时间,路由器将在更新完成后重启。确保不要中断此过程,因为这可能导致路由器变砖。

示例输出:

install_update_output.rsc
[admin@MikroTik] > /system/package/update/install
            channel: stable
  installed-version: 7.13.2
     latest-version: 7.15.2
             status: Downloaded, rebooting...

Check out similar posts by category: MikroTik, Networking