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

01-基础配置举例

目录

05-H3C_ISSU典型配置举例

本章节下载 05-H3C_ISSU典型配置举例  (193.40 KB)

05-H3C_ISSU典型配置举例

H3C ISSU典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

资料版本:6W100-20190330

产品版本:Release 7577P04

 

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

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

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

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

 



1  简介

本文档介绍了ISSU兼容和不兼容升级方式的配置举例。

ISSU(In-Service Software Upgrade,不中断业务升级)是一种可靠性高的升级设备启动软件的方式,可以在升级过程中做到业务不中断或中断时间较短。

进行ISSU升级前,请使用display version comp-matirx命令查看升级待升级启动软件包时需要使用的升级方式,使用该命令后,会在Upgrade Way中显示升级方式,具体升级方式请见表1

表1 升级方式和显示参数对应表

升级方式

Upgrade Way字段显示参数

兼容升级

·          Service Upgrade

·          File Upgrade

·          Reboot

不兼容升级

Incompatible upgrade

 

2  配置前提

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

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

3  使用限制

1. ISSU升级对硬件的要求

·              请通过Console口对设备实施ISSU升级。如果通过Telnet或SSH登录设备实施ISSU升级,在升级过程中可能会因Telnet或SSH连接中断,导致ISSU升级无法继续。

·              硬件升级或故障期间,请不要进行ISSU升级。否则可能会导致升级失败或者系统异常。

2. ISSU升级需要满足的条件

·              请仔细阅读当前的软件版本和待升级软件版本的软件版本说明书,确认前后两个版本是否支持使用ISSU方式进行升级。

·              请通过display device命令了解设备的当前状态。请确保此时所有设备均为正常状态,对于故障设备请先行排除故障后,再进行ISSU升级。

·              请通过display mdc命令查看MDC的状态,确保所有MDC的状态均为active才可以进行ISSU升级,否则可能导致该设备升级异常。

·              升级前确保各成员设备的剩余存储空间大于等于新启动软件包大小的2倍。请使用dir命令确认主控板/成员设备的存储介质有足够的空间来存放新的软件包/IPE文件。如果空间不足,请删除不需要的文件。

3. ISSU升级和其他特性之间的限制关系

表2 ISSU升级和其他特性之间的关系

特性

要求

GR或NSR

建议使能LDP、RSVP、OSPF、ISIS、BGP和FSPF等协议的GR或NSR功能,否则ISSU升级期间可能会出现业务中断的现象

BFD

建议去使能LDP、RSVP、OSPF、ISIS、RIP、BGP、VRRP、NQA等协议的BFD功能,否则ISSU升级期间可能会出现业务中断的现象

以太网链路聚合

所有动态聚合组的所有成员端口下LACP超时时间为长超时,即这些成员端口下都没有配置lacp period short命令

IRF

·          通过link-delay命令将以太网接口物理连接状态抑制时间设置为0秒,即不抑制,当接口状态发生改变时立即上报CPU

·          请使能聚合流量重定向功能,确保聚合链路上的流量不中断

·          请配置IRF桥MAC地址的保留时间为永久保留

·          如果需要对整个IRF进行不兼容升级,请先关闭IRF MAD 检测功能,完成ISSU升级后再重新配置

 

4. ISSU升级期间的操作限制

·              ISSU升级期间,请确保网络拓扑稳定,禁止手工重启单板和插拔单板。

·              ISSU升级期间,请确保系统中除了当前执行ISSU升级命令的用户外无其他用户登录。

·              ISSU升级期间,请不要执行ISSU之外的配置命令,以免影响配置效果。

·              禁止对启动软件包进行修改、删除以及重命名等操作。

4  兼容升级典型配置举例

4.1.1  组网需求

图1所示,IRF由两台成员设备组成,现要求使用ISSU方式进行成员设备的升级,将设备启动软件包由R7150版本升级到R7577P01版本。

图1 ISSU兼容升级组网图

 

4.1.2  配置步骤

# 从TFTP server下载new.ipe包到Master设备的根目录下,该IPE包中含有两个待升级启动软件包boot-R7577P01.bin包和system-R7577P01.bin包。

<Sysname> tftp 2.2.2.2 get new.ipe

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

                                 Dload  Upload   Total   Spent    Left  Speed

100   256  100  256     0     0    764      0 --:--:-- --:--:-- --:--:--   810

# 查看各成员设备当前运行的启动软件包。

<Sysname> display boot-loader

Software images on chassis 1 slot 0:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Software images on chassis 1 slot 1:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Software images on chassis 2 slot 0:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Software images on chassis 2 slot 1:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

# 使用display version comp-matrix file ipe命令查看待升级启动软件包的ISSU升级策略。

<Sysname> display version comp-matrix file ipe flash:/new.ipe

Verifying the file flash:/new.ipe on chassis 1 slot 0.....Done.

Identifying the upgrade methods...........Done.

 

  Chassis   Slot              Upgrade Way

  1         0                 Reboot

  1         1                 Reboot

  2         0                 Reboot

  2         1                 Reboot

根据显示信息,本次ISSU升级为兼容重启升级方式中的重启方式。

# 关闭自动回滚功能。

<Sysname> system-view

[Sysname] issu rollback-timer 0

# 开启聚合流量重定向功能。

[Sysname] link-aggregation lacp traffic-redirect-notification enable

# 设置IRF桥MAC地址为永久保留。

[Sysname] irf mac-address persistent always

# 以太网接口物理连接状态抑制时间设置为0秒。

[Sysname] interface ten-gigabitethernet1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] link-delay 0 mode updown

[Sysname-Ten-GigabitEthernet1/0/1] quit

[Sysname] interface ten-gigabitethernet2/0/1

[Sysname-Ten-GigabitEthernet2/0/1] link-delay 0 mode updown

[Sysname-Ten-GigabitEthernet2/0/1] quit

[Sysname] quit

# 对Standby设备进行升级。

<Sysname> issu load file ipe flash:/new.ipe chassis 2

This operation will delete the rollback point information for the previous upgra

de and maybe get unsaved configuration lost. Continue? [Y/N]:y

Verifying the file flash:/boot-R7577P01.bin on Chassis 1 slot 0...Done.

Verifying the file flash:/system-R7577P01.bin on Chassis 1 slot 0...Done.

Copying file flash:/boot-R7577P01.bin to chassis2#slot0#flash:/boot-R7577P01.bin......Done.

Copying file flash:/system-R7577P01.bin to chassis2#slot0#flash:/system-R7577P01.bin......Done.

Verifying the file flash:/boot-R7577P01.bin on Chassis 2 slot 0...Done.

Verifying the file flash:/system-R7577P01.bin on Chassis 2 slot 0...Done.

Copying file flash:/boot-R7577P01.bin to chassis2#slot1#flash:/boot-R7577P01.bin......Done.

Copying file flash:/system-R7577P01.bin to chassis2#slot1#flash:/system-R7577P01.bin......Done.

Verifying the file flash:/boot-R7577P01.bin on Chassis 2 slot 1...Done.

Verifying the file flash:/system-R7577P01.bin on Chassis 2 slot 1...Done.

Upgrade summary according to following table:

 

flash:/boot-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

flash:/system-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

  Chassis   Slot              Upgrade Way

  2         0                 Reboot

  2         1                 Reboot

Upgrading software images to compatible versions. Continue? [Y/N]: y

This operation might take several minutes, please wait...Done.

# Standby设备完成重启后,使用display issu state查看ISSU升级的状态和Standby设备当前运行的软件版本。

<Sysname> display issu state

ISSU state: Loaded

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 2

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 7577P01

  system: 7.1.070, Release 7577P01

Current software images:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

# 确认Standby设备当前运行的是待升级的软件版本后,将Master设备切换成主设备。

<Sysname> issu run switchover

Upgrade summary according to following table:

 

flash:/boot-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

flash:/system-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

  Chassis   Slot              Switchover Way

  1         0                 Active standby process switchover

Upgrading software images to compatible versions. Continue? [Y/N]:y

This operation might take several minutes, please wait...Done.

# 使用display issu state查看是否切换完成。

<Sysname> display issu state

ISSU state: Switchover

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 2

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 7577P01

  system: 7.1.070, Release 7577P01

Current software images:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

//确认ISSU状态为Switchover后,可进行下一步操作。

# 对原主设备进行升级。

<Sysname> issu commit chassis 1

This operation will delete the rollback point information for the previous upgra

de and maybe get unsaved configuration lost. Continue? [Y/N]:y

Copying file flash:/boot-R7577P01.bin to chassis1#slot1#flash:/boot-R7577P01.bin......Done.

Verifying the file flash:/boot-R7577P01.bin on Chassis 1 slot 1...Done.

Copying file flash:/system-R7577P01.bin to chassis1#slot1#flash:/system-R7577P01.bin......Done.

Verifying the file flash:/system-R7577P01.bin on Chassis 1 slot 1...Done.

Upgrade summary according to following table:

 

flash:/boot-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

flash:/system-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

  Chassis   Slot              Upgrade Way

  1         0                 Reboot

  1         1                 Reboot

Upgrading software images to compatible versions. Continue? [Y/N]: y

# Master设备重启后,使用display issu state查看ISSU升级的状态。

<Sysname> display issu state

ISSU state: Init

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 7577P01

  system: 7.1.070, Release 7577P01

Current software images:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

// 当ISSU状态为Init后,表明ISSU升级工作完成。

4.1.3  验证配置

# 升级完成后,通过display install active命令查看设备当前运行的启动软件包版本,可以看到设备当前运行的启动软件包为R7577P01版本。

<Sysname> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

Active packages on chassis 1 slot 1:

  flash://boot-R7577P01.bin

  flash:/system-R7577P01.bin

Active packages on chassis 2 slot 0:

  flash://boot-R7577P01.bin

  flash:/system-R7577P01.bin

Active packages on chassis 2 slot 1:

  flash://boot-R7577P01.bin

  flash:/system-R7577P01.bin

4.1.4  配置文件

#

 irf mac-address persistent always

 irf auto-update enable

 irf auto-merge enable

 undo irf link-delay

 irf member 1 priority 1

 irf mode normal

#

 issu rollback-timer 0

#

 link-aggregation lacp traffic-redirect-notification enable

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 link-delay 0 mode updown

#

interface Ten-GigabitEthernet2/0/1

 port link-mode bridge

 link-delay 0 mode updown

#

5  不兼容升级典型配置举例

5.1.1  组网需求

图2所示,IRF由两台成员设备组成,现要求通过ISSU方式进行全部成员设备启动软件包的升级,将设备启动软件包由R7150版本升级到R7577P01版本。

图2 ISSU不兼容升级组网图

 

5.1.2  配置步骤

# 从TFTP Server下载new.ipe包到Mster设备的根目录下,该IPE包中含有两个待升级启动软件包boot-R7577P01.bin包和system-R7577P01.bin包。

<Sysname> tftp 2.2.2.2 get new.ipe

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

                                 Dload  Upload   Total   Spent    Left  Speed

100 43.8M  100 42.8M    0     0   159k      0  0:04:34  0:04:34 --:--:--  165k

# 查看各成员设备当前运行的启动软件包。

<Sysname> display boot-loader

Software images on chassis 1 slot 0:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Software images on chassis 1 slot 1:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Software images on chassis 2 slot 0:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Software images on chassis 2 slot 1:

Current software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Main startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

Backup startup software images:

  flash:/BOOT-R7150.bin

  flash:/SYSTEM-R7150.bin

# 使用display version comp-matrix file ipe命令查看待升级启动软件包的ISSU升级策略。

<Sysname> display version comp-matrix file ipe flash:/new.ipe

 

Verifying image file flash:/new.ipe........Done.

Identifying the upgrade methods...........Done.

Incompatible upgrade.

//根据显示信息Incompatible upgrade,本次ISSU升级为不兼容升级,升级过程中需要重启设备。

# 开启聚合流量重定向功能。

[Sysname] link-aggregation lacp traffic-redirect-notification enable

# 设置IRF桥MAC地址为永久保留。

[Sysname] irf mac-address persistent always

# 以太网接口物理连接状态抑制时间设置为0秒。

[Sysname] interface ten-gigabitethernet1/0/1

[Sysname-Ten-GigabitEthernet1/0/1] link-delay 0 mode updown

[Sysname-Ten-GigabitEthernet1/0/1] quit

[Sysname] interface ten-gigabitethernet2/0/1

[Sysname-Ten-GigabitEthernet2/0/1] link-delay 0 mode updown

[Sysname-Ten-GigabitEthernet2/0/1] quit

[Sysname] quit

# 对Standby设备进行升级。

<Sysname> issu load file ipe flash:/new.ipe chassis 2

Verifying the file flash:/boot-7577P01.bin on Chassis 1 slot 0...Done.

Verifying the file flash:/system-7577P01.bin on Chassis 1 slot 0...Done.

Copying file flash:/boot-7577P01.bin to chassis2#slot0#flash:/boot-7577P01.bin......Done.

Copying file flash:/system-7577P01.bin to chassis2#slot0#flash:/system-7577P01.bin......Done.

Verifying the file flash:/boot-7577P01.bin on Chassis 2 slot 0...Done.

Verifying the file flash:/system-7577P01.bin on Chassis 2 slot 0...Done.

Copying file flash:/boot-7577P01.bin to chassis2#slot1#flash:/boot-7577P01.bin......Done.

Copying file flash:/system-7577P01.bin to chassis2#slot1#flash:/system-7577P01.bin......Done.

Verifying the file flash:/boot-7577P01.bin on Chassis 2 slot 1...Done.

Verifying the file flash:/system-7577P01.bin on Chassis 2 slot 1...Done.

Upgrade summary according to following table:

 

flash:/boot-7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

flash:/system-7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

  Chassis   Slot              Upgrade Way

  2         0                 Reboot

  2         1                 Reboot

Upgrading software images to compatible versions. Continue? [Y/N]: y

# Standby设备重启完成后,使用display issu state查看当前ISSU升级的状态和Standby设备当前运行的软件版本。

<Sysname> display issu state

ISSU state: Loaded

Compatibility: Incompatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 2

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 7577P01

  system: 7.1.070, Release 7577P01

Current software images:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

# 确认Standby设备当前运行的是待升级的软件版本后,执行issu run switchover将Standby设备切换成主设备,同时Mster设备会加载新的启动软件包进行重启。

<Sysname> issu run switchover

Upgrade summary according to following table:

 

flash:/boot-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

flash:/system-R7577P01.bin

  Running Version             New Version

  Release 7150                Release 7577P01

 

  Chassis   Slot              Switchover Way

  1         1                 Active standby process switchover

Upgrading software images to compatible versions. Continue? [Y/N]:y

# 使用display issu state查看是否切换完成。

<Sysname> display issu state

ISSU state: Init

Compatibility: Incompatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 7577P01

  system: 7.1.070, Release 7577P01

Current software images:

  flash:/boot-7577P01.bin

  flash:/system-7577P01.bin

//当ISSU状态显示为Init,表明本次ISSU升级结束。

5.1.3  验证配置

# 升级完成后,通过display install active命令查看设备当前运行的启动软件包版本,可以看到设备当前运行的启动软件包为R7577P01版本。

<Sysname> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

Active packages on chassis 1 slot 1:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

Active packages on chassis 2 slot 0:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

Active packages on chassis 2 slot 1:

  flash:/boot-R7577P01.bin

  flash:/system-R7577P01.bin

5.1.4  配置文件

#

 irf mac-address persistent always

 irf auto-update enable

 irf auto-merge enable

 undo irf link-delay

 irf member 1 priority 1

 irf mode normal

#

 issu rollback-timer 0

#

 link-aggregation lacp traffic-redirect-notification enable

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 link-delay 0 mode updown

#

interface Ten-GigabitEthernet2/0/1

 port link-mode bridge

 link-delay 0 mode updown

#

6  相关资料

·              H3C S10500系列交换机 基础配置指导-R757X

·              H3C S10500系列交换机 基础命令参考-R757X

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

新华三官网
联系我们