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

H3C S9800系列交换机 典型配置举例-6W101

03-软件升级配置举例

本章节下载 03-软件升级配置举例  (233.85 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S9800/S9800/Configure/Typical_Configuration_Example/H3C_S9800_CE-6W101/201706/997337_30005_0.htm

03-软件升级配置举例

H3C S9800 软件升级典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

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

并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。

H3C_彩色.emf

 



1  简介

本文档介绍软件升级的典型配置举例。

2  配置前提

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

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

本文档假设您已了解软件升级和FTP/TFTP的特性。

3  设备作为TFTP client升级版本配置举例

3.1  组网需求

图1所示,Switch和文件服务器通过交换机相连,Switch作为TFTP客户端,文件服务器作为TFTP服务器。现要求:通过TFTP方式将存储在文件服务器上的文件switch.ipe下载到FTP客户端,为Switch升级软件版本。

图1 配置组网图

 

3.2  配置思路

·     为了使设备的主用交换引擎和备用交换引擎都能够升级版本,在使用TFTP方式将软件版本get到主用交换引擎后,需要将主用交换引擎和备用交换引擎都进行软件版本升级。

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

3.3  使用版本

本举例是在S9800-CMW710-R2118版本上进行配置和验证的。

3.4  配置注意事项

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

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

3.5  配置步骤

3.5.1  文件服务器的配置

# 配置文件服务器的IP地址为192.168.100.14/24,使得与Switch路由可达,具体配置方法略。

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

图2 配置TFTP服务器

 

3.5.2  Switch的配置

# 配置Switch接口IP地址。

<Switch> system-view

[Switch] interface m-gigabitethernet 0/0/0

[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0

[Switch-M-GigabitEthernet0/0/0] quit

[Switch] quit

# 在Switch 上ping 文件服务器地址,能够ping通。

<Switch> ping 192.168.100.14

Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break

56 bytes from 192.168.100.14: icmp_seq=0 ttl=255 time=0.167 ms

56 bytes from 192.168.100.14: icmp_seq=1 ttl=255 time=0.093 ms

56 bytes from 192.168.100.14: icmp_seq=2 ttl=255 time=0.093 ms

56 bytes from 192.168.100.14: icmp_seq=3 ttl=255 time=0.093 ms

56 bytes from 192.168.100.14: icmp_seq=4 ttl=255 time=0.089 ms

 

--- Ping statistics for 192.168.100.14 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.089/0.107/0.167/0.030 ms

# 执行save命令保存交换机当前配置信息。

<Switch> save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully..

# 使用TFTP方式将文件服务器上的switch.ipe文件下载到Switch的主用交换引擎上,以缺省文件名switch.ipe保存。

<Switch> tftp 192.168.100.14 get switch.ipe

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 70.7M  100 70.7M    0     0  1193k      0  0:00:50  0:00:50 --:--:-- 1127k

# 将switch.ipe备份为switch-backup.ipe。

<Sysname> copy switch.ipe switch-backup.ipe

# 执行display device命令查看当前交换引擎的主备分配情况,Master字段显示为设备当前的主用交换引擎,其对应的槽位号为Slot 10;Standby字段显示为设备当前的备用交换引擎,其对应的槽位号为Slot 11。

<Switch> display device

Slot No. Brd Type         Brd Status   Subslot Sft Ver                Patch Ver

 0       NONE             Absent       0       NONE                        None

 1       LSV1QGS12SA1     Normal       0       S9810-R2118                 None

 2       NONE             Absent       0       NONE                        None

 3       NONE             Absent       0       NONE                        None

 4       NONE             Absent       0       NONE                        None

 5       NONE             Absent       0       NONE                        None

 6       NONE             Absent       0       NONE                        None

 7       NONE             Absent       0       NONE                        None

 8       NONE             Absent       0       NONE                        None

 9       NONE             Absent       0       NONE                        None

 10      LSV1SRPC1        Master       0       S9810-R2118                 None

 11      LSV1SRPC1        Standby      0       S9810-R2118                 None

# 指定Switch的主用交换引擎下次启动时所用的主用启动文件为switch.ipe。

<Switch> boot-loader file flash:/switch.ipe slot 16 main

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

Images in IPE:

  switch-cmw710-boot-r2118.bin

  switch-cmw710-system-r2118.bin

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

Add images to target slot.

Decompressing file switch-cmw710-boot-r2118.bin to flash:/switch-cmw710-boot-r2118.bin...............Done.

Decompressing file switch-cmw710-system-r2118.bin to flash:/switch-cmw710-system-r2118.bin..............................................Done.

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

# 指定Switch的主用交换引擎下次启动时所用的备用启动文件为switch-backup.ipe。

<Switch> boot-loader file flash:/switch-backup slot 16 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 16.

# 指定Switch的备用交换引擎下次启动时所用的主用启动文件为switch.ipe。

<Switch> boot-loader file flash:/switch.ipe slot 17 main

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

  switch-cmw710-boot-r2118.bin

  switch-cmw710-system-r2118.bin

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

Add images to slot 17.

Decompressing file switch-cmw710-boot-r2118.bin to slot11#flash:/switch-cmw710-boot-r2118.bin................Done.

Decompressing file switch-cmw710-system-r2118.bin to slot11#flash:/switch-cmw710-system-r2118.bin.................................................Done.

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

# 指定Switch的备用交换引擎下次启动时所用的备用启动文件为switch-backup.ipe。

<Switch> boot-loader file flash:/switch-backup.ipe slot 17 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 17.

# 重启设备。

<Switch> reboot

3.6  验证配置

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

<Switch> display version

H3C Comware Software, Version 7.1.045, Release 2118

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

H3C Switch uptime is 0 weeks, 0 days, 3 hours, 23 minutes

Last reboot reason : User reboot

Boot image: flash:/switch-cmw710-boot-r2118.bin

Boot image version: 7.1.045P16, Release 2118

  Compiled Jun 18 2014 17:52:09

System image: flash:/switch-cmw710-system-r2118.bin

System image version: 7.1.045, Release 2118

  Compiled Jun 18 2014 17:52:09

……略……

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

<Switch> display boot-loader slot 16

Software images on slot 16:

Current software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Main startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Backup startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

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

<Switch> display boot-loader slot 17

Software images on slot 17:

Current software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Main startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Backup startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

3.7  配置文件

#

interface M-GigabitEthernet0/0/0

ip address 192.168.100.66 255.255.255.0

#

4  设备作为FTP client升级版本配置举例

4.1  组网需求

图3所示,Switch和文件服务器通过交换机相连,Switch作为FTP客户端,文件服务器作为FTP服务器。现要求:

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

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

图3 配置组网图

 

4.2  配置思路

·     为了使设备的主用交换引擎和备用交换引擎都能够升级版本,在使用FTP方式将软件版本get到主用交换引擎后,主用交换引擎和备用交换引擎都进行软件版本升级。

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

4.3  使用版本

本举例是在S9800-CMW710-R2118版本上进行配置和验证的。

4.4  配置注意事项

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

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

4.5  配置步骤

4.5.1  文件服务器的配置

# 配置文件服务器的IP地址为192.168.100.14/24,使得与Switch路由可达,具体配置方法略。

# 启动文件服务器上的FTP服务器(以3CDaemon软件为例),设置FTP服务器下载路径、FTP用户名和密码,并开启FTP服务。

图4 配置FTP服务器

 

4.5.2  Switch的配置

# 配置Switch接口IP地址。

<Switch> system-view

[Switch] interface m-gigabitethernet 0/0/0

[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0

[Switch-M-GigabitEthernet0/0/0] quit

[Switch] quit

# 在Switch上ping 文件服务器地址,能够ping通。

<Switch> ping 192.168.100.14

Ping 192.168.100.14 (192.168.100.14): 56 data bytes, press CTRL_C to break

56 bytes from 192.168.100.14: icmp_seq=0 ttl=255 time=0.167 ms

56 bytes from 192.168.100.14: icmp_seq=1 ttl=255 time=0.093 ms

56 bytes from 192.168.100.14: icmp_seq=2 ttl=255 time=0.093 ms

56 bytes from 192.168.100.14: icmp_seq=3 ttl=255 time=0.093 ms

56 bytes from 192.168.100.14: icmp_seq=4 ttl=255 time=0.089 ms

 

--- Ping statistics for 192.168.100.14 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.089/0.107/0.167/0.030 ms

# 执行save命令保存交换机当前配置信息。

<Switch> save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

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

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

# 将文件switch.ipe从FTP服务器下载到Switch的主用交换引擎。

ftp> get switch.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

# 将switch.ipe备份为switch-backup.ipe。

<Sysname> copy switch.ipe switch-backup.ipe

# 执行display device命令查看当前交换引擎的主备分配情况,Master字段显示为设备当前的主用交换引擎,其对应的槽位号为Slot 10;Standby字段显示为设备当前的备用交换引擎,其对应的槽位号为Slot 11。

<Switch> display device

Slot No. Brd Type         Brd Status   Subslot Sft Ver                Patch Ver

 0       NONE             Absent       0       NONE                        None

 1       LSV1QGS12SA1     Normal       0       S9810-R2118                 None

 2       NONE             Absent       0       NONE                        None

 3       NONE             Absent       0       NONE                        None

 4       NONE             Absent       0       NONE                        None

 5       NONE             Absent       0       NONE                        None

 6       NONE             Absent       0       NONE                        None

 7       NONE             Absent       0       NONE                        None

 8       NONE             Absent       0       NONE                        None

 9       NONE             Absent       0       NONE                        None

 10      LSV1SRPC1        Master       0       S9810-R2118                 None

 11      LSV1SRPC1        Standby      0       S9810-R2118                 None

# 指定Switch的主用交换引擎下次启动时所用的主用启动文件为switch.ipe。

<Switch> boot-loader file flash:/switch.ipe slot 16 main

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

Images in IPE:

  switch-cmw710-boot-r2118.bin

  switch-cmw710-system-r2118.bin

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

Add images to target slot.

Decompressing file switch-cmw710-boot-r2118.bin to flash:/switch-cmw710-boot-r2118.bin...............Done.

Decompressing file switch-cmw710-system-r2118.bin to flash:/switch-cmw710-system-r2118.bin..............................................Done.

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

# 指定Switch的主用交换引擎下次启动时所用的备用启动文件为switch-backup.ipe。

<Switch> boot-loader file flash:/switch-backup.ipe slot 16 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 16.

# 指定Switch的备用交换引擎下次启动时所用的主用启动文件为switch.ipe。

<Switch> boot-loader file flash:/switch.ipe slot 17 main

Images in IPE:

  switch-cmw710-boot-r2118.bin

  switch-cmw710-system-r2118.bin

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

Add images to target slot.

Decompressing file switch-cmw710-boot-r2118.bin to slot11#flash:/switch-cmw710-boot-r2118.bin................Done.

Decompressing file switch-cmw710-system-r2118.bin to slot11#flash:/switch-cmw710-system-r2118.bin.................................................Done.

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

# 指定Switch的备用交换引擎下次启动时所用的备用启动文件为switch-backup.ipe。

<Switch> boot-loader file flash:/switch-backup.ipe slot 17 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 17.

# 重启设备。

<Switch> reboot

4.6  验证配置

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

<Switch> display version

H3C Comware Software, Version 7.1.045, Release 2118

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

H3C Switch uptime is 0 weeks, 0 days, 3 hours, 23 minutes

Last reboot reason : User reboot

Boot image: flash:/switch-cmw710-boot-r2118.bin

Boot image version: 7.1.045P16, Release 2118

  Compiled Jun 18 2014 17:52:09

System image: flash:/switch-cmw710-system-r2118.bin

System image version: 7.1.045, Release 2118

  Compiled Jun 18 2014 17:52:09

……略……

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

<Switch> display boot-loader slot 16

Software images on slot 16:

Current software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Main startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Backup startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

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

<Switch> display boot-loader slot 17

Software images on slot 17:

Current software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Main startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Backup startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

4.7  配置文件

#

interface M-GigabitEthernet0/0/0

ip address 192.168.100.66 255.255.255.0

#

5  设备作为FTP server升级版本配置举例

5.1  组网需求

图5所示,Switch和文件服务器通过交换机相连,Switch作为FTP服务器,文件服务器作为FTP客户端。

现要求:

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

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

图5 配置组网图

 

5.2  配置思路

·     为了使设备的主用交换引擎和备用交换引擎都能够升级版本,在使用FTP方式将软件版本put到主用交换引擎后,主用交换引擎和备用交换引擎都进行软件版本升级。

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

5.3  使用版本

本举例是在S9800-CMW710-R2118版本上进行配置和验证的。

5.4  配置注意事项

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

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

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

5.5  配置步骤

5.5.1  Switch上配置FTP服务器

# 配置Switch接口IP地址。

<Switch> system-view

[Switch] interface m-gigabitethernet 0/0/0

[Switch-M-GigabitEthernet0/0/0] ip address 192.168.100.66 255.255.255.0

[Switch-M-GigabitEthernet0/0/0] quit

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

[Switch] local-user abc

[Switch-luser-manage-abc] password simple 123456

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

[Switch-luser-manage-abc] authorization-attribute user-role network-admin

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

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

# 配置服务类型为FTP。

[Switch-luser-manage-abc] service-type ftp

[Switch-luser-manage-abc] quit

# 启动Switch的FTP服务功能。

[Switch] ftp server enable

[Switch] quit

# 执行save命令保存交换机当前配置信息。

<Switch> save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

5.5.2  文件服务器的配置

# 配置主机文件服务器的IP地址为192.168.100.14/24,使得到Switch路由可达,具体配置方法略。

# 从FTP客户端登录FTP服务器,本例以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

# 将本地switch.ipe文件上传到FTP服务器上,缺省以文件名switch.ipe保存。

ftp> put switch.ipe

200 PORT command successful

150 Connecting to port 2903

226 File successfully transferred

ftp: 发送 70445056 字节,用时 1.05Seconds 67282.77Kbytes/sec.

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

ftp> ls switch.ipe

200 PORT command successful

150 Connecting to port 3391

switch.ipe

226 1 matches total

ftp: 收到 24 字节,用时 0.00Seconds 24000.00Kbytes/sec.

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

ftp> bye

5.5.3  Switch上配置启动文件

# 将switch.ipe备份为switch-backup.ipe。

<Sysname> copy switch.ipe switch-backup.ipe

# 执行display device命令查看当前交换引擎的主备分配情况,Master字段显示为设备当前的主用交换引擎,其对应的槽位号为Slot 10;Standby字段显示为设备当前的备用交换引擎,其对应的槽位号为Slot 11。

<Switch> display device

Slot No. Brd Type         Brd Status   Subslot Sft Ver                Patch Ver

 0       NONE             Absent       0       NONE                        None

 1       LSV1QGS12SA1     Normal       0       S9810-R2118                 None

 2       NONE             Absent       0       NONE                        None

 3       NONE             Absent       0       NONE                        None

 4       NONE             Absent       0       NONE                        None

 5       NONE             Absent       0       NONE                        None

 6       NONE             Absent       0       NONE                        None

 7       NONE             Absent       0       NONE                        None

 8       NONE             Absent       0       NONE                        None

 9       NONE             Absent       0       NONE                        None

 10      LSV1SRPC1        Master       0       S9810-R2118                 None

 11      LSV1SRPC1        Standby      0       S9810-R2118                 None

# 指定Switch的主用交换引擎下次启动时所用的主用启动文件为switch.ipe。

<Switch> boot-loader file flash:/switch.ipe slot 16 main

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

Images in IPE:

  switch-cmw710-boot-r2118.bin

  switch-cmw710-system-r2118.bin

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

Add images to slot 16.

Decompressing file switch-cmw710-boot-r2118.bin to flash:/switch-cmw710-boot-r2118.bin...............Done.

Decompressing file switch-cmw710-system-r2118.bin to flash:/switch-cmw710-system-r2118.bin..............................................Done.

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

# 指定Switch的主用交换引擎下次启动时所用的备用启动文件为switch-backup.ipe。

<Switch> boot-loader file flash:/switch-backup.ipe slot 16 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 16.

# 指定Switch的备用交换引擎下次启动时所用的主用启动文件为switch.ipe。

<Switch> boot-loader file flash:/switch.ipe slot 17 main

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

Images in IPE:

  switch-cmw710-boot-r2118.bin

  switch-cmw710-system-r2118.bin

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

Add images to slot 17.

Decompressing file switch-cmw710-boot-r2118.bin to slot11#flash:/switch-cmw710-boot-r2118.bin................Done.

Decompressing file switch-cmw710-system-r2118.bin to slot11#flash:/switch-cmw710-system-r2118.bin.................................................Done.

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

# 指定Switch的备用交换引擎下次启动时所用的备用启动文件为switch-backup.ipe。

<Switch> boot-loader file flash:/switch-backup.ipe slot 17 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 17.

# 重启设备。

<Switch> reboot

5.6  验证配置

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

<Switch> display version

H3C Comware Software, Version 7.1.045, Release 2118

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

H3C Switch uptime is 0 weeks, 0 days, 3 hours, 23 minutes

Last reboot reason : User reboot

Boot image: flash:/switch-cmw710-boot-r2118.bin

Boot image version: 7.1.045P16, Release 2118

  Compiled Jun 18 2014 17:52:09

System image: flash:/switch-cmw710-system-r2118.bin

System image version: 7.1.045, Release 2118

  Compiled Jun 18 2014 17:52:09

……略……

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

<Switch> display boot-loader slot 16

Software images on slot 16:

Current software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Main startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Backup startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

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

<Switch> display boot-loader slot 17

Software images on slot 17:

Current software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Main startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

Backup startup software images:

  flash:/switch-cmw710-boot-r2118.bin

  flash:/switch-cmw710-system-r2118.bin

5.7  配置文件

#

interface M-GigabitEthernet0/0/0

ip address 192.168.100.66 255.255.255.0

#

local-user abc class manage

 password hash $h$6$YMVbbwFL/vviWcQu$+CuTbYCehNZtZo5RCXiadpYbXYWa2omt5TUtEh3UPCg3fZjxYCp5WzbuE2GoowVi2YA/BK+mnSZJZqi5jRDuCg==

 service-type ftp

 authorization-attribute user-role network-admin

#

 ftp server enable

#

6  相关资料

·     H3C S9800系列交换机基础配置指导-Release R2117[R2118]系列

·     H3C S9800系列交换机基础配置命令参考-Release R2117[R2118]系列

 

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

新华三官网
联系我们