1、             设置FTP客户端IP地址

1)在交换机上打开20号端口(如果此端口没有使用则使用此端口,如果如果已经使用,则挑选一个没有使用且已经shutdown的端口使用),设置临时FTP客户端IP地址。

<Quidway>ping 192.192.192.1                                   //应该是无法Ping

<Quidway>ping 192.192.192.2                                   //应该是无法Ping

<Quidway>sys                                                                  

[Quidway]interface Ethernet1/0/20                                                 

[Quidway-Ethernet1/0/20]undo shutdown

[Quidway-Ethernet1/0/20] interface Vlan-interface1

[Quidway- Vlan-interface1] ip address 192.192.192.2 255.255.255.252                                          

[Quidway- Vlan-interface1]q                   

[Quidway]q

2、             加载bootrom和主机版本                  

用网线连接PC和交换机,此处举例为20号端口(依据实际情况确定)。

在串口终端上执行如下命令:

<Quidway>ftp 192.192.192.1                                       

Trying ...                                                                     

Press CTRL+K to abort                                                           

Connected.                                                                     

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user          

User(none):load                                                                 

331 Give me your password, please                                              

Password:                                                                      

230 Logged in successfully                                                     

[ftp]bin                                                                        

200 Type is Image (Binary)                                                     

[ftp]get S3900_V602.btm                                                         

227 Entering Passive Mode (10,0,123,10,4,62)                                   

150 "c:\ftp\S3900_V602.btm" file ready to send (200080 bytes)

in IMAGE / Binary mode                                                         

.........226 Transfer finished successfully.                                    

FTP: 200080 byte(s) received in 13.531 second(s) 14.00K byte(s)/sec.           

[ftp]get S3900EI-VRP310-R1702P01.bin                                            

227 Entering Passive Mode (10,0,123,10,4,67)                                    

150 "c:\ftp\S3900EI-VRP310-R1702P01.bin" file ready to send (4

593060 bytes) in IMAGE / Binary mode                                           

..........................................................226 Transfer finished

successfully.                                                                   

FTP: 4593060 byte(s) received in 59.277 second(s) 77.00K byte(s)/sec.          

[ftp]put vrpcfg.cfg                                                             

227 Entering Passive Mode (10,0,123,10,4,83)                                   

150 "c:\ftp\vrpcfg.cfg" file ready to receive in IMAGE / Binar

y mode                                                                         

226 Transfer finished successfully.                                             

FTP: 3282 byte(s) sent in 0.309 second(s) 10.00Kbyte(s)/sec.                   

[ftp]bye                                                                        

221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye        

< Quidway >dir                                                     

Directory of unit1>flash:/                                                     

                                                                               

   1 (*)   -rw-    867258  Apr 02 2008 12:00:00   hw-http3.1.8-0033sp01.web    

   2       -rw-      2211  Apr 02 2008 12:00:00   vrpcfg.def                   

   3 (*)   -rw-   4625884  Apr 02 2008 12:00:00   s3900ei-vrp310-r1602p01.bin  

   4 (*)   -rw-      3282  Apr 01 2000 23:58:13   vrpcfg.cfg                   

   5       -rw-    200080  Apr 02 2000 00:00:50   s3900_v602.btm               

   6       -rw-   4593060  Apr 02 2000 00:03:04   s3900ei-vrp310-r1702p01.bin  

                                                                                

15367 KB total (5184 KB free)                                                  

                                                                               

(*) -with main attribute   (b) -with backup attribute                           

(*b) -with both main and backup attribute                                      

                                                     

 

注意(一般不会遇到此类情况):

如果Flash memory空间不够,可以首先在交换机上使用如下命令删除原有版本文件

<Quidway> delete / U 文件名

然后再将主机程序通过FTP上载到交换机上完成主机程序的升级。在此过程中设备不能掉电或者重启。

3、              设置启动文件

4、                设置最新的bootrom和主机软件为最新的启动文件

< Quidway >boot bootrom S3900_V602.btm                            

 This will update Bootrom on unit 1.  Continue? [Y/N] y                        

 Upgrading Bootrom, please wait...                                             

 Upgrade Bootrom succeeded!    //仔细留意此处是否成功!!!如果没有成功暂停后面操作。

< Quidway >boot boot-loader S3900EI-VRP310-R1702P01.bin           

 The specified file will be booted next time on unit 1!                        

< Quidway >display boot-loader                                    

 Unit 1:                                                                       

   The current boot app is: s3900ei-vrp310-r1602p01.bin                        

   The main boot app is:    s3900ei-vrp310-r1702p01.bin   //仔细留意此处是否正确!!!如果没有成功暂停后面操作。

   The backup boot app is:

3.3 操作后验证

1、             重启交换机,并验证版本

重启前请确认配置是否保存,防止重启后造成配置丢失,可以再进行Save保存

< Quidway >reboot       

 Start to check configuration with next startup configuration file,            

 please wait.........Checking is finished!                                     

 This will reboot device. Continue? [Y/N] y                                     

#Apr  2 00:12:44:912 2000 GDFOS-BC-SX-SW03-3928P COMMONSY/5/REBOOT:- 1 -       

 Reboot Fabric by command.  

 

启动完毕之后,检查版本,版本必须与如下的粗体部分相同。

< Quidway >dis version                                             

Huawei Versatile Routing Platform Software.                                    

VRP Software, Version 3.10, Release 1702P01                                    

Copyright (c) 1998-2009 Huawei Technologies Co., Ltd. All rights reserved.     

Quidway S3928P-EI uptime is 0 week, 0 day, 0 hour, 1 minute                    

                                                                               

Quidway S3928P-EI with 1 Processor                                             

64M     bytes DRAM                                                             

16384K  bytes Flash Memory                                                     

Config Register points to FLASH                                                 

                                                                               

Hardware Version is REV.C                                                      

CPLD Version is CPLD 001                                                        

Bootrom Version is 602                                                         

[Subslot 0] 24 FE Hardware Version is REV.C                                    

[Subslot 1] 4 GE  Hardware Version is REV.C           

注:在交换机重启过程中(大约持续<2分钟)。

2、             PING测试

同样使用串口登录升级完的设备,执行PING测试(详细见前面第二部分第6步)。

PING测试结果与之前备份的PING结果进行对比分析,可以使用ultredit工具file菜单中的compare files功能进行比较或者使用其它软件。

3、             升级后检查

<Quidway>dis cur                                          //请比对前后脚本

<Quidway>dis version                                    //再次确认升级的版本

<Quidway>dis interface                                  //请比对前后接口状态

<Quidway>dis ip routing-table                        //请比对前后路由表

<Quidway>dis vrrp                                        //请比对前后VRRP节点主备用状态

<Quidway>dis ospf peer                              //请比对前后OSPF邻居状态

4、              验证升级成功,删除临时数据

验证升级成功后,删除如下的临时数据,并注意保存配置。

<Quidway>sys                                                                   

[Quidway]interface Ethernet1/0/20                                                 

[Quidway-Ethernet1/0/20]shutdown                                             

[Quidway-Ethernet1/0/20] interface Vlan-interface1

[Quidway- Vlan-interface1] ip address 192.192.192.2 255.255.255.252                                          

[Quidway- Vlan-interface1]q              

[Quidway]q

<Quidway>save                                             //非常关键一步

5、              升级失败,倒回应急方案

也是通过FTP加载旧文件即可。