本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本檔案介紹如何透過指令行介面(CLI)在Catalyst 9800無線控制器(WLC)上的不同型別的安裝模式之間進行轉換。此程式也可用於升級9800 WLC。
思科建議您瞭解以下主題:
Catalyst 9800無線LAN控制器和存取點(AP)平台
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
在Catalyst 9800 WLC上執行IOS®-XE的方式有兩種,分別為套件組合和安裝模式。
安裝模式使用從二進位制檔案到快閃記憶體的預提取檔案來啟動控制器。控制器使用從提取操作中建立的packages.conf檔案作為開機變數。
如果控制器以二進位制映像(.bin)作為啟動變數啟動,則系統在套件組合模式下工作。在此模式下,控制器會將.bin檔案擷取到RAM中並從那裡執行。此模式使用比安裝模式更多的記憶體,因為從啟動中提取的軟體包被複製到RAM中。
提示:安裝模式是執行WLC的建議模式。
附註:在9800 WLC上設定高可用性(HA SSO)之前,請確保兩台裝置具有相同的安裝模式,否則可能會面臨V-Mismatch錯誤:%BOOT-3-BOOTTIME_INCOMPATIBLE_SW_DETECTED:R0/0:issu_stack:檢測到不相容的軟體。"
驗證9800 WLC的操作模式,以確定在模式之間進行轉換必須遵循的步驟。運行show version | include Installation mode命令以檢視當前安裝模式。
9800-40#show version | include Installation mode
Installation mode is INSTALL
步驟1.確保快閃記憶體中有足夠的空間,以便擴展新映像。
9800-40#show flash:
...
277 42838080 Oct 08 2018 14:22:06.0000000000 +00:00 wlc9500C-rpboot.2018-10-05_08.14_prabhask.SSA.pkg
278 10633472 Oct 09 2018 20:58:55.0000000000 +00:00 system-report_20181009-205853-Universal.tar.gz
279 19921673 Dec 13 2018 19:27:45.0000000000 +00:00 system-report_20181213-192546-Pacific.tar.gz
235937792 bytes available (5746528256 bytes used)
步驟2.在空間不足時清理舊安裝檔案,以便放棄新增的軟體包。
9800-40#install remove inactive Cleaning up unnecessary package files Scanning boot directory for packages ... done. Preparing packages list to delete ... C9800-CL-universalk9.2019-12-28_15.32_saurasi3.SSA.bin File is in use, will not delete. done. The following files will be deleted: [chassis 2]: /bootflash/C9800-CL-mono-universalk9.16.10.01.SPA.pkg /bootflash/C9800-CL-rpboot.16.10.01.SPA.pkg /bootflash/C9800-CL-universalk9.16.10.01.SPA.conf /bootflash/packages.conf /bootflash/wlc9500C-mono-universalk9.2018-10-05_08.14_prabhask.SSA.pkg /bootflash/wlc9500C-mono-universalk9.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg /bootflash/wlc9500C-rpboot.2018-10-05_08.14_prabhask.SSA.pkg /bootflash/wlc9500C-rpboot.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg /bootflash/wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.bin /bootflash/wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.conf Do you want to remove the above files? [y/n]yes [chassis 2]: Deleting file bootflash:C9800-CL-mono-universalk9.16.10.01.SPA.pkg ... done. Deleting file bootflash:C9800-CL-rpboot.16.10.01.SPA.pkg ... done. Deleting file bootflash:C9800-CL-universalk9.16.10.01.SPA.conf ... done. Deleting file bootflash:packages.conf ... done. Deleting file bootflash:wlc9500C-mono-universalk9.2018-10-05_08.14_prabhask.SSA.pkg ... done. Deleting file bootflash:wlc9500C-mono-universalk9.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg ... done. Deleting file bootflash:wlc9500C-rpboot.2018-10-05_08.14_prabhask.SSA.pkg ... done. Deleting file bootflash:wlc9500C-rpboot.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg ... done. Deleting file bootflash:wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.bin ... done. Deleting file bootflash:wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.conf ... done. SUCCESS: Files deleted. --- Starting Post_Remove_Cleanup --- Performing Post_Remove_Cleanup on all members [2] Post_Remove_Cleanup package(s) on chassis 2 [2] Finished Post_Remove_Cleanup on chassis 2 Checking status of Post_Remove_Cleanup on [2] Post_Remove_Cleanup: Passed on [2] Finished Post_Remove_Cleanup SUCCESS: install_remove Fri Feb 14 15:06:14 Pacific 2020 9800-40#show flash: ... 297 30983948 Jan 07 2019 04:46:03.0000000000 +00:00 system-report_20190107-044600-Pacific.tar.gz 298 10633472 Oct 09 2018 20:58:55.0000000000 +00:00 system-report_20181009-205853-Universal.tar.gz 299 19921673 Dec 13 2018 19:27:45.0000000000 +00:00 system-report_20181213-192546-Pacific.tar.gz 2931425280 bytes available (3051040768 bytes used)
步驟3.將新映像複製到快閃記憶體。
9800-40#copy tftp: flash:
Address or name of remote host []? 10.152.200.238
Source filename []? C9800-40-universalk9_wlc.16.11.01c.SPA.bin
Destination filename [C9800-40-universalk9_wlc.16.11.01c.SPA.bin]?
Accessing tftp://10.152.200.238/C9800-40-universalk9_wlc.16.11.01c.SPA.bin...
Loading C9800-40-universalk9_wlc.16.11.01c.SPA.bin from 10.152.200.238 (via Vlan210): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
步驟4.運行此命令以確認映像已成功複製到快閃記憶體。
9800-40#dir flash:*.bin
Directory of bootflash:/*.bin
Directory of bootflash:/
16 -rw- 884905681 Aug 13 2019 22:29:34 +00:00 C9800-40-universalk9_wlc.16.11.01c.SPA.bin
步驟5.檢查目前的開機變數(如果使用packages.conf),將其刪除並設定image.bin為新開機變數。請務必刪除以前的引導變數並儲存,對於新變數,您還必須儲存新配置,否則將不會發生更改。
9800-40# show boot
BOOT variable = bootflash:packages.conf,12;
CONFIG_FILE variable =
BOOTLDR variable does not exist
Configuration register is 0x2102
9800-40(config)#no boot system
9800-40(config)#do write
9800-40(config)#boot system bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bin
9800-40(config)#do write
步驟6.運行此命令以驗證引導變數是否設定為bootflash:<image.bin>
輸出顯示BOOT變數= bootflash:<image.bin>
9800-40#show boot
BOOT variable = bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bin,12;
CONFIG_FILE variable =
BOOTLDR variable does not exist
Configuration register is 0x2102
步驟7.重新載入控制器,以便以套件組合模式啟動。
9800-40#reload
步驟1.確保快閃記憶體中有足夠的空間,以便擴展新映像。
9800-40#dir flash:
步驟2.在空間不足時清理舊安裝檔案,以便放棄新增的軟體包。
9800-40#install remove inactive Cleaning up unnecessary package files Scanning boot directory for packages ... done. Preparing packages list to delete ... C9800-CL-universalk9.2019-12-28_15.32_saurasi3.SSA.bin File is in use, will not delete. done. The following files will be deleted: [chassis 2]: /bootflash/C9800-CL-mono-universalk9.16.10.01.SPA.pkg /bootflash/C9800-CL-rpboot.16.10.01.SPA.pkg /bootflash/C9800-CL-universalk9.16.10.01.SPA.conf /bootflash/packages.conf /bootflash/wlc9500C-mono-universalk9.2018-10-05_08.14_prabhask.SSA.pkg /bootflash/wlc9500C-mono-universalk9.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg /bootflash/wlc9500C-rpboot.2018-10-05_08.14_prabhask.SSA.pkg /bootflash/wlc9500C-rpboot.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg /bootflash/wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.bin /bootflash/wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.conf Do you want to remove the above files? [y/n]yes [chassis 2]: Deleting file bootflash:C9800-CL-mono-universalk9.16.10.01.SPA.pkg ... done. Deleting file bootflash:C9800-CL-rpboot.16.10.01.SPA.pkg ... done. Deleting file bootflash:C9800-CL-universalk9.16.10.01.SPA.conf ... done. Deleting file bootflash:packages.conf ... done. Deleting file bootflash:wlc9500C-mono-universalk9.2018-10-05_08.14_prabhask.SSA.pkg ... done. Deleting file bootflash:wlc9500C-mono-universalk9.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg ... done. Deleting file bootflash:wlc9500C-rpboot.2018-10-05_08.14_prabhask.SSA.pkg ... done. Deleting file bootflash:wlc9500C-rpboot.BLD_POLARIS_DEV_LATEST_20180812_104316_V16_10_0_83.SSA.pkg ... done. Deleting file bootflash:wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.bin ... done. Deleting file bootflash:wlc9500C-universalk9.2018-10-05_08.14_prabhask.SSA.conf ... done. SUCCESS: Files deleted. --- Starting Post_Remove_Cleanup --- Performing Post_Remove_Cleanup on all members [2] Post_Remove_Cleanup package(s) on chassis 2 [2] Finished Post_Remove_Cleanup on chassis 2 Checking status of Post_Remove_Cleanup on [2] Post_Remove_Cleanup: Passed on [2] Finished Post_Remove_Cleanup SUCCESS: install_remove Fri Feb 14 15:06:14 Pacific 2020 9800-40#show flash: ... 297 30983948 Jan 07 2019 04:46:03.0000000000 +00:00 system-report_20190107-044600-Pacific.tar.gz 298 10633472 Oct 09 2018 20:58:55.0000000000 +00:00 system-report_20181009-205853-Universal.tar.gz 299 19921673 Dec 13 2018 19:27:45.0000000000 +00:00 system-report_20181213-192546-Pacific.tar.gz 2931425280 bytes available (3051040768 bytes used)
步驟3.將新映像複製到快閃記憶體。
9800-40#copy tftp: flash:
Address or name of remote host []? 10.152.200.238
Source filename []? C9800-40-universalk9_wlc.16.11.01c.SPA.bin
Destination filename [C9800-40-universalk9_wlc.16.11.01c.SPA.bin]?
Accessing tftp://10.152.200.238/C9800-40-universalk9_wlc.16.11.01c.SPA.bin...
Loading C9800-40-universalk9_wlc.16.11.01c.SPA.bin from 10.152.200.238 (via Vlan210): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
步驟4.運行此命令以確認映像已成功複製到快閃記憶體。
9800-40#dir flash:*.bin
Directory of bootflash:/*.bin
Directory of bootflash:/
16 -rw- 884905681 Aug 13 2019 22:29:34 +00:00 C9800-40-universalk9_wlc.16.11.01c.SPA.bin
步驟5.檢查目前的開機變數(如果顯示image.bin檔案),將其刪除,並設定packages.conf 為新開機變數。請務必刪除以前的引導變數並儲存,對於新變數,您還必須儲存新配置,否則將不會發生更改。
9800-40#show boot
BOOT variable = bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bin,12;
CONFIG_FILE variable =
BOOTLDR variable does not exist
Configuration register is 0x2102
9800-40(config)#no boot system
9800-40(config)#do write
9800-40(config)#boot system bootflash:packages.conf
9800-40(config)#do write
步驟6.運行此命令以驗證引導變數是否設定為bootflash:packages.conf。
輸出顯示BOOT變數= flash:packages.conf。
9800-40# show boot
BOOT variable = bootflash:packages.conf,12;
CONFIG_FILE variable =
BOOTLDR variable does not exist
Configuration register is 0x2102
步驟7.將軟體安裝映像安裝到快閃記憶體。install add file bootflash:<image.bin> activate commit命令將交換機從套件組合模式移動到安裝模式。
9800-40#install add file bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bin activate commit
步驟8.對所有提示鍵入yes。 安裝完成後,控制器將繼續重新載入。
install_add_activate_commit: START Tue Aug 13 23:10:24 Central 2019
Aug 13 23:10:25.685: %INSTALL-5-INSTALL_START_INFO: Chassis 1 R0/0: install_engine: Started install one-shot bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bininstall_add_activate_commit: Adding PACKAGE
This operation requires a reload of the system. Do you want to proceed?
Please confirm you have changed boot config to bootflash:packages.conf [y/n]y
--- Starting initial file syncing ---
Info: Finished copying bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bin to the selected chassis
Finished initial file syncing
--- Starting Add ---
Performing Add on all members
[1] Add package(s) on chassis 1
[1] Finished Add on chassis 1
Checking status of Add on [1]
Add: Passed on [1]
Finished Add
Image added. Version: 16.11.1c.0.503
install_add_activate_commit: Activating PACKAGE
Following packages shall be activated:
/bootflash/C9800-rpboot.16.11.01c.SPA.pkg
/bootflash/C9800-mono-universalk9_wlc.16.11.01c.SPA.pkg
/bootflash/C9800-hw-programmables.16.11.01c.SPA.pkg
This operation may require a reload of the system. Do you want to proceed? [y/n]y
--- Starting Activate ---
Performing Activate on all members
[1] Activate package(s) on chassis 1
[1] Finished Activate on chassis 1
Checking status of Activate on [1]
Activate: Passed on [1]
Finished Activate
--- Starting Commit ---
Performing Commit on all members
Aug 13 23:14:12.122: %INSTALL-5-INSTALL_AUTO_ABORT_TIMER_PROGRESS: Chassis 1 R0/0: rollback_timer: Install auto abort timer will expire in 21600 seconds
Aug 13 23:14:13.350: %IGMP_QUERIER-4-SAME_SRC_IP_ADDR: An IGMP General Query packet with the same source IP address (172.16.76.83) is received in VLAN 1 on port Te0/0/1.
Aug 13 23:14:16.635: %IGMP_QUERIER-4-SAME_SRC_IP_ADDR: An IGMP General Query packet with the same source IP address (172.16.76.83) is received in VLAN 1 on port Te0/0/1. [1] Commit package(s) on chassis 1
[1] Finished Commit on chassis 1
Checking status of Commit on [1]
Commit: Passed on [1]
Finished Commit
/usr/binos/conf/install_util.sh: line 594: /bootflash/.installer/install_add_pkg_list.txt: No such file or directory
Install will reload the system now!
SUCCESS: install_add_activate_commit Tue Aug 13 23:14:49 Central 2019
Aug 13 23:14:49.485: %INSTALL-5-INSTALL_COMPLETED_INFO: Chassis 1 R0/0: install_engine: Completed install one-shot PACKAGE bootflash:C9800-40-universalk9_wlc.16.11.01c.SPA.bin
Chassis 1 reloading, reason - Reload command
Aug 13 23:14:51.994: %PMAN-5-EXITACTION: F0/0: pvp: Process manager is exiting:
Aug 13 23:14:52.000: %PMAN-5-EXITACTION: C0/0: pvp: Process manager is exiting:
Aug 13 23:14:53.100: %PMAN-5
Initializing Hardware ...
使用本節內容,確認您的組態是否正常運作。
控制器重新啟動後,您可以驗證控制器的當前安裝模式。運行show version命令以確認轉換成功。
9800-40#show version | include System image|Installation mode
System image file is "bootflash:packages.conf"
Installation mode is INSTALL
9800-40#show version | include System image|Installation mode
System image file is "bootflash:/C9800-40-universalk9_wlc.16.11.01c.SPA.bin"
Installation mode is BUNDLE
目前尚無適用於此組態的具體疑難排解資訊。