Huawei 6730 Switch software upgrade example版本升级

Huawei 6730 Switch software upgrade example

版本 V1.0

密级 •开放 内部 •机密

类型 讨论版 •测试版 •正式版

修订记录

修订日期 修订人 版本号 审核人 修订说明

目录

1 背景 3

2 升级步骤 3

2.1 备份当前配置 3

2.2 备份当前版本文件 3

2.2.1 交换机连接ftp server 3

2.2.2 备份当前老版本文件到 ftp server 4

2.2.3 备份当前配置文件到ftp server 4

2.3 拷贝新版本文件及license 到flash 4

2.3.1 新版本文件从ftp server copy to flash: 4

2.3.2 确认新版本文件已经存在FLASH 4

2.3.3 拷贝license文件到FLASH 5

2.3.4 确认license文件 5

2.4 设置启动项 5

2.4.1 启动项指定新的版本文件 5

2.4.2 启动项指定新的license文件 5

2.5 重启 6

2.5.1 重启,但报错 6

2.5.2 重新指定版本文件, 后面加all 6

2.5.3 License也同样 6

2.5.4 再次重启 6

2.5.5 确认新版本已经生效 7

2.5.6 确认license也生效 7

1 背景

2台华为交换机配置了堆叠

型号:

S6730-S24X6Q's Device status:

复制代码
Slot Sub  Type                   Online    Power    Register     Status   Role  
--------------------------------------------------------------------------------------
1    -    S6730-S24X6Q           Present   PowerOn  Registered   Normal   Master
     PWR1 POWER                  Present   PowerOn  Registered   Normal   NA    
     PWR2 POWER                  Present   PowerOn  Registered   Normal   NA    
     FAN1 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN2 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN3 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN4 FAN                    Present   PowerOn  Registered   Normal   NA    
2    -    S6730-S24X6Q           Present   PowerOn  Registered   Normal   Standby
     PWR1 POWER                  Present   PowerOn  Registered   Normal   NA    
     PWR2 POWER                  Present   PowerOn  Registered   Normal   NA    
     FAN1 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN2 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN3 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN4 FAN                    Present   PowerOn  Registered   Normal   NA   

当前版本: s6730_v200r023c10spc500.cc

目标版本:S6730_V200R024C00SPC500.cc

目标补丁:S6730-S_V200R024SPH121.pat

2 升级步骤

2.1 备份当前配置

复制代码
Dis current

2.2 备份当前版本文件

通过FTP方式拷贝到ftp server

2.2.1 交换机连接ftp server

由于交换机是带外管理的,在1个独立的vpn-instance中,所以连接时需要指定源接口为带外接口,否则默认走全局路由表是不可达的。

复制代码
<Huawei-6730>  ftp -i MEth 0/0/1 10.16.133.219
Trying 10.16.133.219 in VPN instance management ...
Press CTRL+K to abort
Connected to 10.16.133.219 in VPN instance management.
220 3Com 3CDaemon FTP Server Version 2.0
User(10.16.133.219:(none)):cisco
331 User name ok, need password
Enter password:
230 User logged in

[ftp]

2.2.2 备份当前老版本文件到 ftp server

ftp\] put s6730_v200r023c10spc500.cc 200 PORT command successful. 150 File status OK ; about to open data connection 226 Closing data connection; File transfer successful. FTP: 179229111 byte(s) sent in 73.890 second(s) 2368.77Kbyte(s)/sec. ### 2.2.3 备份当前配置文件到ftp server \[ftp\] put vrpcfg.zip vrpcfg-bak.zip 200 PORT command successful. 150 File status OK ; about to open data connection 226 Closing data connection; File transfer successful. FTP: 1676 byte(s) sent in 0.098 second(s) 16.70Kbyte(s)/sec. ## 2.3 拷贝新版本文件及license 到flash ### 2.3.1 新版本文件从ftp server copy to flash: \[ftp\] get S6730_V200R024C00SPC500.cc 200 PORT command successful. 150 File status OK ; about to open data connection 226 Closing data connection; File transfer successful. FTP: 182819840 byte(s) received in 175.470 second(s) 1017.46Kbyte(s)/sec. \[ftp\] bye 221 Service closing control connection ### 2.3.2 确认新版本文件已经存在FLASH dir Directory of flash:/ Idx Attr Size(Byte) Date Time FileName 19 -rw- 182,819,840 Jun 21 2025 09:45:02 s6730_v200r024c00spc500.cc 1,693,932 KB total (1,336,576 KB free) ### 2.3.3 拷贝license文件到FLASH \[ftp\] get S6730-S_V200R024SPH121.pat 200 PORT command successful. 150 File status OK ; about to open data connection 226 Closing data connection; File transfer successful. FTP: 16670071 byte(s) received in 18.123 second(s) 898.27Kbyte(s)/sec. \[ftp\]bye 221 Service closing control connection ### 2.3.4 确认license文件 dir Directory of flash:/ Idx Attr Size(Byte) Date Time FileName 25 -rw- 16,670,071 Jun 21 2025 09:48:21 s6730-s_v200r024sph121.pat 1,693,932 KB total (1,320,992 KB free) 2.4 设置启动项 2.4.1 启动项指定新的版本文件 startup system-software s6730_v200r024c00spc500.cc Info: Operating, please wait for a moment... Info: Succeeded in setting the software for booting system. 2.4.2 启动项指定新的license文件 startup patch s6730-s_v200r024sph121.pat... Info: Succeeded in setting main board resource file for system. ## 2.5 重启 ### 2.5.1 重启,但报错 reboot Error: Reboot is rejected because the next-startup system software in main control board is inconsistent with that in the slave control board. 意思是备机上没有版本文件,所以不让重启, 处理方法:在命令最后加上all,会将版本文件拷贝到备机上。 ### 2.5.2 重新指定版本文件, 后面加all startup system-software s6730_v200r024c00spc500.cc all Info: Operating, please wait for a moment... Info: Succeeded in setting the software for booting system in the slot 1. 100% complete.\| Info: Copied file flash:/s6730_v200r024c00spc500.cc to slot2#flash:/s6730_v200r024c00spc500.cc...Done. Info: Operating, please wait for a moment... Info: Succeeded in setting the software for booting system in the slot 2. Info: Succeeded in setting the software for booting system. ### 2.5.3 License也同样 startup patch s6730-s_v200r024sph121.pat slave-board Error : The file flash:/s6730-s_v200r024sph121.pat does not exist in slot 2.(Default directory is flash:/) ### 2.5.4 再次重启 reboot Info: The system is now comparing the configuration, please wait. Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'. System will reboot! Continue?\[Y/N\]:y Comparing the firmware versions... Warning: It will take a few minutes to upgrade firmware. Please do not switchover, reset, remove, or power off the board when upgrade is being performed. Please keep system stable... Info: Online upgrade firmware on slot 1 successfully. Info: Online upgrade firmware on slot 2 successfully. Info: The max number of VTY users is 10, and the number of current VTY users on line is 2. The current login time is 2025-06-21 10:12:21+00:00. Info: Lastest accessed IP: 10.16.133.219 Time: 2025-06-21 10:12:18 Password will expire in: - ### 2.5.5 确认新版本已经生效 dis version Huawei Versatile Routing Platform Software VRP ® software, Version 5.170 (S6730 V200R024C00SPC500) Copyright © 2000-2024 HUAWEI TECH Co., Ltd. HUAWEI S6730-S24X6Q Routing Switch uptime is 0 week, 0 day, 0 hour, 4 minutes ES6D2S30S003 1(Master) : uptime is 0 week, 0 day, 0 hour, 1 minute DDR Memory Size : 4096 M bytes FLASH Total Memory Size : 2048 M bytes FLASH Available Memory Size : 1654 M bytes ### 2.5.6 确认license也生效 display patch-information Patch Package Name :flash:/s6730-s_v200r024sph121.pat Patch Package Version:V200R024SPH121 The state of the patch state file is: Running The current state is: Running *** ** * ** *** * Information about hot patch errors is as follows: * *** ** * ** *** Slot CurrentVersion *** ** * ** *** No hot patch error occurs on any board. *** ** * ** *** * The hot patch information, as follows: * *** ** * ** *** ### Slot Type State Count Time(YYYY-MM-DD HH:MM:SS) 1 C Running 53 2025-06-21 10:08:58+00:00 1 C-NAC Running 1 2025-06-21 10:11:56+00:00 *** ** * ** *** * The enp patch information, as follows: * *** ** * ** *** Slot Type State Count *** ** * ** *** 1 ENP Running 1 *** ** * ** *** * The bin patch information, as follows: * *** ** * ** *** ### Slot State Count Time(YYYY-MM-DD HH:MM:SS) 1 Running 11 2025-06-21 10:09:50+00:00:00 *** ** * ** *** * The firmware patch information, as follows: * *** ** * ** *** Slot Type State Count *** ** * ** *** 1 REMOTE_UNIT Running 1 ``` ```

相关推荐
要开心吖ZSH几秒前
《Spring 中上下文传递的那些事儿》Part 4:分布式链路追踪 —— Sleuth + Zipkin 实践
java·分布式·spring
桦说编程20 分钟前
深入解析CompletableFuture源码实现
java·性能优化·源码
万少1 小时前
第五款 HarmonyOS 上架作品 奇趣故事匣 来了
前端·harmonyos·客户端
蓝澈11211 小时前
迪杰斯特拉算法之解决单源最短路径问题
java·数据结构
OpenGL1 小时前
Android targetSdkVersion升级至35(Android15)相关问题
前端
Kali_071 小时前
使用 Mathematical_Expression 从零开始实现数学题目的作答小游戏【可复制代码】
java·人工智能·免费
rzl021 小时前
java web5(黑马)
java·开发语言·前端
Amy.Wang1 小时前
前端如何实现电子签名
前端·javascript·html5
时序数据说1 小时前
为什么时序数据库IoTDB选择Java作为开发语言
java·大数据·开发语言·数据库·物联网·时序数据库·iotdb
今天又在摸鱼1 小时前
Vue3-组件化-Vue核心思想之一
前端·javascript·vue.js