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

01-基础配置举例

目录

01-S12500_ISSU典型配置举例

本章节下载 01-S12500_ISSU典型配置举例  (315.38 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S12500/S12500/Configure/Typical_Configuration_Example/H3C_S12500-R7129-6W100/01/201309/796595_30005_0.htm

01-S12500_ISSU典型配置举例

目  录

1 简介

2 配置前提

3 使用限制

4 Install命令升级配置举例

4.1 HTTP特性升级配置举例(独立运行模式)

4.1.1 组网需求

4.1.2 使用版本

4.1.3 配置注意事项

4.1.4 配置步骤

4.1.5 验证配置

4.2 HTTP特性回滚配置举例(独立运行模式)

4.2.1 组网需求

4.2.2 使用版本

4.2.3 配置注意事项

4.2.4 配置步骤

4.2.5 验证配置

4.3 HTTP特性升级配置举例(IRF模式)

4.3.1 组网需求

4.3.2 使用版本

4.3.3 配置注意事项

4.3.4 配置步骤

4.3.5 验证配置

4.4 HTTP特性回滚配置举例(IRF模式)

4.4.1 组网需求

4.4.2 使用版本

4.4.3 配置注意事项

4.4.4 配置步骤

4.4.5 验证配置

5 ISSU命令升级配置举例

5.1 HTTP特性兼容升级配置举例(独立运行模式)

5.1.1 组网需求

5.1.2 使用版本

5.1.3 配置注意事项

5.1.4 配置步骤

5.1.5 验证配置

5.2 HTTP特性不兼容升级配置举例(独立运行模式)

5.2.1 组网需求

5.2.2 使用版本

5.2.3 配置注意事项

5.2.4 配置步骤

5.2.5 验证配置

5.3 HTTP特性回滚配置举例(独立运行模式)

5.3.1 组网需求

5.3.2 使用版本

5.3.3 配置注意事项

5.3.4 配置步骤

5.3.5 验证配置

5.4 HTTP特性兼容升级配置举例(IRF模式)

5.4.1 组网需求

5.4.2 使用版本

5.4.3 配置注意事项

5.4.4 配置步骤

5.4.5 验证配置

5.5 HTTP特性不兼容升级配置举例(IRF模式)

5.5.1 组网需求

5.5.2 使用版本

5.5.3 配置注意事项

5.5.4 配置步骤

5.5.5 验证配置

5.6 HTTP特性回滚配置举例(IRF模式)

5.6.1 组网需求

5.6.2 使用版本

5.6.3 配置注意事项

5.6.4 配置步骤

5.6.5 验证配置

6 相关资料

 


1  简介

本文档介绍了通过install命令和issu命令升级设备的配置举例。

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

ISSU包括三种升级策略:增量升级、软重启升级和重启升级。进行ISSU升级时,设备会根据新、旧软件版本差异自动选择一种升级策略。

ISSU有两种升级方式:install命令升级方式和issu命令升级方式。其主要差异在于:

·     install命令仅适用与兼容版本之间的升级,而issu命令适用于兼容版本之间以及不兼容版本之间的升级。

·     install命令可支持补丁的安装和卸载,而issu命令不支持。

·     install命令是对每块主控板实施升级操作,因此可以将每个升级动作对系统的影响控制在最小的范围内,属于高级应用方式,但需要操作者对系统有较深入的了解,对升级每个动作所产生的影响有着准确的判断。而issu命令属于批处理命令,在IRF环境中是以成员设备为升级对象,对系统的影响范围比install命令大,但对操作者要求不高,适合大多数用户。因此一般推荐使用issu命令。

2  配置前提

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

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

3  使用限制

1. ISSU升级前需要满足的条件

·     请仔细阅读软件版本说明书。了解要升级哪些类型的软件包,这些软件包之间是否兼容,以及它们和当前设备上运行的软件包版本是否兼容。根据兼容情况选择升级命令。兼容版本之间升级可以使用install命令进行升级,也可以使用issu命令进行升级;不兼容版本之间只能使用issu命令实施升级。

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

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

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

·     请使用dir命令确认主控板的存储介质有足够的空间来存放新的软件包/IPE文件。如果空间不足,可删除部分暂时不用的文件。

·     如果需要对整个IRF进行兼容版本重启升级,在ISSU升级前,请配置IRF桥MAC地址的保留时间为6分钟或永久保留。(IRF模式)

·     如果需要对整个IRF进行不兼容升级,并且IRF桥MAC地址为将执行issu load设备中的某台设备的MAC地址时,请在执行issu load命令前配置IRF桥MAC地址的保留时间为永久保留。(IRF模式)

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

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

·     请开启LDP、RSVP、OSPF、ISIS、BGP等协议的GR或NSR功能,否则ISSU升级期间可能会出现业务中断的现象。

3. ISSU升级对硬件的要求

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

·     交换网板支持逐次重启(Sequence Reboot)。重启一块交换网板时,硬件会自动选择其他交换网板接替工作,以保证业务功能正常。因此,在ISSU升级前请确保设备上至少拥有两块(以上)的交换网板。否则可能会因该交换网板重启又无备份的交换网板,导致业务中断。

·     512M内存的接口板不支持软重启升级操作。

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

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

·     issuinstall命令互斥,只能选择其中的一种方式进行升级。

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

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

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

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

4  Install命令升级配置举例

本文档中的典型配置都是以HTTP特性的Feature包进行增量升级为例,对于IPE、Boot、System以及补丁包的升级,配置步骤类似,对系统软件功能的影响以及提示信息根据实际升级的软件包会有所差异。

4.1  HTTP特性升级配置举例(独立运行模式)

4.1.1  组网需求

图1所示,Device作为TFTP Client,和TFTP Server之间路由可达,包含HTTP特性R0202版本的IPE文件保存在TFTP Server上。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),要求将Device上的HTTP特性从R0201版本升级到R0202版本。

图1 HTTP特性升级组网图

 

4.1.2  使用版本

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

4.1.3  配置注意事项

·     IPE包可包含多个不同的软件包,可以通过命令display install ipe-info查看该IPE文件中包含了哪些软件包。当使用IPE进行升级时首先需要将其解压缩,生成软件包,再根据实际需求选择相应的软件包进行升级。

·     IPE文件、BIN包只需下载到主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将主用主控板上的该文件拷贝到备用主控板后再安装/升级。

·     升级已有软件包时,若存在备用主控板,必须先对备用主控板执行升级操作,再执行主用主控板的升级。否则,安装/升级过程可能出错。

4.1.4  配置步骤

# 从TFTP server上下载包含新版本HTTP特性的IPE文件。

<Device> tftp 2.2.2.2 get http-r0202.ipe

# 解压IPE文件到Device的存储介质中。

<Device> install add flash:/http-r0202.ipe flash:/

# 查看升级前激活的软件包。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Device> install activate feature flash:/http-r0202.bin slot 1 test

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

                Slot                   Upgrade Way

                   1               Service Upgrade

                 1.1                  File Upgrade

 

Influenced service according to following table on slot 1:

  flash:/http-r0202.bin

         HTTP      CFA

<Device> install activate feature flash:/http-r0202.bin slot 0 test

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

                Slot                   Upgrade Way

                   0               Service Upgrade

                 0.1                  File Upgrade

 

Influenced service according to following table on slot 0:

  flash:/http-r0202.bin

         HTTP      CFA

上述显示信息中,“Upgrade Way”显示为Service UpgradeFile Upgrade,表示采用的升级策略是增量升级;升级过程中将受影响的功能模块为HTTP和CFA。

# 激活新版本的HTTP软件包,从而对HTTP特性进行升级。

<Device> install activate feature flash:/http-r0202.bin slot 1

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

                Slot                   Upgrade Way

                   1               Service Upgrade

                 1.1                  File Upgrade

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

<Device> install activate feature flash:/http-r0202.bin slot 0

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

                Slot                   Upgrade Way

                   0               Service Upgrade

                 0.1                  File Upgrade

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

# 确认软件包更改,完成升级操作。

<Device> install commit

4.1.5  验证配置

# 升级完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到R0202版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

4.2  HTTP特性回滚配置举例(独立运行模式)

4.2.1  组网需求

图2所示,Device作为TFTP Client,和TFTP Server之间路由可达。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),Device上的HTTP特性已经从R0201升级到R0202版本而且没有执行install commit确认操作,要求将HTTP特性从R0202版本回滚到R0201版本。

图2 HTTP特性回滚组网图

 

4.2.2  使用版本

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

4.2.3  配置注意事项

·     通过Install命令方式升级时,在执行install commit命令后,设备将不能再对该升级进行回滚操作。

·     当升级策略为增量升级时,软件包回滚只在设备本次运行过程中生效,用户只有通过install commit命令确认软件包的更改后,才能使此次的回滚操作在系统重启后生效。

·     当升级策略为增量升级时,系统最多支持50个回滚点,当回滚点超过最大值时,旧的回滚点会被删除,新的回滚点会被保存。

4.2.4  配置步骤

本举例是在执行了4.1  HTTP特性升级配置举例(独立运行模式)中的升级操作,但未执行install commit确认操作的前提下进行的配置。

# 查看当前Device上的软件包激活列表。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

# 查看当前Device上的所有回滚点信息。

<Device> display install rollback

  Install rollback information 1 on slot 0:

    Updating from flash:/http-r0201.bin

             to flash:/http-r0202.bin.

  Install rollback information 2 on slot 1:

    Updating from flash:/http-r0201.bin

             to flash:/http-r0202.bin.

# 将HTTP特性回滚到R0201版本。

<Device> install rollback to 1

<Device> install rollback to 2

# 确认软件包更改,完成回滚操作。

<Device> install commit

4.2.5  验证配置

# 回滚操作完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经回滚到R0201版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

4.3  HTTP特性升级配置举例(IRF模式)

4.3.1  组网需求

图3所示,IRF作为TFTP Client,和TFTP Server之间路由可达,包含R0202版本HTTP特性的IPE文件保存在TFTP Server上。IRF由Master和Standby两台成员设备组成(Master的成员编号为1,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1;Standby的成员编号为2,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),要求将IRF上的HTTP特性从R0201版本升级到R0202版本。

图3 HTTP特性升级组网图

 

4.3.2  使用版本

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

4.3.3  配置注意事项

·     IPE包可包含多个不同的软件包,可以通过命令display install ipe-info查看该IPE文件中包含了哪些软件包。当使用IPE进行升级时首先需要将其解压缩,生成软件包,再根据实际需求选择相应的软件包进行升级。

·     IPE文件、BIN包只需下载到全局主用主控板的存储介质上。用户在安装/升级全局备用主控板的软件时,系统会提示用户,是否需要将全局主用主控板上的该文件拷贝到全局备用主控板后再安装/升级。

·     升级已有软件包时,以成员设备为单位进行,先升级Standby,再升级Master。成员设备内升级时,必须先对本地备用主控板执行升级操作,再执行本地主用主控板的升级。否则,安装/升级过程可能出错。

4.3.4  配置步骤

# 从TFTP Server上下载包含新版本HTTP特性的IPE文件。

<Master> tftp 2.2.2.2 get http-r0202.ipe

# 解压IPE文件到全局主用主控板的存储介质中。

<Master> install add flash:/http-r0202.ipe flash:

# 查看升级前激活的软件包。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Master> install activate feature flash:/http-r0202.bin chassis 2 slot 1 test

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                     Upgrade Way

         2         1              Service Upgrade

         2       1.1                 File Upgrade

 

Influenced service according to following table on chassis 2 slot 1:

  flash:/http-r0202.bin

         HTTP      CFA

<Master> install activate feature flash:/http-r0202.bin chassis 2 slot 0 test

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      2         0                  Service Upgrade

      2       0.1                     File Upgrade

         

Influenced service according to following table on chassis 2 slot 0:

  flash:/http-r0202.bin

         HTTP      CFA

<Master> install activate feature flash:/http-r0202.bin chassis 1 slot 1 test

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      1         1                  Service Upgrade

      1       1.1                     File Upgrade

         

Influenced service according to following table on chassis 1 slot 1:

  flash:/http-r0202.bin

         HTTP      CFA

<Master> install activate feature flash:/http-r0202.bin chassis 1 slot 0 test

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      1         0                  Service Upgrade

      1       0.1                     File Upgrade

         

Influenced service according to following table on chassis 1 slot 0:

  flash:/http-r0202.bin

         HTTP      CFA

上述显示信息中,“Upgrade Way”显示为Service UpgradeFile Upgrade,表示采用的升级策略是增量升级;升级过程中将受影响的功能模块为HTTP和CFA。

# 激活新版本的HTTP软件包,从而对HTTP特性进行升级。

<Master> install activate feature flash:/http-r0202.bin chassis 2 slot 1

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      2         1                  Service Upgrade

      2       1.1                     File Upgrade

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

<Master> install activate feature flash:/http-r0202.bin chassis 2 slot 0

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      2         0                  Service Upgrade

      2       0.1                     File Upgrade

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

<Master> install activate feature flash:/http-r0202.bin chassis 1 slot 1

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      1         1                  Service Upgrade

      1       1.1                     File Upgrade

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

<Master> install activate feature flash:/http-r0202.bin chassis 1 slot 0

Upgrade summary according to following table:

 

flash:/http-r0202.bin

     Running Version                   New Version

          Alpha 0201                    Alpha 0202

 

Chassis      Slot                      Upgrade Way

      1         0                  Service Upgrade

      1       0.1                     File Upgrade

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

# 确认软件包更改,完成升级操作。

<Master> install commit

4.3.5  验证配置

# 升级完成后,通过display install active命令查看IRF的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到R0202版本。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

4.4  HTTP特性回滚配置举例(IRF模式)

4.4.1  组网需求

图4所示,IRF作为TFTP Client,和TFTP Server之间路由可达。IRF由Master和Standby两台成员设备组成(Master的成员编号为1,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1;Standby的成员编号为2,主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),IRF上的HTTP特性已经从R0201升级到R0202版本而且没有执行install commit确认操作,要求将HTTP特性从R0202版本回滚到R0201版本。

图4 HTTP特性回滚组网图

 

4.4.2  使用版本

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

4.4.3  配置注意事项

·     通过Install命令方式升级时,在执行install commit命令后,设备将不能再对该升级进行回滚操作。

·     当升级策略为增量升级时,软件包回滚只在设备本次运行过程中生效,用户只有通过install commit命令确认软件包的更改后,才能使此次的回滚操作在系统重启后生效。

·     当升级策略为增量升级时,系统最多支持50个回滚点,当回滚点超过最大值时,旧的回滚点会被删除,新的回滚点会被保存。

4.4.4  配置步骤

本举例是在执行了4.3  HTTP特性升级配置举例(IRF模式)中的升级操作,但未执行install commit确认操作的前提下进行的配置。

# 查看当前IRF上的软件包激活列表。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

# 查看回滚点信息。

<Master> display install rollback

  Install rollback information 1 on chassis 1 slot 0:

    Updating from flash:/http-r0201.bin

             to flash:/http-r0202.bin.

  Install rollback information 2 on chassis 1 slot 1:

    Updating from flash:/http-r0201.bin

             to flash:/http-r0202.bin.

  Install rollback information 3 on chassis 2 slot 0:

    Updating from flash:/http-r0201.bin

             to flash:/http-r0202.bin.

  Install rollback information 4 on chassis 2 slot 1:

    Updating from flash:/http-r0201.bin

             to flash:/http-r0202.bin.

# 将HTTP软件包回滚到R0201版本。

<Master> install rollback to 1

<Master> install rollback to 2

<Master> install rollback to 3

<Master> install rollback to 4

# 确认软件包更改,完成回滚操作。

<Master> install commit

4.4.5  验证配置

回滚操作完成后,通过display install active命令查看IRF的软件包激活列表,可以看到该列表已更新,HTTP特性已经回滚到R0201版本。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

5  ISSU命令升级配置举例

本文档中的典型配置都是以HTTP特性的Feature包进行增量升级为例,对于IPE、Boot、System以及补丁包的升级,配置步骤类似,对系统软件功能的影响以及提示信息根据实际升级的软件包的类型以及升级策略等会有所差异。

5.1  HTTP特性兼容升级配置举例(独立运行模式)

5.1.1  组网需求

图5所示,Device作为TFTP Client,和TFTP Server之间路由可达,R0202版本HTTP特性的BIN文件保存在TFTP Server上。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),要求将Device上的HTTP特性通过issu命令升级方式,从R0201版本升级到R0202版本(两个版本相互兼容)。

图5 HTTP特性升级组网图

 

5.1.2  使用版本

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

5.1.3  配置注意事项

·     IPE文件、BIN包只需下载到主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将主用主控板上的该文件拷贝到备用主控板后再安装/升级。

·     升级已有软件包时,若存在备用主控板,必须先对备用主控板执行升级操作,升级完成并主备倒换后,再执行主用主控板的升级。否则,安装/升级过程可能出错。

5.1.4  配置步骤

# 从TFTP server下载包含新版本HTTP软件包的BIN文件。

<Device> tftp 2.2.2.2 get http-r0202.bin

# 查看升级前的软件包激活列表。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Device> display version comp-matrix file feature flash:/http-r0202.bin

Feature image: flash:/http-r0202.bin

  Version:

  V700R001B31D002

  Version compatibility list:

  V700R001B31D001

  V700R001B31D002

  Version dependency system list:

  V700R001B31D001

  V700R001B31D002

                                               

  Slot                        Upgrade Way

  0                           Service Upgrade

  0.1                         File Upgrade

  1                           Service Upgrade

  1.1                         File Upgrade

Influenced service according to following table on slot 0:

  flash:/http-r0202.bin

         HTTP      CFA

Influenced service according to following table on slot 1:

  flash:/http-r0202.bin

         HTTP      CFA

上述显示信息中,设备上当前运行的软件版本(V700R001B31D001)在“Version compatibility list”中,说明本次升级为兼容版本升级;“Upgrade Way”显示为Service Upgrade File Upgrade,表示采用的升级策略是增量升级;升级过程中将受影响的功能模块为HTTP和CFA。

# 升级备用主控板的HTTP软件包。

<Device> issu load file feature flash:/http-r0202.bin slot 1

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  1                           Service Upgrade

  1.1                         File Upgrade

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

# 对HTTP进程进行主备倒换。

<Device> issu run switchover

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  0                           Active standby process switchover

  0.1                         Active standby process switchover

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

#升级原主用主控板的软件包。

<Device> issu commit slot 0

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  0                           Service Upgrade

  0.1                         File Upgrade

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

5.1.5  验证配置

# 升级完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到R0202版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

5.2  HTTP特性不兼容升级配置举例(独立运行模式)

5.2.1  组网需求

图6所示,Device作为TFTP Client,和TFTP Server之间路由可达,R0202版本HTTP特性的BIN文件保存在TFTP Server上。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),要求将Device上的HTTP特性通过issu命令升级方式,从R0201版本升级到R0202版本(两个版本不兼容)。

图6 HTTP特性升级组网图

 

5.2.2  使用版本

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

5.2.3  配置注意事项

·     IPE文件、BIN包只需下载到主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将主用主控板上的该文件拷贝到备用主控板后再安装/升级。

·     升级已有软件包时,若存在备用主控板,必须先对备用主控板执行升级操作,再执行主用主控板的升级。否则,安装/升级过程可能出错。

5.2.4  配置步骤

# 从TFTP server下载包含新版本HTTP软件包的BIN文件。

<Device> tftp 2.2.2.2 get http-r0202.bin

# 查看升级前激活的软件包。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Device> display version comp-matrix file feature flash:/http-r0202.bin

Feature image: flash:/http-r0202.bin

  Version:

  V700R001B31D002

  Version compatibility list:

  V700R001B31D002

  Version dependency system list:

  V700R001B31D001

  V700R001B31D002

Incompatible upgrade.

上述显示信息中,设备上当前运行的软件版本(V700R001B31D001)不在“Version compatibility list”中,说明本次升级为不兼容版本升级;升级过程中对应的主控板会以新版本重新启动。

# 升级备用主控板的HTTP软件包。

<Device> issu load file feature flash:/http-r0202.bin slot 1

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  1                           Reboot

  1.1                         Reboot

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

#升级主用主控板的HTTP软件包。

<Device> issu run switchover

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Slot                        Upgrade Way

  0                           Reboot

  0.1                         Reboot

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

5.2.5  验证配置

# 升级完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到R0202版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

5.3  HTTP特性回滚配置举例(独立运行模式)

5.3.1  组网需求

图7所示,Device作为TFTP Client,和TFTP Server之间路由可达,R0202版本HTTP特性的BIN文件保存在TFTP Server上。Device上配备了两块主控板(主用主控板所在的槽位号为0,备用主控板所在的槽位号为1),Device上的HTTP特性已经从R0201升级到R0202版本而且没有执行issu commit确认操作,要求将HTTP版本从R0202回滚到R0201版本。

图7 HTTP特性升级组网图

 

5.3.2  使用版本

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

5.3.3  配置注意事项

·     当ISSU升级状态为Loading时进行手工回滚,则直接退出本次升级,并且不会进行回滚操作。

·     当ISSU升级状态为Loaded和Accepted时,支持手工回滚。

·     兼容升级、ISSU升级状态为Switching和Switchover时,支持手工回滚。

·     不兼容升级、ISSU升级状态为Switching时,不支持手工回滚。

·     当ISSU升级状态为Committing时,不允许进行手工和自动回滚操作。

5.3.4  配置步骤

本举例是在执行了5.1  HTTP特性兼容升级配置举例(独立运行模式)中的升级操作,但未执行issu commit确认操作的前提下进行的配置。

# 查看Device上的软件包激活列表。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

# 将HTTP软件包回滚到R0201版本。

<Device> issu rollback

This command will quit the ISSU process and the specified card will roll back to the previous version. Continue? [Y/N]:Y

5.3.5  验证配置

# 回滚操作完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经回滚到R0201版本。

<Device> display install active

Active packages on slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

5.4  HTTP特性兼容升级配置举例(IRF模式)

5.4.1  组网需求

图8所示,IRF作为TFTP Client,和TFTP Server之间路由可达,R0202版本HTTP特性的BIN文件保存在TFTP Server上。IRF由Master和Standby两台成员设备组成(Master的成员编号为1,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1;Standby的成员编号为2,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1),要求将IRF上的HTTP特性从R0201版本升级到R0202版本。

图8 HTTP特性升级组网图

 

5.4.2  使用版本

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

5.4.3  配置注意事项

·     IPE文件、BIN包只需下载到全局主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将全局主用主控板上的该文件拷贝到全局备用主控板后再安装/升级。

·     升级已有软件包时,以成员设备为单位进行,先升级Standby,再升级Master。成员设备内升级时,必须先对本地备用主控板执行升级操作,再执行本地主用主控板的升级。否则,安装/升级过程可能出错。

5.4.4  配置步骤

# 从TFTP server下载包含新版本HTTP软件包的BIN文件。

<Master> tftp 2.2.2.2 get http-r0202.bin

# 查看当前IRF上的软件包激活列表。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Master> display version comp-matrix file feature flash:/http-r0202.bin

Feature image: flash:/http-r0202.bin

  Version:

  V700R001B31D002

  Version compatibility list:

  V700R001B31D001

  V700R001B31D002

  Version dependency system list:

  V700R001B31D001

  V700R001B31D002

 

  Chassis   Slot              Upgrade Way

  1         0                 Service Upgrade

  1         0.1               File Upgrade

  1         1                 Service Upgrade

  1         1.1               File Upgrade

  2         0                 Service Upgrade

  2         0.1               File Upgrade

  2         1                 Service Upgrade

  2         1.1               File Upgrade

 

Influenced service according to following table on chassis 1 slot 0:

  flash:/http-r0202.bin

         HTTP      CFA

Influenced service according to following table on chassis 1 slot 1:

  flash:/http-r0202.bin

         HTTP      CFA

Influenced service according to following table on chassis 2 slot 0:

  flash:/http-r0202.bin

         HTTP      CFA

Influenced service according to following table on chassis 2 slot 1:

  flash:/http-r0202.bin

         HTTP      CFA

上述显示信息中,设备上当前运行的软件版本(V700R001B31D001)在“Version compatibility list”中,说明本次升级为兼容版本升级;“Upgrade Way”显示为Service Upgrade File Upgrade,表示采用的升级策略是增量升级;升级过程中将受影响的功能模块为HTTP和CFA。

# 升级Standby的HTTP软件包。

<Master> issu load file feature flash:/http-r0202.bin chassis 2

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Chassis   Slot              Upgrade Way

  2         0                 Service Upgrade

  2         0.1               File Upgrade

  2         1                 Service Upgrade

  2         1.1               File Upgrade

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

# 对HTTP进程进行主备倒换。

<Master> issu run switchover

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Chassis   Slot              Switchover Way

  1         0                 Active standby process switchover

  1         0.1               Active standby process switchover

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

# 确认并升级Master的软件包。

<Master> issu commit chassis 1

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Chassis   Slot              Upgrade Way

  1         0                 Service Upgrade

  1         1.1               File Upgrade

  1         1                 Service Upgrade

  1         1.1               File Upgrade

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

5.4.5  验证配置

# 升级完成后,通过display install active命令查看IRF的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到R0202版本。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

5.5  HTTP特性不兼容升级配置举例(IRF模式)

5.5.1  组网需求

图9所示, IRF作为TFTP Client,和TFTP Server之间路由可达,R0202版本HTTP特性的BIN文件保存在TFTP Server上。IRF由Master和Standby两台成员设备组成(Master的成员编号为1,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1;Standby的成员编号为2,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1),要求将IRF上的HTTP特性通过issu命令升级方式,从R0201版本升级到R0202版本(两个版本不兼容)。

图9 HTTP软件包升级组网图

 

5.5.2  使用版本

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

5.5.3  配置注意事项

·     IPE文件、BIN包只需下载到全局主用主控板的存储介质上。用户在安装/升级备用主控板的软件时,系统会提示用户,是否需要将全局主用主控板上的该文件拷贝到全局备用主控板后再安装/升级。

·     升级已有软件包时,以成员设备为单位进行,先升级Standby,再升级Master。成员设备内升级时,必须先对本地备用主控板执行升级操作,再执行本地主用主控板的升级。否则,安装/升级过程可能出错。

5.5.4  配置步骤

# 从TFTP server下载包含新版本HTTP软件包的BIN文件。

<Master> tftp 2.2.2.2 get http-r0202.bin

# 查看升级前激活的软件包。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

# 查看将要升级的软件包的软件版本与设备上当前运行的软件版本是否兼容,并预测软件包的升级策略。

<Master> display version comp-matrix file feature flash:/http-r0202.bin

Feature image: flash:/http-r0202.bin

  Version:

  V700R001B31D002

  Version compatibility list:

  V700R001B31D002

  Version dependency system list:

  V700R001B31D001

  V700R001B31D002

Incompatible upgrade

上述显示信息中,设备上当前运行的软件版本(V700R001B31D001)不在“Version compatibility list”中,说明本次升级为不兼容版本升级;升级过程中对应的成员设备会以新版本重新启动。

# 升级Standby的HTTP软件包,升级完成后Standby形成新的IRF。

<Master> issu load file feature flash:/http-r0202.bin chassis 2

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]:y

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Chassis   Slot              Upgrade Way

  2         0                 Reboot

  2         0.1               Reboot

  2         1                 Reboot

  2         1.1               Reboot

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

# 升级原Master的软件包,升级完成并将重启后的原Master加入到新的IRF中。

<Master> issu run switchover

Upgrade summary according to following table:

 

flash:/http-r0202.bin

  Running Version             New Version

  Alpha 0201                  Alpha 0202

 

  Chassis   Slot              Upgrade Way

  1         0                 Reboot

  1         0.1               Reboot

  1         1                 Reboot

  1         1.1               Reboot

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

5.5.5  验证配置

# 升级完成后,通过display install active命令查看IRF的软件包激活列表,可以看到该列表已更新,HTTP特性已经升级到R0202版本。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

5.6  HTTP特性回滚配置举例(IRF模式)

5.6.1  组网需求

图10所示,IRF为TFTP Client,和TFTP Server之间路由可达,R0202版本HTTP特性的BIN文件保存在TFTP Server上。IRF由Master和Standby两台成员设备组成(Master的成员编号为1,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1;Standby的成员编号为2,本地主用主控板所在的槽位号为0,本地备用主控板所在的槽位号为1),IRF上的HTTP特性已经从R0201版本升级到R0202版本而且没有执行issu commit确认操作,要求将HTTP版本从R0202回滚到R0201版本。

图10 HTTP特性回滚组网图

 

 

5.6.2  使用版本

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

5.6.3  配置注意事项

·     兼容版本升级的情况下,执行issu run switchover命令后系统会自动启动回滚定时器。如果在指定的时间内(回滚定时器时长,默认是45分钟,可以使用issu rollback-timer命令进行配置)未执行issu accept或者issu commit命令,则系统会自动回退到升级前的版本。

·     不兼容升级不支持自动回滚。

·     手工触发回滚与自动定时器到期触发回滚所执行的动作一致,不同的是在accepted状态能进行手工回滚,执行commit之后不能进行任何形式的回滚。

5.6.4  配置步骤

本举例是在执行了5.4  HTTP特性兼容升级配置举例(IRF模式)中的升级操作,但未执行issu commit确认操作的前提下进行的配置。

# 查看当前IRF上的软件包激活列表。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0202.bin

# 将HTTP软件包回滚到R0201版本。

<Master> issu rollback

This operation will delete the rollback point information and ISSU log information for the previous upgrade and get unsaved configuration lost. Continue? [Y/N]: Y

5.6.5  验证配置

# 回滚操作完成后,通过display install active命令查看Device的软件包激活列表,可以看到该列表已更新,HTTP特性已经回滚到R0201版本。

<Master> display install active

Active packages on chassis 1 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 1 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 0.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

Active packages on chassis 2 slot 1.1:

  flash:/boot-r0201.bin

  flash:/system-r0201.bin

  flash:/http-r0201.bin

6  相关资料

·     《H3C S12500系列路由交换机 基础配置指导》中的“ISSU”

·     《H3C S12500系列路由交换机 基础配置命令参考》中的“ISSU”

 

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

新华三官网
联系我们