跳转至

IOS-XE升级与许可注册

[思科] IOS升级 (IOS-XE)以及注册许可

[思科] IOS升级 (IOS-XE)以及注册许可

  1. 将镜像文件拷贝至U盘。
  2. 将U盘插到思科路由器上,Console会输出如下内容。

  1. dir usb1:检视文件,检查目标版本镜像是否存在。

  1. 执行复制命令,将镜像文件拷贝至思科路由器文件系统。
# 文件名替换为真实文件名称
copy usb1:isr4400-universalk9.16.08.01.SPA.bin bootflash:

  1. 设置启动加载目标镜像并保存,然后重启设备。
Router#conf t
Router(config)#boot system bootflash:isr4400-universalk9.16.08.01.SPA.bin
Router(config)#end
Router#write
Router#reload
Proceed with reload? [confirm]
  1. show version查看是否升级成功。

  1. [可选] 如果版本小于等于16.09,通过show license udi获取UDI,提供给供应商拿许可文件。

  1. [可选] PM从采购部拿到许可文件后,会给到我部门做许可注入。

  • 将许可文件下载后,上载到U盘中,然后将U盘插入设备接口。如下示例安装了SEC和HSEC许可。
Router#
*Nov  4 03:32:48.616: %IOSD_INFRA-6-IFS_DEVICE_OIR: Device usb0 added
Router#dir usb0:
Directory of usb0:/

    3  drwx            32768   Nov 4 2024 11:31:56 +00:00  .Spotlight-V100
    4  drwx            32768   Nov 4 2024 11:31:56 +00:00  .fseventsd
    5  -rwx             1155   Nov 4 2024 11:20:02 +00:00  SERIAL_PLACEHOLDER_SEC.lic
    6  -rwx             4096   Nov 4 2024 11:32:26 +00:00  ._SERIAL_PLACEHOLDER_SEC.lic
    7  -rwx             1148   Nov 4 2024 11:20:02 +00:00  SERIAL_PLACEHOLDER_HSEC.lic
    8  -rwx             4096   Nov 4 2024 11:32:26 +00:00  ._SERIAL_PLACEHOLDER_HSEC.lic
Router#copy usb0:SERIAL_PLACEHOLDER_perf.lic bootflash:-----把license从U盘copy到设备
Destination filename [SERIAL_PLACEHOLDER_perf.lic]?
Copy in progress...C-------直接回车
1155 bytes copied in 0.032 secs (36094 bytes/sec)
Router#dir
Directory of bootflash:/

   11  drwx            16384  Dec 18 2018 11:39:21 +08:00  lost+found
321281  drwx             4096  Jan 31 2023 20:19:19 +08:00  .prst_sync
   12  -rw-        486645440  Dec 18 2018 11:48:35 +08:00  isr4300-universalk9.03.16.04b.S.155-3.S4b-ext.SPA.bin
16065  drwx             4096  Dec 18 2018 11:40:21 +08:00  .installer
80321  drwx             4096  Dec 18 2018 12:00:02 +08:00  core
112449  drwx             4096  Dec 18 2018 11:58:32 +08:00  .rollback_timer
   13  -rw-                0  Dec 18 2018 11:58:42 +08:00  tracelogs.745
289153  drwx             8192  Nov 16 2024 15:48:09 +08:00  tracelogs
   14  -rw-               30  Oct 21 2023 11:27:17 +08:00  throughput_monitor_params
   15  -rw-              656  Oct 21 2023 10:48:38 +08:00  vlan.dat
   16  -rw-             1155  Nov 27 2024 19:15:04 +08:00  SERIAL_PLACEHOLDER_perf.lic
Router#license install bootflash:SERIAL_PLACEHOLDER_SEC.lic
Installing licenses from "bootflash:SERIAL_PLACEHOLDER_SEC.lic"
Installing...Feature:securityk9...Successful:Supported
1/1 licenses were successfully installed
0/1 licenses were existing licenses
0/1 licenses were failed to install

*Nov  4 03:34:37.869: %LICENSE-6-INSTALL: Feature securityk9 1.0 was installed in this device. UDI=ISR4451-X/K9:<已脱敏>; StoreIndex=2:Primary License Storage
*Nov  4 03:34:37.875: %IOS_LICENSE_IMAGE_APPLICATION-6-LICENSE_LEVEL: Module name = esg Next reboot level = securityk9 and License = securityk9

Router#license install bootflash:SERIAL_PLACEHOLDER_HSEC.lic
Installing licenses from "bootflash:SERIAL_PLACEHOLDER_HSEC.lic"
Installing...Feature:hseck9...Successful:Supported
1/1 licenses were successfully installed
0/1 licenses were existing licenses
0/1 licenses were failed to install

*Nov  4 03:34:54.520: %LICENSE-6-INSTALL: Feature hseck9 1.0 was installed in this device. UDI=ISR4451-X/K9:<已脱敏>; StoreIndex=3:Primary License Storage
  • 验证许可被成功应用。
Router#show license
Index 3 Feature: securityk9
        Period left: Life time
        License Type: Permanent
        License State: Active, Not in Use //重启后会显示In Use
        License Count: Non-Counted
        License Priority: Medium
Index 8 Feature: hseck9
        Period left: Life time
        License Type: Permanent
        License State: Active, Not in Use //重启后会显示In Use
        License Count: Non-Counted
        License Priority: Medium