交换机系统版本升级案例(含华为和华三厂商)

本文详细介绍了如何在华为和H3C交换机上通过FTP进行软件升级,包括配置FTP服务器,备份原版本文件,上传新版本,以及在H3C设备上使用Bootware菜单进行升级的步骤。确保在操作前备份和确认设备状态,以避免可能的问题。
摘要由CSDN通过智能技术生成

注意:

重要设备、老旧设备升级软件版本时,切记保存老版本!

组网图:电脑使用网线和console线连接交换机

原理:交换作为FTP服务器,PC作为FTP客户端,使用FTP协议远程将位于PC的交换机升级文件上传至FTP服务器(即交换机);

一、HUAWEI设备

背景介绍:

华为交换机升级文件小知识:*.cc是升级主文件 *.pat升级补丁

例:CE6810LI数据中心交换机

注意:

#配置无法显示
[HUAWEI]commit                 Commit the configuration to the system//向系统提交配置
#升级操作前,一定要确认自己是否有主备双控板,如有备控板一定要同时上传升级文件给主备双控板中,否则出现主控板升级备控板无法升级,造成只有1个主控板运行;
 当出现单备控板运行时,系统将出现1个主控板并且仍运行在旧版本上。
 万一出现此类似情况,再将未升级的控板重新升级后重启交换机即可。

1、升级准备

①操作终端,即PC
②网线、串口线
③配置交换机FTP Sever服务,并创建本地临时用户;
[HUAWEI]ftp server  enable #开启FTP服务
#AAA模式下,新建本地用户,配置服务类型、用户级别、FTP权限目录
[HUAWEI]aaa
[HUAWEI]local-user ftp123 password cipher Huayun@123
[HUAWEI]local-user ftp123 service-type ftp 
[HUAWEI]local-user ftp123 level 3 //不同型号交换机的权限等级可能存在差异
[HUAWEI]local-user ftp123 ftp-directory flash:/或者cfcard:/  //FTP上传文件保存到Flash的根目录下
④配置交换机与PC处于同一网段(不必设置网关,不影响)
⑤WIN7/10远程登录FTP交换机
⑥检查设备运行状态和注册状态
[HUAWEI]display  device
原则上全部都显示应为Registered(注册)
############################################################################
重启交换机发现业务板未注册成功的原因;
当出现未注册情况,有可能是交换机刚启动还在注册中,需要等待段时间启动业务版,此过程
会发现所有业务版(网口、电口灯全灭);建议挑选不影响业务的时间进行操作;
############################################################################
通过以下信息得出设备有一块主控板,主用主控板错在的槽位号为1;

⑦查看设备的当前版本
[HUAWEI]display version

⑧检查设备主用主控板Flash的存储空间
<HUAWEI>dir /all #查看Flash盘的相关信息
#如果空间不足,请使用以下命令删除Flash中的无用文件,释放存储空间
delete [drive][path][file name] #将文件删除,并保存至回收站;可使用undelete命令恢复回收站中的文件,保存至回收站中的文件仍会占用Flash空间;
reset recycle-bin [drive][path][file name]  #将删除回收站中的所有文件,这些文件将被永久删除,不能恢复;
或
delete /unreserved [drive][path][file name] #彻底删除文件,该命令等于先执行delete命令再执行reset recycle-bin命令
<HUAWEI>dir slot#flash:  //检查设备主用主控板Flash的存储空间是否足够

⑨重要的配置文件升级前备份:
#备份交换机配置及原版本文件
在FTP命令符下操作:
ftp> get vrpcfg.zip d:\vrpcfg.zip 
ftp> get S9300-V200R010C00SPC600.cc d:\
ftp> get s9300v100r1001sph011.pat d:\

2、执行升级操作

①上传升级版本(至交换机)
ftp> put F:\OneDrive\桌面\CE6810LI-V200R019C10SPC800.cc
ftp> put F:\OneDrive\桌面\CE6810LI-V200R019SPH015.PAT
ftp> copy F:\OneDrive\桌面\xx.cc  slave#flash:/ #拷贝到备控板

②设置交换机升级版本为启动运行版本
#主控板
<HUAWEI>startup system-software CE6810LI-V200R019C10SPC800.cc
<HUAWEI>startup patch CE6810LI-V200R019SPH015.PAT 
#备控板
<HUAWEI>startup system-software s9300-v200r010c00spc600.cc slave-board
<HUAWEI>startup patch s9300series-v200r010sph025.pat slave-board
#检查startup配置
<HUAWEI>dis startup 

③重启交换等待更新
<HUAWEI>save    #重启前保存设备配置
<HUAWEI>reboot

二、H3C设备

以下为升级版本的配置案例,您可以参考:

通过Bootware菜单升级

#华三官网下载所需要的升级版本,本案例以S5120-28P-WiNet为例。如若是其他型号,根据具体的型号下载对应版本。

点击同意,下载即可。

注意: 

a:官方账号:yx800 密码:01230123

b:设备版本已掉的情况下,通过“重启”或“设备背面贴纸”可知设备的具体型号、序列号等信息;

c:bootware菜单随设备版本软件自动升级;不必考虑因bootware菜单等级低而导致的软件版本升级失败;

d:默认console界面账号密码:admin/admin

#将下载的压缩包解压成文件夹,能够看到两个文件,我们需要使用的是bin/ipe后缀的文件。

#在3CDaemon利用TFTP上传所要升级的版本文件夹

上传、下载目录选择文件夹E:\工作\HY(202109-)\No.4 交换机升级包&产品文档\H3C\S5120-28P-WiNet\S5120WiNet-CMW520-R1519P06\

#断电/reboot重启交换机,当出现Press Ctrl-B to enter Extended Boot menu...3时,迅速按Ctrl+B(也可以开机启动的时候一直按着ctrl+B),进入bootware菜单后,提示输入密码。密码默认为空,直接回车即可,然后显示如下界面:

%Apr 26 12:13:40:682 2000 H3C DEVM/5/SYSTEM_REBOOT: System is rebooting now.
Starting......

********************************************************************************
*                                                                              *
*                   H3C S5120-28P-WiNet BOOTROM, Version 158                   *
*                                                                              *
********************************************************************************	
Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.

Creation Date       : Jun 15 2012
CPU L1 Cache        : 32KB
CPU Clock Speed     : 333MHz
Memory Size         : 128MB
Flash Size          : 128MB
CPLD Version        : 001
PCB Version         : Ver.B
Mac Address         : 70BAEF5495C6


Press Ctrl-B to enter Extended Boot menu...4
Please input BootRom password:

   BOOT MENU

1. Download application file to flash——1. 下载应用程序文件到flash
2. Select application file to boot——2. 选择要启动的应用程序文件
3. Display all files in flash——3.在flash中显示所有文件
4. Delete file from flash——4. 从flash中删除文件
5. Modify BootRom password——5. 修改BootRom密码
6. Enter BootRom upgrade menu——6. 进入BootRom升级菜单
7. Skip current system configuration——7. 跳过当前系统配置
8. Set BootRom password recovery——8. 设置BootRom密码恢复
9. Set switch startup mode——9. 设置开关启动方式
0. Reboot——0. 重新启动

Enter your choice(0-9): 1

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): 1

Load File Name     :S5120WiNet-CMW520-R1512.bin——上次传输文件时设定的名称
                   :S5120WiNet-CMW520-R1519P06.bin——本次上传文件时的设定的名称
Server IP Address  :192.168.1.81 ——PC需设定的IP
Local IP Address   :192.168.1.249 ——需升级的交换机的IP——交换机的任意端口,交换机并不需要设定端口的IP
Gateway IP Address :0.0.0.0

Are you sure to download file to flash? Yes or No (Y/N):Y
Loading.........................................................................
................................................................................
................................................................................
............................................................Done!
Free space: 42272768 bytes
Writing flash...................................................................
..................................................Done!

#打开3CDaemon,可以看到数据正在传输,当显示如下界面时,数据传输完毕

Please input the file attribute (Main/Backup/None) 
The attribute of S5120WiNet-CMW520-R1519P06.bin keeps none attribute!
Done!

   BOOT MENU

1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify BootRom password
6. Enter BootRom upgrade menu
7. Skip current system configuration
8. Set BootRom password recovery
9. Set switch startup mode
0. Reboot

Enter your choice(0-9): 2

1. Set application file
0. Return to boot menu

Enter your choice(0-1): 1


File Number    File Size(bytes)     File Name
================================================================================
1              14877696             s5120winet-cmw520-r1519p06.bin          
2(*)           13785760             s5120winet-cmw520-r1512.bin             
3              14668416             r1515                                   
4              13785856             r1512                                   
5              14558208             r1513p96                                
Free space: 27392000 bytes
(*)-with main attribute
(b)-with backup attribute
(*b)-with both main and backup attribute
Please input the file number to change: 1
#选择已上传的相应版本,加载为下次重启启动时的版本;
Please input the file attribute (Main/Backup/None) m
#当命令行界面出现Please input the file attribute (Main/Backup/None)时,输入main(简写为m),回车
The attribute of S5120WiNet-CMW520-R1512.bin is changed from main to none!
This operation may take several minutes. Please wait....
Next time, s5120winet-cmw520-r1519p06.bin will become default boot file!
Do you want to run s5120winet-cmw520-r1519p06.bin now? Yes or No (Y/N):Y
Starting to get the main application
file--flash:/s5120winet-cmw520-r1519p06.bin!....................................
.............................................................................
The main application file is self-decompressing.................................
................................................................................
................................................................................
.........Done!
Extend BootWare Version is not equal,updating? (Y/N):
Updating extended BootRom...Done!
Basic BootWare Version is not equal,updating? (Y/N):
Updating Basic BootRom...Done!
BootWare updated,System is rebooting now.
Starting......
Press Ctrl+D to access BASIC BOOT MENU
Press Ctrl+T to start memory test

********************************************************************************
*                                                                              *
*                   H3C S5120-28P-WiNet BOOTROM, Version 180                   *
*                                                                              *
********************************************************************************
Copyright (c) 2004-2017 New H3C Technologies Co., Ltd.

Creation Date       : Aug  9 2017
CPU L1 Cache        : 32KB
CPU Clock Speed     : 333MHz
Memory Size         : 128MB
Flash Size          : 128MB
CPLD Version        : 001
PCB Version         : Ver.B
Mac Address         : 70BAEF5495C6


the normal and back basic is not equal, update back basic....
the normal and back extend is not equal, update back extend....
Press Ctrl-B to enter Extended Boot menu...0
Starting to get the main application file--flash:/s5120winet-cmw520-r1519p06.
bin!............................................................................
.....................................
The main application file is self-decompressing.................................
................................................................................
................................................................................
.........Done!
System is starting...
            
            Board checking..........................LS51LTSR
            SDRAM fast selftest..........................OK!
            Flash fast selftest..........................OK!
            CPLD selftest................................OK!
            Switch chip selftest.........................OK!
            PHY selftest.................................OK!
            Please check leds......................FINISHED!
Startup configuration file does not exist.
It will take a long time to get configuration file, please wait...
Press CTRL_C to break

It will take a long time to get configuration file, please wait...
Press CTRL_C to break

Retrieving configuration file failed!

User interface aux0 is available.

Press ENTER to get started.

Login authentication

Username:admin
Password:admin
<H3C>
#Apr 26 12:01:31:213 2000 H3C SHELL/4/LOGIN: 
 Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1<hh3cLogIn>:admin login from Console
%Apr 26 12:01:31:356 2000 H3C SHELL/5/SHELL_LOGIN: admin logged in from aux0.
<H3C>

#输入0,重启交换机(上述已在新版本成为默认引导文件时自动重启)。查看结果,升级完毕

<H3C>dis version/display summary
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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值