• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

03-软件升级

目录

02-H3C MSR系列路由器 命令行界面升级方法

本章节下载 02-H3C MSR系列路由器 命令行界面升级方法  (214.14 KB)

02-H3C MSR系列路由器 命令行界面升级方法

H3C MSR系列路由器

命令行界面升级方法

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 新华三技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。

目  录

1 简介

2 配置前提

3 使用版本

4 路由器作为TFTP client升级版本配置举例

4.1 组网需求

4.2 配置思路

4.3 配置注意事项

4.4 配置步骤

4.4.1 Host的配置

4.4.2 Router的配置

4.5 验证配置

4.6 配置文件


1 简介

本文档介绍MSR系列路由器使用TFTP方式升级路由器软件版本典型配置举例。

2 配置前提

本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考以设备实际情况为准。

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解TFTP的特性。

3 使用版本

本举例是在路由器H3C MSR3610-X1产品的R6749P14版本上进行配置和验证的,具体操作可能因不同产品型号和软件版本而略有差异,请以实际情况为准。

4 路由器作为TFTP client升级版本配置举例

4.1  组网需求

图4-1所示,Host连接Router的GigabitEthernet1/0/1接口,Router作为TFTP客户端,Host作为TFTP服务器。

现要求:通过TFTP方式为Router升级软件版本。

图4-1 配置组网图

 

4.2  配置思路

为了使路由器在重启后使用新版本软件,需要指定下次启动时所用的主用启动文件为升级后的软件版本。

4.3  配置注意事项

·     当设备剩余的存储空间不够,请使用delete /unreserved file-url命令删除部分暂时不用的文件后再执行升级软件操作。

·     软件升级时需要重启设备,建议使用save命令保存设备的当前配置。

4.4  配置步骤

4.4.1  Host的配置

# 配置Host的IP地址为192.168.100.14/24,使得与Router路由可达。

# 启动Host上的TFTP服务器(以3CDaemon软件为例),设置TFTP服务器下载路径等参数,并开启服务。

图4-2 配置TFTP服务器

 

4.4.2  Router的配置

# 配置Router接口IP地址。

<Router> system-view

[Router] interface gigabitethernet 1/0/1

[Router-GigabitEthernet1/0/1] ip address 192.168.100.66 255.255.255.0

[Router-GigabitEthernet1/0/1] quit

[Router] quit

# 在Router ping TFTP服务器地址,能够ping通。

<Router> ping 192.168.100.14

  PING 192.168.100.14: 56  data bytes, press CTRL_C to break

    Reply from 192.168.100.14: bytes=56 Sequence=0 ttl=128 time=2 ms

    Reply from 192.168.100.14: bytes=56 Sequence=1 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=2 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=3 ttl=128 time=1 ms

    Reply from 192.168.100.14: bytes=56 Sequence=4 ttl=128 time=1 ms

 

  --- 192.168.100.14 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 1/1/2 ms

# 将TFTP服务器上的msr36.ipe文件下载到路由器上,以缺省文件名msr36.ipe保存。

<Router> tftp 192.168.100.14 get msr36x1.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

# 指定Router下次启动时所用的主用启动文件为msr36x1.ipe。

<Router> boot-loader file flash:/msr36x1.ipe main

Verifying the IPE file and the images.....Done.

H3C MSR3610 images in IPE:

  msr36x1-cmw710-boot-r6749.bin

  msr36x1-cmw710-system-r6749.bin

  msr36x1-cmw710-security-r6749.bin

  msr36x1-cmw710-voice-r6749.bin

  msr36x1-cmw710-data-r6749.bin

This command will set the main startup software images. Continue? [Y/N]:y

Add images to the device.

Decompressing file msr36x1-cmw710-boot-r6749.bin to flash:/msr36x1-cmw710-boot-r6749.bin.........Done.

Decompressing file msr36x1-cmw710-system-r6749.bin to flash:/msr36x1-cmw710-system-r6749.bin.................................Done.

Decompressing file msr36x1-cmw710-security-r6749.bin to flash:/msr36x1-cmw710-security-r6749.bin...Done.

Decompressing file msr36x1-cmw710-voice-r6749.bin to flash:/msr36x1-cmw710-voice-r6749.bin...Done.

Decompressing file msr36x1-cmw710-data-r6749.bin to flash:/msr36x1-cmw710-data-r6749.bin...Done.

The images that have passed all examinations will be used as the main startup so

ftware images at the next reboot on the device.

# 指定Router的备用主控板下次启动时所用的备用启动文件为msr36x1-old.ipe。

<Router> boot-loader file flash:/msr36x1-old.ipe backup

This command will set the backup startup software images. Continue? [Y/N]:y

The images that have passed all examinations will be used as the backup startup

software images at the next reboot.

# 重启设备。

<Router> reboot

4.5  验证配置

# 设备重启后,使用display version命令查看设备版本信息。

<Router> display version

H3C Comware Software, Version 7.1.064, Release 6749

H3C MSR3610 images in IPE:                                                      

  msr36x1-cmw710-boot-r6749.bin                                             

  msr36x1-cmw710-system-r6749.bin                                           

  msr36x1-cmw710-escan-r6749.bin                                            

  msr36x1-cmw710-security-r6749.bin                                         

  msr36x1-cmw710-voice-r6749.bin                                            

  msr36x1-cmw710-data-r6749.bin                                             

This command will set the main startup software images. Please do not reboot the

 device during the upgrade. Continue? [Y/N]:n                                  

<MSR3610-X1>dis version                                                        

H3C Comware Software, Version 7.1.064, Release 6749                              

Copyright (c) 2004-2023 New H3C Technologies Co., Ltd. All rights reserved.    

H3C MSR3610 uptime is 0 weeks, 0 days, 6 hours, 54 minutes                     

Last reboot reason : Power on                                                   

Boot image: flash:/msr36x1-cmw710-boot-r6749.bin                            

Boot image version: 7.1.064P80, Release 6749                                    

Compiled Mar 10 2023 15:00:00                                                

System image: flash:/msr36x1-cmw710-system-r6749.bin                        

System image version: 7.1.064, Release 6749                                     

Compiled Mar 10 2023 15:00:00                                                

Feature image(s) list:                                                         

flash:/msr36x1-cmw710-escan-r6749.bin, version: 7.1.064                   

Compiled Mar 10 2023 15:00:00                                              

flash:/msr36x1-cmw710-security-r6749.bin, version: 7.1.064                

Compiled Mar 10 2023 15:00:00                                              

flash:/msr36x1-cmw710-voice-r6749.bin, version: 7.1.064                   

Compiled Mar 10 2023 15:00:00                                               

flash:/msr36x1-cmw710-data-r6749.bin, version: 7.1.064                    

Compiled Mar 10 2023 15:00:00                                              

                                                                               

CPU ID: 0x11                                                                   

2G bytes DDR3 SDRAM Memory                                                     

8M bytes Flash Memory                                                          

PCB               Version:  2.0                                                

CPLD              Version:129.0                                                

Basic    BootWare Version:  1.32                                               

Extended BootWare Version:  1.32                                               

[SLOT  0]AUX                       (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  0]GE1/0/1                     (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  0]GE1/0/2                     (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  0]GE1/0/3                     (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  0]CELLULAR0/0               (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  0]CELLULAR0/1               (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  2]SIC-4FSW                  (Hardware)2.0,   (Driver)1.0,   (CPLD)2.0

[SLOT  6]HMIM-4GEE                 (Hardware)2.0,   (Driver)1.0,   (CPLD)0.0

[SLOT  8]HMIM-2SAE                 (Hardware)3.0,   (Driver)1.0,   (CPLD)4.0

# 显示本次启动和下次启动所采用的启动软件包的名称。

<Router> display boot-loader

Software images on the device:

Current software images:

  flash:/msr36x1-cmw710-boot-r6749.bin

  flash:/msr36x1-cmw710-system-r6749.bin

  flash:/msr36x1-cmw710-security-r6749.bin

  flash:/msr36x1-cmw710-voice-r6749.bin

  flash:/msr36x1-cmw710-data-r6749.bin

Main startup software images:

  flash:/msr36x1-cmw710-boot-r6749.bin

  flash:/msr36x1-cmw710-system-r6749.bin

  flash:/msr36x1-cmw710-security-r6749.bin

  flash:/msr36x1-cmw710-voice-r6749.bin

  flash:/msr36x1-cmw710-data-r6749.bin

Backup startup software images:

  flash:/msr36x1-cmw710-boot-r000703.bin

  flash:/msr36x1-cmw710-system-r000703.bin

  flash:/msr36x1-cmw710-security-r000703.bin

  flash:/msr36x1-cmw710-voice-r000703.bin

  flash:/msr36x1-cmw710-data-r000703.bin

4.6  配置文件

#

interface gigabitethernet1/0/1

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们