在管理和升级ISR4000系列路由器时,我们发现IOS XE版本有3.x的,也有Denali 16.x的。我们可以将3.x版本升级到16.x版本,已实现生成环境的稳定性。在本文中,我们将向您展示如何将ISR4000从IOS XE 3.6升级到Denali 16.2.1。

您需要知道的事
  • 路由器的最低ROMMON版本必须为16.2(1r)
  • 以下过程只适合于ISR4000。ASR1000和CSR的过程可能略有不同
先决条件
  • 从cisco.com下载ISR4000 ROMMON(除非您的路由器已经满足16.2(1r)或更高版本的要求)
  • 从cisco.com下载ISR4000软件Denali 16.x IOS XE
步骤1:验证当前ROMMON版本

在这里,我们运行的15.4(3r)S3,早于16.2(1r),因此需要升级

ISR4321#show rom-monitor r0

System Bootstrap, Version 15.4(3r)S3, RELEASE SOFTWARE
Copyright (c) 1994-2014 by cisco Systems, Inc.
ISR4321#sh platform
Chassis type: ISR4321/K9

Slot Type State Insert time (ago)
--------- ------------------- --------------------- -----------------
0 ISR4321/K9 ok 01:26:51
0/0 ISR4321-2x1GE ok 01:25:41
R0 ISR4321/K9 ok, active 01:26:51
F0 ISR4321/K9 ok, active 01:26:51
P0 PWR-4320-AC ok 01:26:34
P2 ACS-4320-FANASSY ok 01:26:34

Slot CPLD Version Firmware Version
--------- ------------------- ---------------------------------------
0 15030325 15.4(3r)S3
R0 15030325 15.4(3r)S3
F0 15030325 15.4(3r)S3
步骤2:将新的ROMMON文件和Denali 16.x软件复制到路由器flash
ISR4321#copy ftp://<username>:<password>@<IP Address>/isr4300-rommon.162-1r.pkg flash:
Destination filename [isr4300-rommon.162-1r.pkg]?
Accessing ftp://*:*@172.16.32.40/isr4300-rommon.162-1r.pkg...
Loading isr4300-rommon.162-1r.pkg !!!!!!!!!!!
[OK - 2646988/4096 bytes]

2646988 bytes copied in 1.295 secs (2044006 bytes/sec)
ISR4321#copy ftp://<username>:<password>@<IP Address>/isr4300-universalk9.16.02.01.SPA.bin flash:
Destination filename [isr4300-universalk9.16.02.01.SPA.bin]?
Accessing ftp://*:*@172.16.32.40/isr4300-universalk9.16.02.01.SPA.bin...
Loading isr4300-universalk9.16.02.01.SPA.bin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 497494797/4096 bytes]

497494797 bytes copied in 199.583 secs (2492671 bytes/sec)
步骤3:验证文件是否上传成功,并校验MD5
ISR4321#dir bootflash: | in isr
17 -rw- 2646988 Apr 2 2016 11:00:47 -07:00 isr4300-rommon.162-1r.pkg
18 -rw- 497494797 Apr 2 2016 10:54:31 -07:00 isr4300-universalk9.16.02.01.SPA.bin
ISR4321#verify /md5 flash:isr4300-rommon.162-1r.pkg
.........................................Done!
verify /md5 (bootflash:isr4300-rommon.162-1r.pkg) = 2afd598e38c5420162762ec80b285f14
步骤4:进行ROMMON升级

这个过程大概需要5分钟,之后需要重新启动路由器

ISR4321#upgrade rom-monitor filename bootflash:isr4300-rommon.162-1r.pkg all
Chassis model ISR4321/K9 has a single rom-monitor.

Upgrade rom-monitor

Target copying rom-monitor image file
selected : 0
Booted : 0
Reset Reason: 0

Info: Upgrading entire flash from the rommon package
4259840+0 records in
4259840+0 records out
262144+0 records in
262144+0 records out
655360+0 records in
655360+0 records out
4194304+0 records in
4194304+0 records out
File is a FIPS ROMMON image
FIPS-140-3 Load Test on has PASSED.
Authenticity of the image has been verified.
Switching to ROM 1
8192+0 records in
8192+0 records out
Upgrade image MD5 signature is b702a0a59a46a20a4924f9b17b8f0887
4259840+0 records in
4259840+0 records out
4194304+0 records in
4194304+0 records out
4194304+0 records in
4194304+0 records out
262144+0 records in
262144+0 records out
Upgrade image MD5 signature verification is b702a0a59a46a20a4924f9b17b8f0887
Switching back to ROM 0
ROMMON upgrade complete.
To make the new ROMMON permanent, you must restart the RP.

ISR4321#reload
步骤5:验证ROMMON是否升级成功
ISR4321#sh rom-monitor R0

System Bootstrap, Version 16.2(1r), RELEASE SOFTWARE
Copyright (c) 1994-2016 by cisco Systems, Inc.
ISR4321#show platform
Chassis type: ISR4321/K9

Slot Type State Insert time (ago)
--------- ------------------- --------------------- -----------------
0 ISR4321/K9 ok 00:04:37
0/0 ISR4321-2x1GE ok 00:03:24
R0 ISR4321/K9 ok, active 00:04:37
F0 ISR4321/K9 ok, active 00:04:37
P0 PWR-4320-AC ok 00:04:20
P2 ACS-4320-FANASSY ok 00:04:20

Slot CPLD Version Firmware Version
--------- ------------------- ---------------------------------------
0 15030325 16.2(1r)
R0 15030325 16.2(1r)
F0 15030325 16.2(1r)
步骤6:升级软件Denali 16.x IOS XE

修改系统boot变量,保存配置并重启路由器

ISR4321(config)#no boot system bootflash:isr4300-universalk9.03.16.00c.S.155-3.S0c-ext.SPA.bin
ISR4321(config)#boot system bootflash:isr4300-universalk9.16.02.01.SPA.bin
ISR4321#wr
Building configuration...
[OK]
ISR4321#reload
步骤7:验证路由器是否已升级到IOS XE 16.x版本
ISR4321#sh ver
Cisco IOS XE Software, Version 16.02.01
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version Denali 16.2.1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Mon 28-Mar-16 03:45 by mcpre