升級ROMMON後,它將在下一次重新載入時生效。如果在此之後返回到較舊的版本,ROMMON不會降級。更新的ROMMON支援所有以前的版本。
升級方法
本文說明使用套件組合或安裝模式的Catalyst 9600交換器的升級程式。
安裝模式
Cisco Catalyst 9600交換器上的安裝模式升級是一種升級交換器軟體的方法,涉及使用單獨軟體包,而不是單一的整體映像檔案。
請在安裝模式下執行概述的升級步驟。
1.清理
使用以下命令刪除所有不活動的安裝:
Switch#install remove inactive
2.複製新映像
使用以下方法之一將新的.bin映像檔案傳輸到活動Supervisor的快閃記憶體儲存器:
通過TFTP:
Switch#copy tftp://Location/directory/<file_name> flash:
通過USB:
Switch# copy usbflash0:<file_name> flash:
確認可用的檔案系統:
Switch#show file systems
3.核查
將IOS傳輸到活動Supervisor的快閃記憶體後,檢查映像是否正確復製為:
Switch#dir flash:
(可選)要驗證MD5校驗和,請使用命令:
Switch#verify /md5 flash:<file_name>
確保此校驗和與軟體下載頁面上提供的校驗和相匹配。
4.設定引導變數
使用以下命令將開機變數設定為指向packages.conf檔案:
Switch#config terminal
Switch(config)#no boot system
Switch(config)#boot system flash:packages.conf
Switch(config)#end
5.自動引導配置
通過執行以下操作將交換機配置為自動引導:
Switch#config terminal
Switch(config)#no boot manual
Switch(config)#end
6.儲存配置
儲存當前配置:
Switch#write memory
使用以下命令確認開機設定:
Switch#show boot
7.映像安裝
要安裝映像,請使用命令:
Switch#install add file flash:<file_name> activate commit
出現「This operation requires a reload of the system(此操作需要重新載入系統)」提示時。是否要繼續?[y/n],」以「y」回覆,然後繼續。
8.驗證升級是否成功
Switch#show version
Switch#show redundancy

附註:在整個步驟中替換為IOS映像檔案的實際名稱。
套件組合模式
Cisco Catalyst 9600交換器上的套件組合模式升級是指將整個軟體映像套件組合成單一檔案來升級交換器軟體的方法。此檔案包含所有必要的元件,例如作業系統、裝置驅動程式和交換機運行所需的其他必要軟體。升級涉及單個軟體映像檔案,通常具有.bin副檔名。這與其他方法(例如可能涉及多個檔案和軟體包的安裝模式)不同。
請按照列出的步驟在套件組合模式下進行升級。
1.使用以下方法之一,將新映像(.bin檔案)傳輸到交換機中安裝的每個Supervisor模組(如果是雙Sup或SVL)的快閃記憶體
通過TFTP:
Switch#copy tftp://Location/directory/bootflash:
Switch#copy tftp://Location/directory/stby-bootflash:
通過USB:
Switch#copy usbflash0:bootflash:
Switch#copy usbflash0:stby-bootflash:
2.使用命令確認可用的檔案系統
Switch#show file systems
3.將IOS複製到所有成員交換機後,驗證是否已正確複製映像,並使用
Switch#dir bootflash:
Switch#dir stby-bootflash:
4.(可選)使用以下命令驗證MD5校驗和:
Switch#verify /md5 bootflash:
Switch#verify /md5 stby-bootflash:
確保輸出與軟體下載頁面上提供的MD5校驗和值相匹配。
5.使用以下命令配置引導變數,使其指向新的映像檔案
Switch#config terminal
Switch(config)#no boot system
Switch(config)#boot system bootflash:
Switch(config)#end
6.儲存配置
Switch#write memory
7.使用下列命令驗證引導設定:
Switch#show boot
8.重新載入交換機以應用新的IOS
Switch#reload
9.驗證升級是否成功
Switch#show version
Switch#show redundancy

附註:在整個步驟中替換為IOS映像檔案的實際名稱。
服務中軟體升級(ISSU)
服務中軟體升級這項程序,是當網路持續轉送封包時,在裝置上將映像檔升級至另一個映像檔的過程。ISSU 可協助網路管理員在執行軟體升級時避免網路中斷。映像檔會以安裝模式進行升級,也就是說每個套件都是個別升級的。
9600 Stackwise-Virtual以及具有雙管理引擎的9600獨立機箱都支援ISSU。
-
對於雙管理引擎模組配置中的Catalyst 9600和具有StackWise虛擬的Catalyst 9600,ISSU支援從Cisco IOS XE直布羅陀版16.12.1開始。
-
對於具有StackWise虛擬的Catalyst 9600X,ISSU支援從Cisco IOS XE Cupertino 17.12.1開始。
-
對於雙管理引擎模組配置的Catalyst 9600X,ISSU支援從Cisco IOS XE Cupertino 17.9.1開始。
請使用以下連結確保當前軟體版本和目標軟體版本適用於ISSU升級:
相容性矩陣
附註:
-
要在具有四管理引擎或高可用性設定的獨立機箱中將ISSU從17.3.1、17.3.2、17.3.3或17.3.4升級到17.6.x,必須執行ISSU升級到17.3.5,然後執行ISSU升級到最終目標版本。ISSU升級到17.9.1可能會失敗。如需詳細資訊,請參閱CSCwc54402。
-
ISSU從17.6.4升級到17.9.3可能會失敗。如需詳細資訊,請參閱CSCwc54402。
ISSU的前提條件
1.檢查當前代碼版本
C9600#show version | include IOS XE
2. 查看啟動模式
只有 Stackwise Virtual 中的兩個交換器都在安裝模式中啟動時才支援 ISSU。
C9600#show ver | include INSTALL
3. 查看快閃記憶體是否有充足的可用記憶體
C9600#dir flash: | include free
11353194496 bytes total (8565174272 bytes free)
C9600#dir stby-flash: | include free
11353980928 bytes total (8566865920 bytes free)
4. 查看交換器是否處於 SSO 模式
C9600#show redundancy
Redundant System Information :
------------------------------
Available system uptime = 4 minutes
Switchovers system experienced = 0
Standby failures = 0
Last switchover reason = none
Hardware Mode = Duplex
Configured Redundancy Mode = sso
Operating Redundancy Mode = sso <----------
Maintenance Mode = Disabled
Communications = Up
Current Processor Information :
-------------------------------
Active Location = slot 1
Current Software state = ACTIVE <----------
Uptime in current state = 30 minutes
Image Version = Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.9.2, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Mon 05-Nov-18 19:32 by mcpre
BOOT = flash:packages.conf;
CONFIG_FILE =
Configuration register = 0x102
Peer Processor Information :
----------------------------
Standby Location = slot 2
Current Software state = STANDBY HOT <----------
Uptime in current state = 26 minutes
Image Version = Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.9.2, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Mon 05-Nov-18 19:32 by mcpre
BOOT = flash:packages.conf;
CONFIG_FILE =
Configuration register = 0x102
5. 查看自動啟動功能是否已經啟用
C9600#show boot system
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no <----- Manual Boot should be set to "no"
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
---------------------------
Switch 2
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
如果未啟用「自動啟動」,可以按照以下方式變更設定:
C9600(config)#no boot manual
6. 查看目前的 ISSU 與安裝狀態
C9600#show issu state detail
--- Starting local lock acquisition on switch 1 ---
Finished local lock acquisition on switch 1
No ISSU operation is in progress <----- If see anything else, abort ISSU before proceeding.
Check on how to manually abort ISSU.
C9600#show install summary
[ Switch 1 2 ] Installed Package(s) Information:
State (St): I - Inactive, U - Activated & Uncommitted,
C - Activated & Committed, D - Deactivated & Uncommitted
--------------------------------------------------------------------------------
Type St Filename/Version
--------------------------------------------------------------------------------
IMG C 16.9.2.0.2433 <----- State should be Activated & Committed for current version alone.
If not clear install state before proceeding. Check on how to clear install state.
--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------
升級步驟
請按照列出的步驟執行服務中軟體升級(ISSU)升級。
1.清理
使用以下命令刪除所有不活動的安裝:
Switch#install remove inactive
2.複製新映像
使用以下方法之一將新的.bin映像檔案傳輸到活動Supervisor的快閃記憶體儲存器:
通過TFTP:
Switch#copy tftp://Location/directory/ flash:
通過USB:
Switch#copy usbflash0: flash:
確認可用的檔案系統:顯示檔案系統
3.核查
將IOS傳輸到活動Supervisor的快閃記憶體後,檢查映像是否正確復製為:
Switch#dir flash:
(可選)要驗證MD5校驗和,請使用命令:
Switch#verify /md5 flash:
確保此校驗和與軟體下載頁面上提供的校驗和相匹配。
4.設定引導變數
使用以下命令將開機變數設定為指向packages.conf檔案:
Switch#config terminal
Switch(config)#no boot system
Switch(config)#boot system flash:packages.conf
Switch(config)#end
5.自動引導配置
通過執行以下操作將交換機配置為自動引導:
Switch#config terminal
Switch(config)#no boot manual
Switch(config)#end
6.儲存配置
儲存當前配置:
Switch#write memory
使用以下命令確認開機設定:
Switch#show boot
7.映像安裝
要安裝映像,請使用命令:
Switch#install add file flash: activate issu commit
執行這裡提到的命令後,程序就會自動啟動和重新載入 SUP。在您準備好讓 SUP 開始重新啟動之前,請勿執行指令。與正常升級程式不同,它不會在重新載入之前要求您確認。
運行此命令後,ISSU進程將提取檔案,重新載入備用sup,等待它返回SSO,然後故障切換重新載入主用裝置。

附註:在整個步驟中替換為IOS映像檔案的實際名稱。
ISSU驗證步驟
ISSU完成後,
-
請檢查兩個交換器是否都以新軟體執行。
-
查看要清理的 show issu state detail 輸出,並且不要顯示任何進行中的 ISSU。
-
查看 show install issu history 輸出以確保 ISSU 作業成功(命令僅限 16.10.1 版與更新版本可用)。
從ISSU故障中恢復的步驟
-
如果ISSU發生故障,則自動中止可能會將系統恢復到其初始狀態(較舊的映像)。 不過,如果這個作法也失敗,預期會執行機箱的手動復原。
-
在手動復原期間,請檢查作用中與待命機箱是否都執行舊版映像檔(如果不是,請復原個別機箱)。
-
確保兩個機箱都運行舊映像後,runinstall remove inactive刪除所有未使用的映像包。
-
兩個機箱都執行舊版軟體後,請手動清理 ISSU 作業的所有內部狀態。(請參閱此處瞭解如何清理內部 ISSU 狀態)。
中止 ISSU
在3步工作流程中,在啟用ISSU過程中,如果abort-timer過期,系統可以自動中止到較舊的映像。如果備用裝置在中止期間未達到SSO,則需要手動中止。此外,如果出於任何原因,您想要在過程中中止 ISSU,則需手動中止。
C9600#install abort issu
清理 ISSU 狀態
如果ISSU升級/降級/中止/自動中止失敗,則需要手動清除ISSU內部狀態。
運行以下命令之前,在內部啟用該服務:
C9600(config)#service internal
C9600(config)#end
C9600#clear install state
clear_install_state: START Tue Nov 13 17:05:47 UTC 2018
--- Starting clear_install_state ---
Performing clear_install_state on all members
[1] clear_install_state package(s) on chassis 1
[1] Finished clear_install_state on chassis 1
Checking status of clear_install_state on [1]
clear_install_state: Passed on [1]
Finished clear_install_state
C9600#show issu state detail
--- Starting local lock acquisition on chassis 1 ---
Finished local lock acquisition on chassis 1
No ISSU operation is in progress