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

02-典型配置举例

02-H3C MSR系列路由器 作为FTP client升级版本的典型配置举例

本章节下载  (228.32 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Routers/00-Public/Configure/Typical_Configuration_Example/H3C_MSR_R6728-10884/99/202305/1843857_30005_0.htm

02-H3C MSR系列路由器 作为FTP client升级版本的典型配置举例

H3C MSR系列路由器

作为FTP client升级软件版本配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

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

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

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



1  简介

本文档介绍使用FTP方式升级分布式路由器软件版本的典型配置举例。

2  配置前提

本文档适用于使用Comware V7软件版本的MSR系列路由器,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

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

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

3  配置举例

3.1  组网需求

图1所示,主机Host连接Router的GigabitEthernet1/0/1接口,Router作为FTP客户端,Host作为FTP服务器。现要求:

·     通过FTP方式为Router升级软件版本,将存储在FTP服务器上的文件msr56.ipe下载到FTP客户端。

·     配置FTP客户端登录FTP服务器的用户名为123456,密码为123456。

图1 配置组网图

 

3.2  配置思路

·     为了使设备的主用主控板和备用主控板都能够升级版本,在使用FTP方式将软件版本get到主用主控板后,需要将软件版本复制到备用主控板的根目录下,主用主控板和备用主控板都进行升级。

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

3.3  使用版本

本举例是在R6728版本上进行配置和验证的。

3.4  配置注意事项

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

·     确保主机和Router的FTP用户名、密码及文件名等参数保持一致。

3.5  配置步骤

3.5.1  Host的配置

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

# 启动Host上的FTP服务器(以3CDaemon软件为例)。

图2 配置FTP服务器

 

# 配置FTP服务器参数。

·     单击按钮;

·     配置FTP用户名为123456;

·     单击“Set/Change user's password”按钮,配置FTP密码为123456;

·     单击,设置FTP服务器下载路径;

·     单击“确定”并保存。

图3 配置FTP服务器参数

 

3.5.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 FTP服务器地址,能够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

# 以用户名123456、密码123456登录FTP服务器。

<Router> 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.

# 将文件msr56.ipe从FTP服务器下载到Router的主用主控板。

ftp> get msr56.ipe

227 Entering passive mode (192,168,100,14,8,86)

125 Using existing data connection

226 Closing data connection; File transfer successful.

70445056 bytes received in 53.6 seconds (1.25 Mbyte/s)

ftp> quit

# 将Router主用主控板的文件msr56.ipe拷贝到备用主控板的根目录下

<Router> copy cfa0:/msr56.ipe slot1#cfa0:/msr56.ipe

Copy cfa0:/msr56.ipe to slot1#cfa0:/msr56.ipe[Y/N]:y

Copying file cfa0:/msr56.ipe to slot1#cfa0:/msr56.ipe.

........................................................................ Done.

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

<Router> boot-loader file cfa0:/msr56.ipe slot 0 main

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

H3C MSR56-60 images in IPE:

  msr56-cmw710-boot-r0106.bin

  msr56-cmw710-system-r0106.bin

  msr56-cmw710-security-r0106.bin

  msr56-cmw710-voice-r0106.bin

  msr56-cmw710-data-r0106.bin

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

Add images to slot 0.

Decompressing file msr56-cmw710-boot-r0106.bin to cfa0:/msr56-cmw710-boot-r0106.bin...............Done.

Decompressing file msr56-cmw710-system-r0106.bin to cfa0:/msr56-cmw710-system-r0106.bin..............................................Done.

Decompressing file msr56-cmw710-security-r0106.bin to cfa0:/msr56-cmw710-security-r0106.bin...Done.

Decompressing file msr56-cmw710-voice-r0106.bin to cfa0:/msr56-cmw710-voice-r0106.bin....Done.

Decompressing file msr56-cmw710-data-r0106.bin to cfa0:/msr56-cmw710-data-r0106.bin...Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 0.

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

<Router> boot-loader file slot1#cfa0:/msr56-old.ipe slot 0 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 on slot 0.

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

<Router> boot-loader file slot1#cfa0:/msr56.ipe slot 1 main

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

H3C MSR56-60 images in IPE:

  msr56-cmw710-boot-r0106.bin

  msr56-cmw710-system-r0106.bin

  msr56-cmw710-security-r0106.bin

  msr56-cmw710-voice-r0106.bin

  msr56-cmw710-data-r0106.bin

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

Add images to slot 1.

Decompressing file msr56-cmw710-boot-r0106.bin to slot1#cfa0:/msr56-cmw710-boot-r0106.bin................Done.

Decompressing file msr56-cmw710-system-r0106.bin to slot1#cfa0:/msr56-cmw710-system-r0106.bin.................................................Done.

Decompressing file msr56-cmw710-security-r0106.bin to slot1#cfa0:/msr56-cmw710-security-r0106.bin...Done.

Decompressing file msr56-cmw710-voice-r0106.bin to slot1#cfa0:/msr56-cmw710-voice-r0106.bin....Done.

Decompressing file msr56-cmw710-data-r0106.bin to slot1#cfa0:/msr56-cmw710-data-r0106.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.

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

<Router> boot-loader file slot1#cfa0:/msr56-old.ipe slot 1 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 on slot 1.

# 重启设备。

<Router> reboot

3.6  验证配置

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

<Router> display version

H3C Comware Software, Version 7.1.049, Release 0106

Copyright (c) 2004-2013 Hangzhou H3C Tech. Co., Ltd. All rights reserved.

H3C MSR56-60 uptime is 0 weeks, 0 days, 0 hours, 3 minutes

Last reboot reason : User reboot

Boot image: cfa0:/msr56-cmw710-boot-r0106.bin

Boot image version: 7.1.049P03, Release 0106

  Compiled Jan 15 2014 19:27:12

System image: cfa0:/msr56-cmw710-system-r0106.bin

System image version: 7.1.049, Release 0106

  Compiled Jan 15 2014 19:27:12

Feature image(s) list:

  cfa0:/msr56-cmw710-security-r0106.bin, version: 7.1.049

    Compiled Jan 15 2014 19:28:36

  cfa0:/msr56-cmw710-voice-r0106.bin, version: 7.1.049

    Compiled Jan 15 2014 19:28:37

  cfa0:/msr56-cmw710-data-r0106.bin, version: 7.1.049

    Compiled Jan 15 2014 19:28:39

 

……略……

# 显示设备主用主控板本次启动和下次启动所采用的启动软件包的名称。

<Router> display boot-loader slot 0

Software images on slot 0:

Current software images:

  cfa0:/msr56-cmw710-boot-r0106.bin

  cfa0:/msr56-cmw710-system-r0106.bin

  cfa0:/msr56-cmw710-security-r0106.bin

  cfa0:/msr56-cmw710-voice-r0106.bin

  cfa0:/msr56-cmw710-data-r0106.bin

Main startup software images:

  cfa0:/msr56-cmw710-boot-r0106.bin

  cfa0:/msr56-cmw710-system-r0106.bin

  cfa0:/msr56-cmw710-security-r0106.bin

  cfa0:/msr56-cmw710-voice-r0106.bin

  cfa0:/msr56-cmw710-data-r0106.bin

Backup startup software images:

  cfa0:/msr56-cmw710-boot-r000703.bin

  cfa0:/msr56-cmw710-system-r000703.bin

  cfa0:/msr56-cmw710-security-r000703.bin

  cfa0:/msr56-cmw710-voice-r000703.bin

  cfa0:/msr56-cmw710-data-r000703.bin

# 显示设备备用主控板本次启动和下次启动所采用的启动软件包的名称。

<Router> display boot-loader slot 1

Software images on slot 1:

Current software images:

  cfa0:/msr56-cmw710-boot-r0106.bin

  cfa0:/msr56-cmw710-system-r0106.bin

  cfa0:/msr56-cmw710-security-r0106.bin

  cfa0:/msr56-cmw710-voice-r0106.bin

  cfa0:/msr56-cmw710-data-r0106.bin

Main startup software images:

  cfa0:/msr56-cmw710-boot-r0106.bin

  cfa0:/msr56-cmw710-system-r0106.bin

  cfa0:/msr56-cmw710-security-r0106.bin

  cfa0:/msr56-cmw710-voice-r0106.bin

  cfa0:/msr56-cmw710-data-r0106.bin

Backup startup software images:

  cfa0:/msr56-cmw710-boot-r000703.bin

  cfa0:/msr56-cmw710-system-r000703.bin

  cfa0:/msr56-cmw710-security-r000703.bin

  cfa0:/msr56-cmw710-voice-r000703.bin

  cfa0:/msr56-cmw710-data-r000703.bin

3.7  配置文件

#

interface gigabitethernet1/0/1

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

4  相关资料

·     《H3C MSR 系列路由器 配置指导(V7)》中的“基础配置指导”

·     《H3C MSR 系列路由器 命令参考(V7)》中的“基础配置命令参考”

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

新华三官网
联系我们