第一步:通過FTP的相關(guān)命令將軟件下載到本地交換機(jī)上。
在交換機(jī)的<>模式下,ftp服務(wù)器ip地址登錄,通過 get 命令獲取需要導(dǎo)入的文件全名(包含后綴名)
<H3C> ftp 202.10.10.53
<H3C> cd S5500SI-CMW520-R2222P10
<H3C>get S5500SI-BTM-621.btm
<H3C>get S5500SI-CMW520-R2222P10.bin
<H3C>bye
第二步:在交換機(jī)上升級(jí)BOOTROM。
<H3C>bootrom update file S5500SI-BTM-621.btm slot 1
This command will update BootRom file, Continue? [Y/N]y
Updating BootRom, please wait...
Upgrade Bootrom succeeded!
第三步:在交換機(jī)上升級(jí)主機(jī)軟件
si5500交換機(jī)的flash的存儲(chǔ)空間小,只有16M,而S5500SI-CMW520-R2222P10.bin大小為13M,它無法容納兩個(gè)版本的文件,可以先刪除文件,操作如下:
<H3C>delete unit1>flash:/s31ei_e-cmw310-r2108P04.bin
執(zhí)行第一步以后的文件并沒有徹底刪除,是存放在回收站里面,當(dāng)執(zhí)行undelete命令后會(huì)進(jìn)行恢復(fù)操作,所以如果需要進(jìn)行版本升級(jí),需要清空回收站
<H3C>reset recycle-bin #清空
<H3C> boot-loader file S5500-SI.bin slot all main
<H3C> display boot-loader
第四步:重新啟動(dòng)交換機(jī)。
<H3C> reboot
第五步 :查看升級(jí)后的版本
<H3C> display version
#配置PC和交換機(jī)地址,保證PC和交換機(jī)之間可以互通
PC地址:192.168.10.1
交換機(jī)地址:192.168.10.2
#在SecureCRT 中輸入命令:
<H3C>tftp 192.168.10.2 get S5130EI_E-CMW710-R3208P10.ipe
<H3C>boot-loader file flash:/S5130EI_E-CMW710-R3208P10.ipe slot all main
? This command will set the boot file of the specified board. Continue? [Y/N]:y
? The specified file will be used as the main boot file at the next reboot on slot 1!
#重啟交換機(jī)
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
? Updating Basic BootRom......
? Updating extended BootRom......
? BootRom file updating finished
#查看實(shí)驗(yàn)結(jié)果,升級(jí)完畢
<H3C>dis version
H3C Comware Software, Version 7.1.070, Release 3208P10
Copyright (c) 2004-2018 New H3C Technologies Co., Ltd. All rights reserved.
H3C S5130-28S-PWR-EI uptime is 1 week, 3 days, 18 hours, 36 minutes
Last reboot reason : User reboot
3.2? 通過Bootware菜單升級(jí)
#華三官網(wǎng)下載所需要的升級(jí)版本,本案例以S5130-EI為例。如若是其他型號(hào),根據(jù)具體的型號(hào)下載對(duì)應(yīng)版本。
點(diǎn)擊同意,下載即可。
#將下載的壓縮包解壓成文件夾,能夠看到兩個(gè)文件,我們需要使用的是ipe后綴的文件。
#在3CDaemon利用TFTP上傳所要升級(jí)的版本文件夾
上傳、下載目錄選擇文件夾S5130EI_E-CMW710-R3208P10
#斷電重啟交換機(jī),當(dāng)出現(xiàn)Press Ctrl-B to enter Extended Boot menu...3時(shí),迅速按Ctrl+B(也可以開機(jī)啟動(dòng)的時(shí)候一直按著ctrl+B),進(jìn)入bootware菜單后,提示輸入密碼。密碼默認(rèn)為空,直接回車即可,然后顯示如下界面:
#輸入1,回車
#輸入1,回車
Load File Name? ? ? :S5130EI_E-CMW710-R3208P10.ipe
Server IP Address? :192.168.10.2
Local IP Address? ? :192.168.10.1
Subnet Mask? ? ? ? :255.255.255.0
Gateway IP Address? :0.0.0.0
#打開3CDaemon,可以看到數(shù)據(jù)正在傳輸,當(dāng)顯示如下界面時(shí),數(shù)據(jù)傳輸完畢
#當(dāng)命令行界面出現(xiàn)Please input the file attribute (Main/Backup/None)時(shí),輸入main,回車
#輸入0,重啟交換機(jī)。查看結(jié)果,升級(jí)完畢
<H3C>dis version
H3C Comware Software, Version 7.1.070, Release 3208P10
Copyright (c) 2004-2018 New H3C Technologies Co., Ltd. All rights reserved.
H3C S5130-28S-PWR-EI uptime is 0 week, 0 days, 0 hours, 5 minutes
Last reboot reason : User reboot