1. 程式人生 > >Cat4500升級註意事項

Cat4500升級註意事項

ssis ava disabled 保存 第二部分 故障 inf plane ucc

第一部分:升級ROMMON

可以通過release note去查看什麽Supervisor建議什麽樣的版本。例如:
ROMMON Release Notes for the WS-X45-SUP7-E, WS-X45-SUP7L-E, and WS-C4500X Family of Switches

Current Release: 15.0(1r)SG16—March 14, 2019
Prior Releases: 15.0(1r)SG15, 15.0(1r)SG14, 15.0(1r)SG13, 15.0(1r)SG11, 15.0(1r)SG10, 15.0(1r)SG7, 15.0(1r)SG6, 15.0(1r)SG5, 15.0(1r)SG2

This publication describes how to download the new ROMMON image from Cisco.com and then upgrade the ROMMON on the WS-X45-SUP7-E, WS-X45-Sup7L-E, WS-C4500X-32 and WS-C4500X-16 switches.

來自 <https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/release/note/OL_24829.html#pgfId-185999>

註意:在SSO模式下升級ROMMON,可能需要
升級步驟:
C4506#copy tftp:cat4500-promupgrade.122-31r.SG3.bin bootflash:cat4500-promupgrade.122-31r.SG3.bin

然後系統會提示要求輸入遠程IP地址,這個遠程IP地址就是TFTP服務器的IP地址
ROMMON文件很小,這個版本的文件大小為445KB,基本上幾秒就傳完了。

C4506(config)#no boot system bootflash:catXXXXXXXXXXXX.bin
將原先的引導鏡像去掉,然後重新引導新的rommon文件

C4506(config)#boot system bootflash:cat4500-promupgrade.122-31r.SG3.bin <------引導ROMMON
C4506(config)#boot system bootflash:catXXXXXXXXXXXX.bin <------引導IOS
一定要先引導rommon升級文件,再引導原來的IOS文件

C4506(config)#config-register 0x2102 <------0x2101是去找最老的IOS啟動,0x2102是啟動boot system指定的IOS
將寄存器值改為自動引導

write保存好配置之後reload

重啟的過程中,系統會自動更新rommon版本,啟動好之後,可以用sh ver命令去查一下ROM的版本,ver信息中顯示ROM:122-31r.SG3,就說明rommon版本已升級成功。

接下來需要把rommon文件從bootflash中刪除,並將其引導參數去掉。(刪掉引導參數是必須的,不然重啟還是會升級ROMMON,如果運行兩次ROMMON升級,不知道會出現啥情況,我也不想去嘗試!)
C4506(config)#no boot system bootflash:cat4500-promupgrade.122-31r.SG3.bin
C4506#delete bootflash:cat4500-promupgrade.122-31r.SG3.bin
C4506#squeeze bootflash:
在bootflash中刪除文件之後,空間並不會馬上釋放出來,需要使用squeeze命令來釋放bootflash中的空間
這樣,rommon版本的升級就完成了

在完成第二部分時,首先註意ISSU的相關限制:

Note An ISSU upgrade from any release prior to IOS XE 3.6.0E to 3.6.0E or later is unsupported for IOS XE supervisor engines (SUP7-E, SUP7L-E and SUP8-E).

……

Four scenarios will illustrate the restriction:

If you are running a release prior to IOS XE 3.6.0E (3.5.1E, for example), you cannot perform an ISSU upgrade to IOS XE 3.6.0E.

If you are running IOS XE 3.6.0E, you cannot perform an ISSU downgrade to IOS XE 3.5.0E.

If you are running IOS XE 3.6.0E, you can perform an ISSU upgrade to IOS XE 3.6.1E (when released).

If you are running a release after IOS XE 3.6.0E (for example, 3.7.0, when released), you cannot perform an ISSU downgrade to IOS XE 3.5.0E.

A permanent “ISSU barrier" exists between pre-IOS XE 3.6.0E and IOS XE 3.6.0 releases: ISSU is supported between versions on the same side of the barrier but it is not supported between versions on opposite sides.

詳情可參考:

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/XE3-8-0E/15-24E/configuration/guide/xe-380-configuration/issu_XE.html?bookSearch=true

第二部分:升級IOS XE

CISCO CATALYST 4500系列零停機IOS升級過程,適用於引擎7-E,7L-E,6L-E和V-10GE冗余配置的情況。
我們應該註意,在升級Supervisor引擎時,必須重啟引擎,以便系統加載新的IOS映像。對於只能接受單個Supervisor引擎的Cisco Catalyst 4503和4506系列,這意味著網絡服務中斷是不可避免的。
Cisco Catalyst 4507R和4510R系列能夠接受最多兩個Supervisor引擎(‘R‘ - 冗余),因此如果安裝了兩個Supervisor引擎的4507R / 4510R,可以執行IOS升級保證零服務中斷。

如下例子是帶有兩個Supervisor引擎7L-E的4507R + E上進行的操作:
1、升級過程步驟:
使用冗余Supervisor引擎升級系統時,必須以特定方式執行升級過程,因為每個Supervisor引擎依次升級。

以下是升級步驟的簡要概述:
• Load the new IOS image on to the Active Supervisor Engine (SE1) ----將IOS上傳到Active的引擎
• Copy IOS image to Standby Supervisor Engine (SE2) ----將IOS拷貝到備份引擎
• Configure Supervisor Engines to load the new image upon reboot ----配置新的啟動路徑
• Set Configuration-Register variable to ensure newest image is loaded upon bootup ----配置寄存器值
• Force reload of Standby Supervisor Engine (SE2) & Switchover to Standby Supervisor Engine (SE2). This now becomes the newActive Supervisor Engine ----強制重啟備引擎 & 切換到備引擎(備引擎成為主引擎)
• Force reload of previously Active Supervisor Engine (SE1). ----強制重啟之前的主引擎

2、開始升級:
2.1、將IOS上傳到Active引擎
4507R# copy tftp bootflash:
Address or name of remote host []? 10.0.0.76
Source filename []? cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin
Destination filename [cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin]?
Accessing tftp://10.0.0.76/cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin...
Loading cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin from 10.0.0.36 (via Vlan2): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 119576292 bytes]
119576292 bytes copied in 356.708 secs (335222 bytes/sec)

註意新的IOS鏡像被保存在bootflash:file system

如果有疑問,只需使用show file system命令,該命令將顯示Catalyst交換機上的文件系統:
4507R# show file system
File Systems:
Size(b) Free(b) Type Flags Prefixes
* 831541248 718979072 disk rw bootflash:
141433856 139310080 rom ro crashinfo:
16915456 16660992 disk rw kinfo:
- - disk rw slot0:
- - disk rw usb0:
- - opaque rw system:
- - opaque rw tmpsys:
524284 523248 flash rw cat4000_flash:
524284 510196 nvram rw slavenvram:
820875264 708313088 flash rw slavebootflash:
524284 523248 flash rw slavecat4000_flash:
- - flash rw slaveslot0:
- - flash rw slaveusb0:
139940864 137817088 opaque ro slavecrashinfo:
- - opaque rw slavercsf:
16915456 16660992 flash rw slavekinfo:
- - opaque rw null:
- - opaque ro tar:
- - network rw tftp:
- - opaque wo syslog:
524284 510196 nvram rw nvram:
- - network rw rcp:
- - network rw http:
- - network rw ftp:
- - opaque ro cns:
- - opaque rw revrcsf:

2.2、將IOS拷貝到備引擎
一旦IOS上傳到主引擎,必須將它copy到備引擎。我們使用命令:copy bootflash: slavebootflash:
4507R# copy bootflash: slavebootflash:
Source filename []? cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin
Destination filename [cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin]?
Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
119576292 bytes copied in 99.404 secs (1202932 bytes/sec)
4507R#


要驗證在兩個Supervisor引擎bootflash系統上正確加載映像,請使用show bootflash&show slavebootflash命令:
4507R# show bootflash:
-#- --length-- ---------date/time--------- path
1 112337548 Feb 26 2013 08:44:27 +00:00 cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin
2 119576292 Mar 21 2013 03:07:21 +00:00 cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin
557035520 bytes available (232263680 bytes used)
Filesystem: bootflash
Mounted: Unknown

4507R# show slavebootflash:
-#- --length-- ---------date/time--------- path
1 112337548 Feb 26 2013 06:46:26 +00:00 cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin
2 119576292 Mar 21 2013 01:09:33 +00:00 cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin
546914304 bytes available (232263680 bytes used)

註意:列出的第一個IOS映像是之前的版本(03.03.00.SG.151-1.SG)。 我們需要在下一步中記住這些信息。

2.3、配置新的啟動路徑
使用命令:boot system flash bootflash:
4507R(config)# boot system flash bootflash:cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin

由於之前存在有啟動之前鏡像的命令,所以需要刪除之前的命令:
4507R(config)# no boot system flash bootflash:cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin

接下來,需要保證配置保存到啟動配置。
4507R# wr mem
Building configuration...
% VRF table-id 0 not activeCompressed configuration from 12839 bytes to 3791 bytes[OK]
*Mar 21 01:15:28.356: %C4K_REDUNDANCY-5-CONFIGSYNC: The private-config has been successfully synchronized to the standby supervisor
*Mar 21 01:15:29.098: %C4K_REDUNDANCY-5-CONFIGSYNC: The startup-config has been successfully synchronized to the standby supervisor

有人可能認為%VRF table-id 0 not activeCompressed 消息在保存運行配置時不應該彈出,因為這是一個裝飾性錯誤,可以安全地忽略。 如果在保存配置時沒有報告此類消息,則表示當前運行的IOS沒有此修飾性錯誤。

另外,每次我們將配置保存到startup-config時,系統都會立即將配置更改同步到備用Supervisor。 當發生這種情況時,我們將收到一條消息,類似於上面的情況,確認同步已成功。

2.4、配置寄存器值
思科Supervisor默認出廠的寄存器值為 configuration register set to 0x2101.我們將關註兩個特定值:0x2101和0x2102。值0x2101指示系統引導板載閃存中的第一個系統映像(bootflash)通常是flash中最老的一個鏡像;0x2102的值指示系統使用BOOT環境變量中指定的映像,該變量基本上是使用boot system flash bootflash:命令中指定的映像。

要在兩個Supervisor引擎上查看環境變量,請使用show bootvar命令:
4507R# show bootvar
BOOT variable = bootflash:cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin,1;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2101
Standby BOOT variable = bootflash:cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin,1;
Standby CONFIG_FILE variable does not exist
Standby BOOTLDR variable does not exist
Standby Configuration register is 0x2101

註意,目前在系統中配置的boot system flash bootflash: 雖然選擇的是新上傳的鏡像,但是寄存器值為0x2101,而實際的老的鏡像還是在系統中的,所以會選擇老的鏡像cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin去加載。
4507R# show bootflash: all
-#- --length-- ---------date/time--------- path
1 112337548 Feb 26 2013 08:44:27 +00:00 cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin
2 119576292 Mar 21 2013 03:07:21 +00:00 cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin
4507R# show slavebootflash:
-#- --length-- ---------date/time--------- path
1 112337548 Feb 26 2013 06:46:26 +00:00 cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin
2 119576292 Mar 21 2013 01:09:33 +00:00 cat4500e-universal.SPA.03.04.00.SG.151-2.SG.bin

為了解決這個問題,將寄存器值改為0x2102 或者刪除老的鏡像。
這裏采用該寄存器值的方式:
4507R(config)# config-register 0x2102

*Mar 21 01:19:55.542: %C4K_REDUNDANCY-5-CONFIGSYNC: The config-reg has been successfully synchronized to the standby supervisor

4507R# wr mem
Building configuration...
% VRF table-id 0 not activeCompressed configuration from 12849 bytes to 3791 bytes[OK]
*Mar 21 01:20:08.352: %C4K_REDUNDANCY-5-CONFIGSYNC: The private-config has been successfully synchronized to the standby supervisor
*Mar 21 01:20:09.091: %C4K_REDUNDANCY-5-CONFIGSYNC: The startup-config has been successfully synchronized to the standby supervisor

2.5、強制重啟備引擎並執行switchover
強制重啟備引擎,會使得它加載新的鏡像。一旦我們確認備引擎加載了新的鏡像,我們就可以執行switchover操作了。
為了強制重啟備引擎,我們使用命令:redundancy reload peer
4507R# redundancy reload peer
Reload peer [confirm]
4507R#
*Mar 21 01:21:02.318: %RF-5-RF_RELOAD: Peer reload. Reason: Unknown Reason
*Mar 21 01:21:05.314: %C4K_REDUNDANCY-3-COMMUNICATION: Communication with the peer Supervisor has been lost
*Mar 21 01:21:05.327: %C4K_REDUNDANCY-3-SIMPLEX_MODE: The peer Supervisor has been lost

重啟整機的命令:“redundancy reload shelf”
備引擎重啟,將會花費一定的時間,對設備不會產生負面影響。
一旦IOS在重啟後加載完成,大概會有如下的提示消息:
*Mar 21 01:24:54.312: %C4K_REDUNDANCY-6-DUPLEX_MODE: The peer Supervisor has been detected

*Mar 21 01:25:36.066: %C4K_IOSMODPORTMAN-6-MODULEONLINE: Module 4 (WS-X45-SUP7L-E S/N: CAT1714L4T4 Hw: 1.1) is online
*Mar 21 01:25:36.094: %C4K_REDUNDANCY-6-MODE: ACTIVE supervisor initializing for sso mode
*Mar 21 01:25:36.344: %C4K_REDUNDANCY-3-COMMUNICATION: Communication with the peer Supervisor has been established
*Mar 21 01:25:37.098: %C4K_REDUNDANCY-6-MODE: ACTIVE supervisor initializing for sso mode

以上消息表明備用Supervisor引擎已成功完成重新引導,並與活動的Supervisor引擎完全同步。 系統顯示剛剛與活動Supervisor引擎建立通信的Supervisor引擎的產品ID(WS-X45-SUP7L-E),序列號和硬件版本。

要驗證備用Supervisor引擎是否正在運行我們剛加載的最新且最好的IOS映像,請使用show module命令:

4507R# show module
Chassis Type : WS-C4507R+E
Power consumed by backplane : 40 Watts
Mod Ports Card Type Model Serial No.
---+-----+--------------------------------------+------------------+-----------
1 48 10/100/1000BaseT Premium POE E Series WS-X4748-RJ45V+E CAT1754L4C7
2 48 10/100/1000BaseT Premium POE E Series WS-X4648-RJ45V+E JAE171515SY
3 6 Sup 7L-E 10GE (SFP+), 1000BaseX (SFP) WS-X45-SUP7L-E CAT1712L2X5
4 6 Sup 7L-E 10GE (SFP+), 1000BaseX (SFP) WS-X45-SUP7L-E CAT1714L4T4
5 48 10/100/1000BaseT Premium POE E Series WS-X4648-RJ45V+E JAE170525D3
M MAC addresses Hw Fw Sw Status
--+--------------------------------+---+------------+----------------+---------
1 4c4e.352e.a2cc to 4c4e.352e.a2fb 1.3 Ok
2 0006.f6e9.7520 to 0006.f6e9.754f 3.1 Ok
3 0006.f620.2e80 to 0006.f620.2e85 1.1 15.0(1r)SG3 03.03.00.SG Ok
4 0006.f620.2e86 to 0006.f620.2e8b 1.1 15.0(1r)SG3 03.04.00.SG Ok
5 0006.f673.51d4 to 0006.f673.5203 3.1 Ok
Mod Redundancy role Operating mode Redundancy status
----+-------------------+-------------------+----------------------------------
3 Active Supervisor SSO Active
4 Standby Supervisor SSO Standby hot

show module命令提供大量信息,包括所有安裝的線卡,Supervisor引擎模型,IOS軟件版本,序列號,操作狀態和冗余模式(默認為SSO)。

我們標粗了我們的備用Supervisor引擎,它恰好位於4號插槽中。 請註意系統為兩個Supervisor引擎報告的軟件映像。 我們當前的主Supervisor引擎運行版本03.03.00.SG,而我們的備用Supervisor引擎運行版本03.04.00.SG(新的IOS加載)!

我們現在已經確認備用Supervisor引擎已經加載了新的IOS並且完全正常運行:

2.6、強制重啟之前的主引擎
在最後的步驟中,我們需要強制重啟主引擎,以便它可以加載新的鏡像。在switchover期間,我們不能看到LEDs亮起來,而是瘋狂的閃爍。SUP ACTIVE LED將從當前主引擎關閉並且在當前的備引擎開啟,這表示備引擎成為新的主引擎。
為了實現引擎switchover,使用命令:redundancy force-switchover
4507R# redundancy force-switchover
This will reload the active unit and force switchover to standby[confirm]
Preparing for switchover..
*Mar 21 01:27:57.007: %SYS-5-SWITCHOVER: Switchover requested by Virtual Exec. Reason: Stateful Switchover.

一旦敲了上面的命令,我們將會從Cat4507R上斷開Telnet,這是預期行為,不用擔心。除了切換我們的telnet會話之外,用戶不會註意到任何服務中斷 - 無論切換期間的網絡負載如何,切換都將完全透明。
要重新連接到交換機,只需telnet回到相同的IP地址即可。 如果通過console線連接,則需要將其連接到新的主Supervisor引擎,以便繼續控制交換機。

想要通過telnet或直接console線連接(到新的活動引擎)監控Supervisor引擎的重新加載進度的我們可以使用show module命令。 通過輸入命令,我們將看到4507R在插槽3中識別出Supervisor引擎(即正在重新加載的SE1),但是,進一步下來我們將看到沒有提供有關引擎的MAC地址或IOS軟件的信息,因為它 還沒有完全啟動到新的IOS。 此外,第一個引擎的冗余狀態為Disabled - 預期結果,因為Supervisor引擎(SE1)尚未啟動。

4507R# show module
Chassis Type : WS-C4507R+E
Power consumed by backplane : 40 Watts
Mod Ports Card Type Model Serial No.
---+-----+--------------------------------------+------------------+-----------
1 48 10/100/1000BaseT Premium POE E Series WS-X4748-RJ45V+E CAT1754L4C7
2 48 10/100/1000BaseT Premium POE E Series WS-X4648-RJ45V+E JAE171515SY
3 Supervisor
4 6 Sup 7L-E 10GE (SFP+), 1000BaseX (SFP) WS-X45-SUP7L-E CAT1714L4T4
5 48 10/100/1000BaseT Premium POE E Series WS-X4648-RJ45V+E JAE170525D3

M MAC addresses Hw Fw Sw Status
--+--------------------------------+---+------------+----------------+---------
1 4c4e.352e.a2cc to 4c4e.352e.a2fb 1.3 Ok
2 0006.f6e9.7520 to 0006.f6e9.754f 3.1 Ok
3 Unknown Unknown Unknown Other
4 0006.f620.2e86 to 0006.f620.2e8b 1.1 15.0(1r)SG3 03.04.00.SG Ok
5 0006.f673.51d4 to 0006.f673.5203 3.1 Ok
Mod Redundancy role Operating mode Redundancy status
----+-------------------+-------------------+----------------------------------
3 Standby Supervisor SSO Disabled
4 Active Supervisor SSO Active

此時,我們可以繼續發出show module命令並監視輸出變化。 在某些時候,系統將顯示加載了新IOS的Supervisor引擎(SE1),但是,冗余狀態將經歷以下階段,直到它準備就緒(standby hot):
Standby Supervisor Redundancy Status Cycle:
1. Disabled
2. In progress to Standby cold
3. Standby cold
4. In progress to Issu negotiation la
5. In progress to Standby config
6. In progress to Standby bulk
7. Standby hot

當Supervisor引擎達到“standby hot”狀態時,它就可以在活動的Supervisor引擎發生故障時接管工作了。

以下是加載Supervisor引擎IOS並與活動Supervisor引擎完全同步時的預期輸出:
4507R# show module
Chassis Type : WS-C4507R+E
Power consumed by backplane : 40 Watts

Mod Ports Card Type Model Serial No.
---+-----+--------------------------------------+------------------+-----------
1 48 10/100/1000BaseT Premium POE E Series WS-X4748-RJ45V+E CAT1754L4C7
2 48 10/100/1000BaseT Premium POE E Series WS-X4648-RJ45V+E JAE171515SY
3 6 Sup 7L-E 10GE (SFP+), 1000BaseX (SFP) WS-X45-SUP7L-E CAT1712L2X5
4 6 Sup 7L-E 10GE (SFP+), 1000BaseX (SFP) WS-X45-SUP7L-E CAT1714L4T4
5 48 10/100/1000BaseT Premium POE E Series WS-X4648-RJ45V+E JAE170525D3

M MAC addresses Hw Fw Sw Status
--+--------------------------------+---+------------+----------------+---------
1 4c4e.352e.a2cc to 4c4e.352e.a2fb 1.3 Ok
2 0006.f6e9.7520 to 0006.f6e9.754f 3.1 Ok
3 0006.f620.2e80 to 0006.f620.2e85 1.1 15.0(1r)SG3 03.04.00.SG Ok
4 0006.f620.2e86 to 0006.f620.2e8b 1.1 15.0(1r)SG3 03.04.00.SG Ok
5 0006.f673.51d4 to 0006.f673.5203 3.1 Ok

Mod Redundancy role Operating mode Redundancy status
----+-------------------+-------------------+----------------------------------
3 Standby Supervisor SSO Standby hot
4 Active Supervisor SSO Active



Cat4500升級註意事項