04-軟件升級快速配置指南
本章節下載 (688.51 KB)
軟件升級快速配置指南
Copyright © 2024 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
目 錄
2 使用BootRom菜單和XModem協議升級設備軟件版本
3 使用BootRom菜單通過TFTP/FTP協議升級設備軟件版本
3.5.2 通過BootRom菜單下載並升級BootRom程序
本案例介紹用命令行方式升級設備軟件版本的方法。
如圖1所示,主機和設備之間僅使用配置電纜連接。現要求:PC作為文件服務器,並啟動TFTP服務器功能,Device作為TFTP客戶端,通過TFTP方式將軟件升級包下載到Device,並升級軟件版本。
升級之前,請您認真閱讀版本說明書,確保升級軟件包和設備當前軟件版本之間的兼容性,了解升級對現行係統的影響以及本版本升級的注意事項。
升級過程中需要重啟設備,請您避開業務高峰,選擇合適時間段進行。
獲取升級軟件包有如下方式:
· 登錄H3C官網//www.yolosolive.com,獲取待升級的啟動軟件包。
· 聯係H3C技術支持人員獲取待升級的啟動軟件包。
設備支持通過FTP、TFTP、SFTP等方式備份設備的重要文件和上傳最新的軟件版本,本文僅以TFTP協議為例進行介紹。其它文件傳輸方式請參見產品配置指導。
# 啟動文件服務器上的TFTP服務器功能(以3CDaemon軟件為例),設置TFTP服務器上傳/下載路徑等參數,並開啟服務。
圖2 配置TFTP服務器上傳/下載路徑
圖3 開啟TFTP服務
# 創建管理VLAN 99。
<Switch> system-view
[Switch] vlan 99
[Switch-vlan99] quit
# 創建管理VLAN的接口。
[Switch] interface vlan-interface 99
# 配置Vlan-interface99接口IP地址為192.168.1.1/24。
[Switch-Vlan-interface99] ip address 192.168.1.1 24
[Switch-Vlan-interface99] quit
# 進入設備與主機相連的以太網接口視圖(請以設備實際情況為準,此處僅作示例)
[Switch] interface gigabitethernet 1/0/1
# 配置接口工作在二層模式。
[Switch-GigabitEthernet1/0/1] port link-mode bridge
# 將該接口加入VLAN 99。
[Switch-GigabitEthernet1/0/1] port access vlan99
[Switch-GigabitEthernet1/0/1] quit
# 配置本地主機IP地址為:192.168.1.2/24。
圖4 配置主機IP地址
# 使用“Win+R”快捷鍵打開運行窗口,輸入cmd打開命令行終端,測試網絡的連通性,確保主機與設備之間路由可達。
C:\ Documents and Setting\Administrato> ping 192.168.1.1
正在 Ping 192.168.1.1 具有 32 字節的數據:
來自 192.168.1.1 的回複: 字節=32 時間=31ms TTL=253
來自 192.168.1.1 的回複: 字節=32 時間=30ms TTL=253
來自 192.168.1.1 的回複: 字節=32 時間=30ms TTL=253
來自 192.168.1.1 的回複: 字節=32 時間=30ms TTL=253
192.168.1.1 的 Ping 統計信息:
數據包: 已發送 = 4,已接收 = 4,丟失 = 0 (0% 丟失),
往返行程的估計時間(以毫秒為單位):
最短 = 30ms,最長 = 31ms,平均 = 30ms
# 在設備上ping TFTP服務器地址(即主機IP地址),能夠ping通。
<Switch> ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=10.701 ms
56 bytes from 192.168.1.2 icmp_seq=1 ttl=64 time=2.678 ms
56 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=2.282 ms
56 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=1.617 ms
56 bytes from 192.168.1.2: icmp_seq=4 ttl=64 time=1.701 ms
--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.617/3.796/10.701/3.474 ms
# 執行save命令保存設備當前配置信息。
<Switch> save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
# 通過display version命令查看設備當前版本號(對比升級前後的設備軟件版本可以驗證升級是否成功)。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2021 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
...
# 通過dir命令查看設備剩餘存儲空間,確保足夠的空間(一般為軟件包大小的兩倍以上)保存新的待升級軟件包。
<Switch> dir
Directory of flash:
0 drw- 707584 Jan 29 2013 05:41:21 123.bin
1 drw- 12639 Jan 29 2013 05:41:21 patch.bin
2 drw- 48866304 Jan 02 2013 08:30:11 r6126p20.ipe
3 -rw- 591 Jan 01 2013 03:31:14 serverkey
4 -rw- 6304 Feb 02 2013 06:58:55 startup.cfg
5 -rw- 159335 Feb 02 2013 06:58:55 startup.mdb
6 -rw- 0 Jan 02 2013 06:19:27 topology.dba
7 drw- - Jan 02 2013 05:32:24 versionInfo
...
251904 KB total (25052 KB free)
# 當空間不足時,需要使用delete /unreserved file命令來徹底刪除多餘的文件。
<Switch> delete /unreserved patch.bin
The file cannot be restored. Delete flash:/patch.bin? [Y/N]:y
Deleting the file permanently will take a long time. Please wait...
Deleting file flash:/123.bin...Done.
· .ipe格式的啟動軟件包在升級過程中會先解壓縮為多個.bin文件,請確保預留足夠的存儲空間(一般為軟件包大小的兩倍以上)放置啟動軟件包、解壓文件。
· 使用delete /unreserved file命令刪除文件,被刪除的文件將被徹底刪除,不能再恢複。
· 使用delete file命令刪除文件,被刪除的文件被保存在回收站中,仍會占用存儲空間。如果要徹底刪除回收站中的某個廢棄文件,執行reset recycle-bin命令,以釋放空間。
# 將待升級的軟件包switch.ipe放入之前設置好的TFTP服務器上傳/下載路徑。
# 使用TFTP方式將文件服務器上的軟件版本switch.ipe文件下載到設備上。
<Switch> tftp 192.168.1.2 get switch.ipe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58.7M 100 58.7M 0 0 1193k 0 0:00:50 0:00:50 --:--:-- 1127k
# 指定設備下次啟動時所用的主用啟動文件為switch.ipe。
<Switch> boot-loader file flash:/switch.ipe all main
# 啟動軟件包解壓設置完成後會提示是否刪除文件,若後期升級後需切換回本軟件版本,建議選擇“N”。
<Switch> Do you want to delete flash:/switch.ipe now? [Y/N]:N
# 重啟設備。
<Switch> reboot
# 設備重啟後,使用display version命令查看設備版本信息。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2021 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
...
# 使用display boot-loader命令查看本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/boot.bin
flash:/system.bin
Main startup software images:
flash:/boot.bin
flash:/system.bin
Backup startup software images:
None
#
interface vlan-interface 99
ip address 192.168.1.1 24
#
interface gigabitethernet 1/0/1
port link-mode bridge
port access vlan 99
#
· 產品配套“基礎配置指導”中的“軟件升級”。
· 產品配套“基礎配置命令參考”中的“軟件升級”。
本案例介紹用BootRom菜單和XModem協議方式升級設備軟件版本的方法。
如圖5所示,主機和設備之間僅使用配置電纜連接。現要求:通過XModem協議方式將文件switch.ipe下載到Device,並升級軟件版本。
圖5 通過Console口登錄設備組網圖
升級之前,請您認真閱讀版本說明書,確保升級軟件包和設備當前軟件包版本之間的兼容性,了解升級對現行係統的影響以及本版本升級的注意事項。
升級過程中需要重啟設備,請您避開業務高峰,選擇合適時間段進行。
使用XMODE方式傳輸文件較慢,一般情況下不推薦此種方式升級,建議使用網線傳輸文件,詳見1 使用命令行方式升級設備軟件版本。
獲取升級軟件包有如下方式:
· 登錄H3C官網//www.yolosolive.com,獲取待升級的啟動軟件包。
· 聯係H3C技術支持人員獲取待升級的啟動軟件包。
請提前下載好管理軟件,本例以超級終端為例。
# 通過display version命令查看設備當前版本號(對比升級前後的設備軟件版本可以驗證升級是否成功)。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2021 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
...
#重啟設備後,根據提示按住Ctrl+B進入設備的BootRom菜單
EXTENDED BOOT MENU
1. Download image to flash
2. Select image to boot
3. Display all files in flash
4. Delete file from flash
5. Restore to factory default configuration
6. Enter BootRom upgrade menu
7. Skip current system configuration
8. Set switch startup mode
0. Reboot
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format file system
Ctrl+P: Change authentication for console login
Ctrl+R: Download image to SDRAM and run
Ctrl+C: Display Copyright
#選擇1下載鏡像文件到flash
Enter your choice(0-8): 1
1. Set TFTP protocol parameters
2. Set FTP protocol parameters
3. Set XMODEM protocol parameters
0. Return to boot menu
#選擇3采用XModem協議完成啟動軟件包的加載,進入下載速率設置菜單
Enter your choice(0-3): 3
Please select your download baudrate:
1.* 9600
2. 19200
3. 38400
4. 57600
5. 115200
0. Return to boot menu
#根據實際情況,選擇合適的下載速率,本例選擇5,修改下載速率為115200bit/s
Enter your choice(0-5): 5
Download baudrate is 115200 bps
Please change the terminal's baudrate to 115200 bps and select XMODEM protocol
Press enter key when ready
由於交換機Console口的波特率已經修改為115200bps,而終端的波特率還為9600bps,雙方是無法通信的。因此,根據係統的提示,需要改變終端設置的波特率,使其與交換機選擇的下載波特率一致。
(1) 單擊超級終端的[呼叫/斷開]菜單項,即斷開了超級終端和交換機的連接。
圖6 [呼叫/斷開]菜單項
(2) 進入超級終端軟件的[文件/屬性]菜單,在彈出的對話框單擊[配置]按鈕(如圖7),進入Console口配置對話框,將“每秒位數”配置115200後,單擊[確定]按鈕(如圖8)。
(3) 設置完連接的波特率後,單擊超級終端菜單欄的[呼叫/呼叫]菜單項,重新建立超級終端和交換機的連接。
圖9 [呼叫/呼叫]菜單項
(1) 回車後係統輸出下載確認提示,鍵入<Y>,係統開始軟件包下載;鍵入<N>,係統將返回BootRom主菜單:
Are you sure to download file to flash? Yes or No (Y/N):Y
(2) 鍵入<Y>並回車後,係統開始軟件包下載,終端顯示如下信息:
Now please start transfer file with XMODEM protocol
If you want to exit, Press <Ctrl+X>
Loading ...CCCCCCCCCCCCCCCCCCCCCCCCC
此時,若想退出程序下載,請鍵入<Ctrl+X>,否則繼續進行如下操作。
(3) 從超級終端菜單欄中選擇[傳送/發送文件](如圖10),在彈出的對話框中點擊[瀏覽]按扭(如圖11),選擇需要下載的軟件包(此處以“update.ipe”為例),並將下載使用的協議改為XModem。
圖10 [傳送/發送文件]菜單項
圖11 [發送文件]對話框
(4) 選擇完成後,點擊[發送]按鈕,係統彈出如下圖所示的界麵。
圖12 正在發送文件界麵
(5) 啟動軟件包下載完成後,係統提示用戶設置該啟動軟件包的屬性,即主用(M)、備用(B)或無屬性(N)。鍵入<M>並回車,將所下載的軟件包設置為主用啟動軟件包。
Please input the file attribute (Main/Backup/None) m
The boot.bin image is self-decompressing...
Load File name : boot.bin 設置已下載的Boot軟件包的名稱
Free space: 470519808 bytes
Writing flash...................................................................
.............
Done!
The system-update.bin image is self-decompressing...
Load File name : system.bin 設置已下載的System軟件包的名稱
Free space: 461522944 bytes
Writing flash...................................................................
.............
Done!
Your baudrate should be set to 9600 bps again!
Press enter key when ready
如果在設置啟動軟件包的屬性前設備中已經存在同樣屬性的啟動軟件包,則在用戶的設置生效後,原有啟動軟件包的屬性將會變為“無屬性”。
(6) 參考2.5.3 修改終端設置的波特率,重新將超級終端的波特率調整為9600 bps。
如果下載的速率選擇為9600 bps,用戶不用重新調整超級終端的速率,請跳過此步驟。
(7) 回車後,係統返回BootRom主菜單,在BootRom主菜單中鍵入<0>並回車,重啟設備後,升級後的啟動軟件包生效。
EXTENDED BOOT MENU
EXTENDED BOOT MENU
1. Download image to flash
2. Select image to boot
3. Display all files in flash
4. Delete file from flash
5. Restore to factory default configuration
6. Enter BootRom upgrade menu
7. Skip current system configuration
8. Set switch startup mode
9. Set default boot storage medium
0. Reboot
Ctrl+F: Format file system
Ctrl+P: Change authentication for console login
Ctrl+R: Download image to SDRAM and run
Ctrl+C: Display Copyright
Enter your choice(0-9): 0
# 設備重啟後,使用display version命令查看設備版本信息。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2021 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
...
# 使用display boot-loader命令查看本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/boot.bin
flash:/system.bin
Main startup software images:
flash:/boot.bin
flash:/system.bin
Backup startup software images:
None
· 產品配套“基礎配置指導”中的“軟件升級”。
· 產品配套“基礎配置命令參考”中的“軟件升級”。
本案例介紹用BootRom菜單通過TFTP/FTP協議升級設備軟件版本的方法。
如圖13所示,主機和設備之間僅使用配置電纜連接。現要求:PC作為文件服務器,並啟動FTP服務器功能,Device作為FTP客戶端,通過FTP方式將軟件升級包下載到Device,並升級軟件版本。
圖13 通過Console口登錄設備組網圖
升級之前,請您認真閱讀版本說明書,確保升級軟件包和設備當前軟件包版本之間的兼容性,了解升級對現行係統的影響以及本版本升級的注意事項。
升級過程中需要重啟設備,請您避開業務高峰,選擇合適時間段進行。
在通過Console口搭建本地配置環境時,需要通過終端仿真程序與設備建立連接。
打開終端仿真程序後,請按如下要求設置終端參數:
· 波特率:9600
· 數據位:8
· 停止位:1
· 奇偶校驗:無
· 流量控製:無
設備上電,終端上顯示設備自檢信息,自檢結束後提示用戶鍵入回車,用戶鍵入回車後將出現命令行提示符(如<Sysname>)。
****************************************************************************
* Copyright (c) 2004-2024 New H3C Technologies Co.,Ltd.All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
****************************************************************************
Line aux0 is available.
Press ENTER to get started.
<Sysname>%Mar 30 09:52:58:243 2022 H3C SHELL/5/SHELL_LOGIN:TTY logged in from aux0.
<Sysname>
獲取升級軟件包有如下方式:
· 登錄H3C官網//www.yolosolive.com,獲取待升級的啟動軟件包。
· 聯係H3C技術支持人員獲取待升級的啟動軟件包。
請提前下載好管理軟件,本例以FTP Server為例。
# 通過display version命令查看設備當前版本號(對比升級前後的設備軟件版本可以驗證升級是否成功)。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2024 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
...
· 不同設備不同版本的BootRom菜單不同,請以設備實際顯示內容為準。
· 通過FTP和TFTP協議下載軟件的操作類似,此處以FTP協議為例。
· 不同設備的升級過程可能存在差異,請以設備實際情況為準。
(1) 在用戶PC(假設IP地址為192.168.0.23)上運行FTP Server程序,設置用戶名和密碼,以及正確的文件保存目錄,並把待升級文件保存在FTP Server的工作目錄下。
(2) 在用戶PC上運行終端仿真程序,啟動設備,鍵入<Ctrl+B>,進入BootRom擴展段主菜單。
EXTENDED BOOT MENU
1. Download image to flash
2. Select image to boot
3. Display all files in flash
4. Delete file from flash
5. Restore to factory default configuration
6. Enter BootRom upgrade menu
7. Skip current system configuration
8. Set switch startup mode
9. Set The Operating Device
0. Reboot
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format file system
Ctrl+P: Change authentication for console login
Ctrl+R: Download image to SDRAM and run
Ctrl+C: Display Copyright
Enter your choice(0-9):
(3) 下載並升級BootRom。
EXTENDED BOOT MENU
1. Download image to flash
2. Select image to boot
3. Display all files in flash
4. Delete file from flash
5. Restore to factory default configuration
6. Enter BootRom upgrade menu
7. Skip current system configuration
8. Set switch startup mode
9. Set The Operating Device
0. Reboot
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+F: Format file system
Ctrl+P: Change authentication for console login
Ctrl+R: Download image to SDRAM and run
Ctrl+C: Display Copyright
# 鍵入<1>,加載應用程序到flash。
1. Set TFTP protocol parameters
2. Set FTP protocol parameters
3. Set XMODEM protocol parameters
0. Return to boot menu
Enter your choice(0-3):
# 鍵入<2>,設置FTP協議參數。
在設置參數時,直接輸入新的參數即可;不輸入參數,直接回車則不做修改,保留原有參數。
Load File Name :test.ipe
:test.ipe
Server IP Address :192.168.0.23
Local IP Address :192.168.0.105
Subnet Mask :255.255.255.0
Gateway IP Address :0.0.0.0
FTP User Name :xxx
FTP User Password :***
顯示信息 |
說明 |
Load File Name |
下載文件的名稱,要與下載的文件名一致 |
Server IP Address |
FTP/TFTP服務器或PC的IP地址 |
Local IP Address |
設備的IP地址 |
Subnet Mask |
子網掩碼 |
Gateway IP Address |
網關IP地址,如果設備與下載文件所在PC不在同一個網段中,需要配置網關IP地址 |
FTP User Name |
FTP用戶名 |
FTP User Password |
FTP下載密碼 |
# 設置完FTP協議相關參數後,鍵入<Y>,確認將應用程序下載到flash。
Are you sure to download file to flash? Yes or No (Y/N):
# 鍵入<Main>,將應用程序設置為主用下次啟動配置文件。
Please input the file attribute (Main/Backup/None)
菜單項 |
解釋 |
Main |
加載主用程序文件到當前存儲介質 新加載的程序文件將自動被設置為M類型,原帶有M類型的程序文件中的該屬性將被取消 |
Backup |
加載備用程序文件到當前存儲介質 新加載的程序文件將自動被設置為B類型,原帶有B類型的程序文件中的該屬性將被取消 |
None |
加載文件到當前存儲介質 |
BootRom升級成功後,在BootRom主菜單中鍵入<0>,重啟設備。
# 設備重啟後,使用display version命令查看設備版本信息。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2024 New H3C Technologies Co., Ltd. All rights reserved.
H3C Switch uptime is 0 weeks, 0 days, 0 hours, 19 minutes
Last reboot reason : User reboot
...
# 使用display boot-loader命令查看本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Switch> display boot-loader
Software images on slot 1:
Current software images:
flash:/boot.bin
flash:/system.bin
Main startup software images:
flash:/boot.bin
flash:/system.bin
Backup startup software images:
None
· 產品配套“基礎配置指導”中的“軟件升級”。
· 產品配套“基礎配置命令參考”中的“軟件升級”。
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!