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

H3C VSR1000虚拟路由器典型配置举例-6W100

目录

31-H3C VSR1000虚拟路由器作为FTP server 升级版本的典型配置举例

本章节下载 31-H3C VSR1000虚拟路由器作为FTP server 升级版本的典型配置举例  (131.71 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/NFV/H3C_VSR/Configure/Typical_Configuration_Example/H3C_VSR1000_CE-6W100/201411/845118_30005_0.htm

31-H3C VSR1000虚拟路由器作为FTP server 升级版本的典型配置举例

H3C VSR1000虚拟路由器作为FTP server升级软件版本的典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

 



1  简介

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

2  配置前提

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

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

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

3  配置举例

3.1  组网需求

图1所示,主机Host通过二层交换机连接到Router的GigabitEthernet1/0接口,Router作为FTP服务器,Host作为FTP客户端。

现要求:

·     通过FTP方式为Router升级软件版本,将存储在FTP客户端上的文件VSR1000-CMW710-E0301-X64.ipe上传到FTP服务器。

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

图1 配置组网图

 

3.2  配置思路

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

3.3  使用版本

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

3.4  配置注意事项

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

·     在Router和主机之间进行FTP传输,需要选择binary方式传输文件。

3.5  配置步骤

3.5.1  Router上配置FTP服务器

# 配置Router接口IP地址。

<Router> system-view

[Router] interface gigabitethernet 1/0

[Router-GigabitEthernet1/0] ip address 192.168.100.66 255.255.255.0

[Router-GigabitEthernet1/0] quit

# 在Router上添加一个FTP用户abc,并设置其认证密码为123456。

[Router] local-user abc

[Router-luser-abc] password simple 123456

# 配置用户角色为network-admin。

[Router-luser-abc] authorization-attribute user-role network-admin

# 为保证FTP用户仅使用授权的用户角色network-admin,删除缺省用户角色network-operator。

[Router-luser-abc] undo authorization-attribute user-role network-operator

# 配置服务类型为FTP。

[Router-luser-abc] service-type ftp

[Router-luser-abc] quit

# 启动Router的FTP服务。

[Router] ftp server enable

[Router] quit

3.5.2  Host的配置

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

# 从FTP client登录FTP server,本例以Windows命令提示符界面为例。

C:\Documents and Settings\Administrator> ftp 192.168.100.66

Connected to 192.168.100.66.

220 FTP service ready.

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

User (192.168.100.66:(none)): abc

331 Password required for abc.

Password:

230 User logged in.

# 使用lcd命令,将FTP客户端本地的工作路径切换到软件版本所在的目录下。

ftp> lcd E:\

Local directory now E:\

# 将传输模式设置为binary方式。

ftp> binary

200 TYPE is now 8-bit binary

# 将本地VSR1000-CMW710-E0301-X64.ipe文件上传到FTP服务器上,缺省以文件名VSR1000-CMW710-E0301-X64.ipe保存。

ftp> put VSR1000-CMW710-E0301-X64.ipe

200 PORT command successful

150 Connecting to port 4903

226 File successfully transferred

ftp: 发送 51978240 字节,用时 12.20Seconds 4259.46Kbytes/sec.

# 使用ls命令查看FTP服务器上是否有文件。

ftp> ls VSR1000-CMW710-E0301-X64.ipe

200 PORT command successful

150 Connecting to port 4100

VSR1000-CMW710-E0301-X64.ipe

226 1 matches total

ftp: 收到 30 字节,用时 0.00Seconds 30000.00Kbytes/sec.

# 终止与FTP服务器的连接,并退回到用户视图。

ftp> bye

3.5.3  Router上配置启动文件

# 指定Router下次启动时所用的主用启动文件为VSR1000-CMW710-E0301-X64.ipe。

<Router> boot-loader file VSR1000-CMW710-E0301-X64.ipe main

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

H3C VSR1000 images in IPE:

  VSR1000-CMW710-BOOT-E0301-X64.bin

  VSR1000-CMW710-SYSTEM-E0301-X64.bin

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

Add images to the device.

Decompressing file VSR1000-CMW710-BOOT-E0301-X64.bin to flash:/VSR1000-CMW710-BOOT-E0301-X64.bin...Done.

Decompressing file VSR1000-CMW710-SYSTEM-E0301-X64.bin to flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin.....Done.

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

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

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

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

H3C VSR1000 images in IPE:

  VSR1000-CMW710-BOOT-E0102-X64.bin

  VSR1000-CMW710-SYSTEM-E0102-X64.bin

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

Add images to the device.

File flash:/VSR1000-CMW710-BOOT-E0102-X64.bin already exists on the device.

File flash:/VSR1000-CMW710-SYSTEM-E0102-X64.bin already exists on the device.

Overwrite the existing files? [Y/N]:y

Decompressing file VSR1000-CMW710-BOOT-E0102-X64.bin to flash:/VSR1000-CMW710-BOOT-E0102-X64.bin...Done.

Decompressing file VSR1000-CMW710-SYSTEM-E0102-X64.bin to flash:/VSR1000-CMW710-SYSTEM-E0102-X64.bin....Done.

The images that have passed all examinations will be used as the backup startup software images at the next reboot on the device.

# 重启设备。

<Router> reboot

3.6  验证配置

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

<Router> display version

H3C Comware Software, Version 7.1.055, ESS 0301

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

H3C VSR1000 uptime is 0 weeks, 0 days, 0 hours, 42 minutes

Last reboot reason : User reboot

Boot image: flash:/VSR1000-CMW710-BOOT-E0301-X64.bin

Boot image version: 7.1.055, ESS 0301

  Compiled May 28 2014 16:53:20

System image: flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin

System image version: 7.1.055, ESS 0301

  Compiled May 28 2014 16:53:20

 

CPU ID: 0x01000101, vCPUs: Total 1, Available 1

0.98G bytes RAM Memory

Basic    BootWare Version:  1.04

Extended BootWare Version:  1.04

[SLOT  1]VNIC-E1000         (Driver)1.0

[SLOT  2]VNIC-E1000         (Driver)1.0

[SLOT  3]VNIC-E1000         (Driver)1.0

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

<Router> display boot-loader

Software images on the device:

Current software images:

  flash:/VSR1000-CMW710-BOOT-E0301-X64.bin

  flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin

Main startup software images:

  flash:/VSR1000-CMW710-BOOT-E0301-X64.bin

  flash:/VSR1000-CMW710-SYSTEM-E0301-X64.bin

Backup startup software images:

  flash:/VSR1000-CMW710-BOOT-E0102-X64.bin

  flash:/VSR1000-CMW710-SYSTEM-E0102-X64.bin

3.7  配置文件

#

interface gigabitethernet1/0

 port link-mode route

 ip address 192.168.100.66 255.255.255.0

#

local-user abc class manage

 password hash $h$6$YMVbbwFL/vviWcQu$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg

3fZjxYCp5WzbuE2GoowVi2YA/BK+mnSZJZqi5jRDuCg==

 service-type ftp

 authorization-attribute user-role network-admin

#

 ftp server enable

#

4  相关资料

·     《H3C VSR1000虚拟路由器配置指导》中的“基础配置指导”

·     《H3C VSR1000虚拟路由器命令参考》中的“基础配置命令参考”

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

新华三官网
联系我们