05-軟件升級配置舉例
本章節下載: 05-軟件升級配置舉例 (433.26 KB)
目 錄
本文檔介紹軟件升級的典型配置舉例。
本文檔不嚴格與具體軟、硬件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解軟件升級和FTP/TFTP的特性。
如圖1所示,Switch和文件服務器通過交換機相連,Switch作為TFTP客戶端,文件服務器作為TFTP服務器。現要求:通過TFTP方式將存儲在文件服務器上的文件switch.ipe下載到TFTP客戶端,為Switch升級軟件版本。
為了使交換機在重啟後使用新版本軟件,需要指定下次啟動時所用的主用啟動文件為升級後的軟件版本。
表1 適用產品及版本
產品 |
軟件版本 |
S12500G-AF係列交換機 |
Release 7639P01及以上版本 |
S10500X係列交換機 |
Release 7639P01及以上版本 |
S12500-XS係列交換機 |
Release 7639P01及以上版本 |
S7600E-X係列交換機 |
Release 7639P01及以上版本 |
S7500X-X係列交換機 |
Release 7639P01及以上版本 |
S10500係列交換機 |
Release 7639P01及以上版本 |
S7600-X係列交換機 |
Release 7639P01及以上版本 |
S12500-S係列交換機 |
Release 7639P01及以上版本 |
S7500E-X係列交換機 |
Release 7639P01及以上版本 |
S7500E係列交換機 |
Release 7639P01及以上版本 |
S7500X係列交換機 |
Release 7639P01及以上版本 |
S7600係列交換機 |
Release 7639P01及以上版本 |
S7000ET係列交換機 |
Release 7639P01及以上版本 |
· 當設備剩餘的存儲空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。
· 軟件升級時需要重啟設備,建議使用save命令保存設備的當前配置。
# 配置文件服務器的IP地址為192.168.100.14/24,與Switch路由可達,具體配置方法略。
# 啟動文件服務器上的TFTP服務器功能(以3CDaemon軟件為例),設置TFTP服務器下載路徑等參數,並開啟服務。
圖2 配置TFTP服務器
# 配置Switch管理口的IP地址。
<Switch> system-view
System View: return to User View with Ctrl+Z.
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
[Switch] quit
# 在Switch 上ping TFTP服務器地址,能夠ping通。
<Switch> ping 192.168.100.14
Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.100.14: icmp_seq=0 ttl=64 time=10.701 ms
56 bytes from 192.168.100.14: icmp_seq=1 ttl=64 time=2.678 ms
56 bytes from 192.168.100.14: icmp_seq=2 ttl=64 time=2.282 ms
56 bytes from 192.168.100.14: icmp_seq=3 ttl=64 time=1.617 ms
56 bytes from 192.168.100.14: icmp_seq=4 ttl=64 time=1.701 ms
--- Ping statistics for 192.168.100.14 ---
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.
# 使用TFTP方式將文件服務器上的軟件版本switch.ipe文件下載到Switch上,以缺省文件名switch.ipe保存。
<Switch> tftp 192.168.100.14 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下次啟動時所用的主用啟動文件為switch.ipe。
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the file flash:/switch.ipe on slot 1.....Done.
Images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 1.
Decompressing file switch.bin to flash:/boot.bin.........Done.
Decompressing file switch.bin to flash:/system.bin.................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.
# 重啟設備。
<Switch> reboot
# 設備重啟後,使用display version命令查看設備版本信息。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2019 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
Boot image: flash:/boot.bin
Boot image version: 7.1.070, Release xxxx
Compiled Jun 18 2019 17:52:09
System image: flash:/system.bin
System image version: 7.1.070, Release xxxx
Compiled Jun 18 2019 17:52:09
……略……
# 顯示本次啟動和下次啟動所采用的啟動軟件包的名稱。
<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 M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
如圖3所示,Switch和文件服務器通過交換機相連,Switch作為FTP客戶端,文件服務器作為FTP服務器。現要求:
· 通過FTP方式為Switch升級軟件版本,將存儲在文件服務器上的文件switch.ipe下載到FTP客戶端。
· 配置FTP客戶端登錄FTP服務器的用戶名為123456,密碼為123456。
為了使交換機在重啟後使用新軟件版本,需要指定下次啟動時所用的主用啟動文件為升級後的軟件版本。
表2 適用產品及版本
產品 |
軟件版本 |
S12500G-AF係列交換機 |
Release 7639P01及以上版本 |
S10500X係列交換機 |
Release 7639P01及以上版本 |
S12500-XS係列交換機 |
Release 7639P01及以上版本 |
S7600E-X係列交換機 |
Release 7639P01及以上版本 |
S7500X-X係列交換機 |
Release 7639P01及以上版本 |
S10500係列交換機 |
Release 7639P01及以上版本 |
S7600-X係列交換機 |
Release 7639P01及以上版本 |
S12500-S係列交換機 |
Release 7639P01及以上版本 |
S7500E-X係列交換機 |
Release 7639P01及以上版本 |
S7500E係列交換機 |
Release 7639P01及以上版本 |
S7500X係列交換機 |
Release 7639P01及以上版本 |
S7600係列交換機 |
Release 7639P01及以上版本 |
S7000ET係列交換機 |
Release 7639P01及以上版本 |
· 當設備剩餘的內存空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。
· 確保主機和Switch的FTP用戶名、密碼及文件名等參數保持一致。
# 配置文件服務器的IP地址為192.168.100.14/24,使得與Switch路由可達,具體配置方法略。
# 啟動文件服務器上的FTP功能(以3CDaemon軟件為例),設置FTP服務器下載路徑、FTP用戶名和密碼,並開啟FTP服務。
圖4 配置FTP服務器
# 配置Switch接口IP地址。
<Switch> system-view
System View: return to User View with Ctrl+Z.
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
[Switch] quit
# 在Switch上ping文件服務器地址,能夠ping通。
<Switch> ping 192.168.100.14
Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.100.14: icmp_seq=0 ttl=64 time=10.701 ms
56 bytes from 192.168.100.14: icmp_seq=1 ttl=64 time=2.678 ms
56 bytes from 192.168.100.14: icmp_seq=2 ttl=64 time=2.282 ms
56 bytes from 192.168.100.14: icmp_seq=3 ttl=64 time=1.617 ms
56 bytes from 192.168.100.14: icmp_seq=4 ttl=64 time=1.701 ms
--- Ping statistics for 192.168.100.14 ---
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...
Configuration is saved to mainboard device successfully.
# 以用戶名123456、密碼123456登錄FTP服務器。
<Switch> ftp 192.168.100.14
Connected to 192.168.100.14 (192.168.100.14).
220 3Com 3CDaemon FTP Server Version 2.0
User (192.168.100.14:(none)): 123456
331 User name ok, need password
Password:
230 User logged in
Remote system type is UNIX.
Using binary mode to transfer files.
# 將文件switch.ipe從FTP服務器下載到Switch上。
ftp> get switch.ipe
227 Entering passive mode (192,168,100,14,8,86)
125 Using existing data connection
226 Closing data connection; File transfer successful.
50445056 bytes received in 53.6 seconds (1.25 Mbyte/s)
ftp> quit
# 指定Switch下次啟動時所用的主用啟動文件為switch.ipe。
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the file flash:/switch.ipe on slot 1.....Done.
Images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 1.
Decompressing file switch.bin to flash:/boot.bin.........Done.
Decompressing file switch.bin to flash:/system.bin.................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on on slot 1.
# 重啟設備。
<Switch> reboot
# 設備重啟後,使用display version命令查看設備版本信息。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2019 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
Boot image: flash:/boot.bin
Boot image version: 7.1.070, Release xxxx
Compiled Jun 18 2019 17:52:09
System image: flash:/system.bin
System image version: 7.1.070, Release xxxx
Compiled Jun 18 2019 17:52:09
……略……
# 顯示本次啟動和下次啟動所采用的啟動軟件包的名稱。
<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 M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
如圖5所示,Switch和文件服務器通過交換機相連,Switch作為FTP服務器,文件服務器作為FTP客戶端。
現要求:
· 通過FTP方式為Switch升級軟件版本,將存儲在FTP客戶端上的文件switch.ipe上傳到FTP服務器。
· 配置FTP客戶端登錄FTP服務器的用戶名為abc,密碼為123456。
為了使交換機在重啟後使用新軟件版本,需要指定下次啟動時所用的主用啟動文件為升級後的軟件版本。
表3 適用產品及版本
產品 |
軟件版本 |
S12500G-AF係列交換機 |
Release 7639P01及以上版本 |
S10500X係列交換機 |
Release 7639P01及以上版本 |
S12500-XS係列交換機 |
Release 7639P01及以上版本 |
S7600E-X係列交換機 |
Release 7639P01及以上版本 |
S7500X-X係列交換機 |
Release 7639P01及以上版本 |
S10500係列交換機 |
Release 7639P01及以上版本 |
S7600-X係列交換機 |
Release 7639P01及以上版本 |
S12500-S係列交換機 |
Release 7639P01及以上版本 |
S7500E-X係列交換機 |
Release 7639P01及以上版本 |
S7500E係列交換機 |
Release 7639P01及以上版本 |
S7500X係列交換機 |
Release 7639P01及以上版本 |
S7600係列交換機 |
Release 7639P01及以上版本 |
S7000ET係列交換機 |
Release 7639P01及以上版本 |
· 當設備剩餘的內存空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。
· 確保主機和Switch的FTP用戶名、密碼及文件名等參數保持一致。
· 在Switch和主機之間進行FTP傳輸,需要選擇binary方式傳輸文件。
# 配置Switch接口IP地址。
<Switch> system-view
System View: return to User View with Ctrl+Z.
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
# 在Switch上添加一個FTP用戶abc,並設置其認證密碼為123456。
[Switch] local-user abc
[Switch-luser-manage-abc] password simple 123456
# 配置用戶角色為network-admin。
[Switch-luser-manage-abc] authorization-attribute user-role network-admin
# 為保證FTP客戶端僅使用授權的用戶角色network-admin,刪除缺省用戶角色network-operator。
[Switch-luser-manage-abc] undo authorization-attribute user-role network-operator
# 配置服務類型為FTP。
[Switch-luser-manage-abc] service-type ftp
[Switch-luser-manage-abc] quit
# 啟動Switch的FTP服務功能。
[Switch] ftp server enable
[Switch] quit
# 執行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.
# 配置文件服務器的IP地址為192.168.100.14/24,使得到Switch路由可達,具體配置方法略。
# 從文件服務器登錄FTP server,本例以Windows命令提示符界麵為例。
C:\Documents and Settings\Administrator> ftp 192.168.100.66
Connected to 192.168.100.66.
220 FTP service ready.
# 以用戶名abc、密碼123456登錄FTP服務器。
User (192.168.100.66:(none)): abc
331 Password required for abc.
Password:
230 User logged in.
# 使用lcd命令,將FTP客戶端本地的工作路徑切換到軟件版本所在的目錄下。
ftp> lcd E:\
Local directory now E:\
# 將傳輸模式設置為binary方式。
ftp> binary
200 TYPE is now 8-bit binary
# 將本地switch.ipe文件上傳到FTP服務器上,缺省以文件名switch.ipe保存。
ftp> put switch.ipe
200 PORT command successful
150 Connecting to port 2903
226 File successfully transferred
ftp: 發送 50445056 字節,用時 1.05Seconds 67282.77Kbytes/sec.
# 使用ls命令查看FTP服務器上是否有文件。
ftp> ls switch.ipe
200 PORT command successful
150 Connecting to port 3391
switch.ipe
226 1 matches total
ftp: 收到 24 字節,用時 0.00Seconds 24000.00Kbytes/sec.
# 終止與FTP Server的連接,並退回到用戶視圖。
ftp> bye
# 指定Switch下次啟動時所用的主用啟動文件為switch.ipe。
<Switch> boot-loader file flash:/switch.ipe slot 1 main
Verifying the IPE file and the images.....Done.
Verifying the file flash:/switch.ipe on slot 1.....Done.
Images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 1.
Decompressing file switch.bin to flash:/boot.bin.........Done.
Decompressing file switch.bin to flash:/system.bin.................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.
# 重啟設備。
<Switch> reboot
# 設備重啟後,使用display version命令查看設備版本信息。
<Switch> display version
H3C Comware Software, Version 7.1.070, Release xxxx
Copyright (c) 2004-2019 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
Boot image: flash:/boot.bin
Boot image version: 7.1.070, Release xxxx
Compiled Jun 18 2019 17:52:09
System image: flash:/system.bin
System image version: 7.1.070, Release xxxx
Compiled Jun 18 2019 17:52:09
……略……
# 顯示本次啟動和下次啟動所采用的啟動軟件包的名稱。
<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 M-GigabitEthernet0/0/0
ip address 192.168.100.66 255.255.255.0
#
local-user abc class manage
password hash $h$6$YMVbbwFL/vviWcQu$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg3fZjxYCp5WzbuE2GoowVi2YA/BK+mnSZJZqi5jRDuCg==
service-type ftp
authorization-attribute user-role network-admin
#
ftp server enable
#
如圖6所示,文件服務器與Device的管理以太網接口M-GigabitEthernet0/0/0相連,Host通過串口線連接Device的Console口。現由於設備問題,不能正常啟動Device。
現要求:使用BootWare菜單升級Device的軟件版本。
表4 適用產品及版本
產品 |
軟件版本 |
S12500G-AF係列交換機 |
Release 7639P01及以上版本 |
S10500X係列交換機 |
Release 7639P01及以上版本 |
S12500-XS係列交換機 |
Release 7639P01及以上版本 |
S7600E-X係列交換機 |
Release 7639P01及以上版本 |
S7500X-X係列交換機 |
Release 7639P01及以上版本 |
S10500係列交換機 |
Release 7639P01及以上版本 |
S7600-X係列交換機 |
Release 7639P01及以上版本 |
S12500-S係列交換機 |
Release 7639P01及以上版本 |
S7500E-X係列交換機 |
Release 7639P01及以上版本 |
S7500E係列交換機 |
Release 7639P01及以上版本 |
S7500X係列交換機 |
Release 7639P01及以上版本 |
S7600係列交換機 |
Release 7639P01及以上版本 |
S7000ET係列交換機 |
Release 7639P01及以上版本 |
· 確保在文件服務器上開啟TFTP服務器功能。
· 當設備剩餘的存儲空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後,再執行升級軟件操作。
· 將交換機的升級啟動文件拷貝到文件服務器上,並正確設置TFTP服務器的訪問路徑。
# 使用串口線,從主機連至Device備用主控板的Console口。
# 通過超級終端或PuTTY等終端仿真程序與設備建立連接。這些程序的詳細介紹和使用方法請參見該程序的使用指導。打開終端仿真程序後,請按如下要求設置終端參數:
· 波特率:9600
· 數據位:8
· 停止位:1
· 奇偶校驗:無
· 流量控製:無
# 配置文件服務器的IP地址為192.168.100.14/24,具體配置步驟略。
# 啟動文件服務器的TFTP服務器,設置TFTP服務器下載路徑等參數,並開啟服務。
(1) 升級備用主控板
# 使用直通線從TFTP服務器連接到備用主控板的管理以太網接口M-GigabitEthernet 0/0/0上(已使用串口線從主機連接至Device備用主控板的Console口)。
# 忽略對備用主控板進行啟動軟件包版本一致性檢查(即不檢查備用主控板的版本是否與主用主控板的啟動軟件包版本一致)。
<Device> system-view
[Device] version check ignore
# 將設備的當前配置保存到指定文件。
[Device] 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.
[Device] quit
# 重啟設備的備用主控板。
<Device> reboot slot 7
# 交換機上加電重啟的過程中,在配置終端的屏幕上將顯示:
System is Starting....
Press Ctrl+D to access BASIC-BOOTWARE MENU
Press Ctrl+T to access BOOTWARE DIAG-TEST MENU
Booting Normal Extend Bootware
****************************************************************************
* *
* BootWare, Version 1.23 *
* *
****************************************************************************
Compiled Date : Aug 26 2020
Memory Type : DDR4 SDRAM
Memory Size : 16384MB
Memory Speed : 2133MHz
flash Size : 7296MB
CPLD 1 Version : 4.0
CPLD 2 Version : 4.0
CPLD 3 Version : 2.0
PCB 1 Version : Ver.A
PCB 2 Version : Ver.A
BootWare Validating...
Press Ctrl+B to access EXTENDED-BOOTWARE MENU...
# 當出現“Press Ctrl+B to access EXTENDED-BOOTWARE MENU”時,鍵入<Ctrl+B>,係統提示:
Password recovery capability is enabled.
Note: The current operating device is flash
Enter < Storage Device Operation > to select device.
==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+C: Display Copyright
Ctrl+F: Format File System
Enter your choice(0-9):
# 在BootWare菜單下鍵入<3>,進入以太網口子菜單,係統顯示如下:
Enter your choice(0-9): 3
==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Update Backup Image File |
|<4> Download Files(*.*) |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
|<Ensure The Parameter Be Modified Before Downloading!> |
============================================================================
Enter your choice(0-5):
# 在以太網口子菜單下鍵入<5>就可以進入以太網口配置菜單,並按照如下方式分別配置Load File Name、Target File Name、Server IP Address、Local IP Address、Subnet Mask、Gateway IP Address:
· Load File Name:待升級Device的啟動軟件包的名稱,該文件位於TFTP服務器的工作目錄下。
· Target File Name:啟動軟件包上傳至Device的存儲介質後的文件名。
· Server IP Address:TFTP服務器的IP地址。
· Local IP Address:Device連接文件服務器的端口IP地址。
· Subnet Mask:子網掩碼。
· Gateway IP Address:網關地址,當TFTP服務器與待升級的Device不在同一網段時,必須配置該地址。
Enter your choice(0-5): 5
==========================<ETHERNET PARAMETER SET>==========================
|Note: '.' = Clear field. |
| '-' = Go to previous field. |
| Ctrl+D = Quit. |
============================================================================
· 使用TFTP方式下載軟件版本:
Protocol (FTP or TFTP) :tftp
· 加載軟件版本new.ipe:
Load File Name : new.ipe
:
Target File Name : new.ipe
:
· 輸入TFTP服務器地址:
Server IP Address :192.168.1.100 192.168.100.14
· 輸入Device管理IP地址(隻需要和TFTP服務器路由可達,這裏以192.168.100.66為例):
Local IP Address :192.168.1.1 192.168.100.66
· 輸入子網掩碼255.255.255.0:
Subnet Mask :255.255.255.0
Gateway IP Address :0.0.0.0
# 按下Enter鍵,進入如下界麵:
==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Update Backup Image File |
|<4> Download Files(*.*) |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
|<Ensure The Parameter Be Modified Before Downloading!> |
============================================================================
# 在以太網口配置子菜單下,鍵入<2>為升級主啟動文件:
Enter your choice(0-5): 2
Loading.....................................................................
............................................................................
............................................................................
.................................................Done.
227301376 bytes downloaded!
Image file BOOT-test.bin is self-decompressing...
Saving file flash:/BOOT-test.bin ..........................
........................................................Done.
Image file SYSTEM-test.bin is self-decompressing...
Saving file flash:/SYSTEM-test.bin .........................................
............................................................................
............................................................................
............................................................................
............Done.
==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash |
|<1> Download Image Program To SDRAM And Run |
|<2> Update Main Image File |
|<3> Update Backup Image File |
|<4> Download Files(*.*) |
|<5> Modify Ethernet Parameter |
|<0> Exit To Main Menu |
|<Ensure The Parameter Be Modified Before Downloading!> |
============================================================================
# 鍵入<0>,返回BootWare主菜單:
Enter your choice(0-5): 0
==========================<EXTENDED-BOOTWARE MENU>==========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Skip Authentication for Console Login |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTENDED ASSISTANT MENU
Ctrl+C: Display Copyright
Ctrl+F: Format File System
Enter your choice(0-9):
# 鍵入<1>,進入引導係統:
Enter your choice(0-9): 1
Loading the main image files...
Loading file flash:/SYSTEM-test.bin........................
............................................................................
............................................................................
.........................Done.
Loading file flash:/BOOT-test.bin..........................
....Done.
Image file flash:/BOOT-test.bin is self-decompressing......
....................................................Done.
System image is starting...
Line aux1 is available.
Press ENTER to get started.
(2) 升級主用主控板
# 從TFTP服務器使用串口線連接至Device主用主控板的Console口,使用直通線連接到主用主控板的管理以太網接口上,升級方式與升級備用主控板一致,此處不再重複。
# 設備重啟後,使用display version命令查看設備版本信息。
<Device> display version
H3C Comware Software, Version 7.1.070, Release 7595
Copyright (c) 2004-2020 New H3C Technologies Co., Ltd. All rights reserved.
H3C S12508G-AF uptime is 0 weeks, 0 days, 0 hours, 4 minutes
Last reboot reason : USER reboot
Boot image: flash:/BOOT-R7595.bin
Boot image version: 7.1.070, Release 7595
Compiled Aug 04 2020 11:00:00
System image: flash:/SYSTEM-R7595.bin
System image version: 7.1.070, Release 7595
Compiled Aug 04 2020 11:00:00
……略……
# 顯示設備主用主控板本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Device> display boot-loader slot 6
Software images on slot 6:
Current software images:
flash:/BOOT-test.bin
flash:/SYSTEM-test.bin
Main startup software images:
flash:/BOOT-test.bin
flash:/SYSTEM-test.bin
Backup startup software images:
flash:/BOOT-old.bin
flash:/SYSTEM-old.bin
# 顯示設備備用主控板本次啟動和下次啟動所采用的啟動軟件包的名稱。
<Device> display boot-loader slot 7
Software images on slot 7:
Current software images:
flash:/BOOT-test.bin
flash:/SYSTEM-test.bin
Main startup software images:
flash:/BOOT-test.bin
flash:/SYSTEM-test.bin
Backup startup software images:
flash:/BOOT-old.bin
flash:/SYSTEM-old.bin
無
如7.1 圖7所示,Switch和文件服務器通過交換機相連,Switch作為TFTP客戶端,文件服務器作為TFTP服務器。現要求:通過TFTP方式將存儲在文件服務器上的文件feature-t0001016.ipe下載到TFTP客戶端,將Switch上的Feature特性從T0001015版本升級到兼容版本T0001016。
圖7 Feature包升級組網圖
通過激活T0001016版本的Feature包並確認軟件包更改。
表5 適用產品及版本
產品 |
軟件版本 |
S12500G-AF係列交換機 |
Release 7639P01及以上版本 |
S10500X係列交換機 |
Release 7639P01及以上版本 |
S12500-XS係列交換機 |
Release 7639P01及以上版本 |
S7600E-X係列交換機 |
Release 7639P01及以上版本 |
S7500X-X係列交換機 |
Release 7639P01及以上版本 |
S10500係列交換機 |
Release 7639P01及以上版本 |
S7600-X係列交換機 |
Release 7639P01及以上版本 |
S12500-S係列交換機 |
Release 7639P01及以上版本 |
S7500E-X係列交換機 |
Release 7639P01及以上版本 |
S7500E係列交換機 |
Release 7639P01及以上版本 |
S7500X係列交換機 |
Release 7639P01及以上版本 |
S7600係列交換機 |
Release 7639P01及以上版本 |
S7000ET係列交換機 |
Release 7639P01及以上版本 |
· 當設備剩餘的內存空間不夠,請使用delete /unreserved file-url命令刪除部分暫時不用的文件後再執行升級軟件操作。
· 確保服務器和Switch的TFTP用戶名、密碼及文件名等參數保持一致。
# 配置文件服務器的IP地址為192.168.100.14/24,與Switch路由可達,具體配置方法略。
# 啟動文件服務器上的TFTP服務器功能(以3CDaemon軟件為例),設置TFTP服務器下載路徑等參數,並開啟服務。
圖8 配置TFTP服務器
# 配置Switch管理口的IP地址。
<Switch> system-view
System View: return to User View with Ctrl+Z.
[Switch] interface m-gigabitethernet 0/0/0
[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0
[Switch-M-GigabitEthernet0/0/0] quit
[Switch] quit
# 在Switch 上ping TFTP服務器地址,能夠ping通。
<Switch> ping 192.168.100.14
Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.100.14: icmp_seq=0 ttl=64 time=10.701 ms
56 bytes from 192.168.100.14: icmp_seq=1 ttl=64 time=2.678 ms
56 bytes from 192.168.100.14: icmp_seq=2 ttl=64 time=2.282 ms
56 bytes from 192.168.100.14: icmp_seq=3 ttl=64 time=1.617 ms
56 bytes from 192.168.100.14: icmp_seq=4 ttl=64 time=1.701 ms
--- Ping statistics for 192.168.100.14 ---
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.
# 從TFTP server下載包含新版本Feature軟件包的IPE文件。
<Sysname> tftp 192.168.100.14 get feature-t0001016.ipe
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 256 100 256 0 0 764 0 --:--:-- --:--:-- --:--:-- 810
Writing file...Done.
# 解壓縮IPE文件。
<Sysname> install add flash:/feature-t0001016.ipe flash:
Verifying the file flash:/feature-t0001016.ipe on slot 1...Done.
Decompressing file feature-t0001016.bin to flash:/feature-t0001016.bin.......................Done.
# 查看升級前激活的軟件包。
<Sysname> display install active
Active packages on slot 1:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001015.bin
# 顯示Feature軟件包的升級效果。
<Sysname> install activate feature flash:/feature-t0001016.bin slot 1 test
Verifying the file flash:/feature1-t0001016.bin on slot 1...Done.
Upgrade summary according to following table:
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Upgrade Way: Service Upgrade
Influenced service according to following table on slot 1:
flash:/feature-t0001016.bin
Feature
以上顯示信息表明,feature-t0001016.bin的升級方式是增量升級,升級過程中Feature模塊會重啟。
Upgrade Way表示兼容升級策略,取值可能為:
· Service Upgrade:表示服務級增量升級,僅對本業務模塊有影響,對係統以及其他業務模塊沒有影響。
· File Upgrade:表示文件級增量升級,僅對係統內的、用戶不可見的程序文件進行升級,對係統以及業務模塊沒有影響。
· Reboot:表示通過重啟方式升級,本策略用於版本間的差異仍屬於兼容範圍內,但無法進行增量和容器重啟升級時。該方式通過重啟本設備加載新軟件來完成升級,因此,升級過程會到導致業務中斷。
# 激活新版本的Feature軟件包,從而對Feature特性進行升級。
<Sysname> install activate feature flash:/feature-t0001016.bin slot 1
Verifying the file flash:/feature-t0001016.bin on slot 1...Done.
Upgrade summary according to following table:
flash:/feature-t0001016.bin
Running Version New Version
Test 0001015 Test 0001016
Upgrade Way: Service Upgrade
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
# 查看升級後激活的軟件包。
<Sysname> display install active
Active packages on slot 1:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001016.bin
# 確認軟件包更改。
<Sysname> install commit
This operation will take several minutes, please wait...........................Done.
The current software images have been saved as the startup software images.
Current software images on slot 1:
flash:/boot-t0001015.bin
flash:/system-t0001015.bin
flash:/feature-t0001016.bin
無
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!