03-IRF升级典型配置举例
本章节下载: 03-IRF升级典型配置举例 (431.99 KB)
本文介绍了如何升级IRF。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解IRF特性。
如图3-1所示,Device A和Device B为两台S12500X-AF已经组建了IRF,其中Device A为主设备,成员编号为1,Device B为从设备,成员编号为2,使用BFD MAD进行分裂检测。IRF的当前软件版本为R2716,现需要将版本升级到R2825,升级后主设备仍为Device A。
图3-1 IRF升级配置组网图
H3C设备支持的升级方式如表3-1所示。本文将以最常见的通过命令行的Boot-Loader方式升级为例,来完成IRF系统的升级。同时,为了减少升级过程中业务的中断时间,在升级过程中会进行一次IRF拆分、IRF合并操作。使用Boot-Loader方式升级IRF的大致步骤为:
(1) 通过接口批量配置方式(使用interface rang命令)关闭主设备Device A上的所有上行和下行业务接口,将当前主设备Device A上的流量切换到当前从设备Device B。
(2) 以重启方式升级Device A,在Device A重启过程中关闭Device B上的IRF物理端口Ten-GigabitEthernet2/0/47和Ten-GigabitEthernet2/0/48,将IRF拆分。
· IRF处于拆分状态时,严禁执行save操作,以免配置丢失影响接口状态,导致IRF无法合并和业务流量的转发。
· IRF拆分有两种方式:“拔出IRF端口上的网线”和“关闭从设备上的所有IRF物理端口”。“关闭从设备上的所有IRF物理端口”方式操作起来更方便,本举例采用“关闭从设备上的所有IRF物理端口”方式。
(3) 通过接口批量配置方式关闭Device B上的所有上行和下行业务接口,同时打开Device A上的所有上行和下行业务接口,将业务流量回切到Device A。
(4) 升级Device B。Device A和Device B会自动合并成一个IRF。至此,IRF升级完成。
升级方式 |
升级对象 |
说明 |
通过命令行的Boot-Loader方式升级 |
· BootWare程序 · Comware软件包(不支持安装叠加补丁) |
该方式需要重启设备,会导致当前业务中断 所有型号的设备均支持该方式 |
通过命令行的ISSU(In-Service Software Upgrade,不中断业务升级)方式升级 |
Comware软件包 |
ISSU是一种高可靠性升级方式 部分型号的设备支持该方式 |
通过BootWare菜单进行升级 |
· BootWare程序 · Comware软件包 |
该方式用于无法启动Comware系统时进行软件升级和修复 该升级方式需要连接到Console接口,断电重启。启动过程中根据提示按<Ctrl+B>进入BootWare菜单,通过BootWare来重新加载软件包,具体操作请参见产品随软件发布的版本说明书 所有型号的设备均支持该方式 |
本举例是在R2825版本上进行配置和验证的。
· IRF中所有成员设备/单板必须处于稳定状态,即display system stable state命令显示的State取值必须为Stable,如果为其它值,请先确认原因,在恢复为Stable状态之前禁止进行IRF升级操作。
· 通过提前写好的配置脚本关闭和打开上下行业务接口,请注意检查脚本包含所有业务接口,避免遗漏导致升级过程中出现异常。
· 先升级期望作为主设备的成员设备,并确保升级前该设备的IRF优先级高于其他成员设备。
· 在IRF分裂的情况下,禁止在任何一台IRF成员设备上执行save命令,以免配置丢失。
· 主设备启动完成后,需检查所有成员设备/单板状态恢复正常,确认display interface的显示信息中能查看到所有接口后,延迟2分钟,再进行下一步操作。
· 从设备重启后,必须在从设备重启完成之前将IRF链路重新连接。否则,从设备重启完成后再连接IRF链路,会出现IRF合并,从设备需要再次重启和主设备合并成一个IRF。
· IRF中所有成员设备/单板必须处于稳定状态,即display system stable state命令显示的State取值必须为Stable。
· 检查IRF中的各项业务是否能够正常运行。如果不能正常运行,请尽快定位并解决问题。
在进行IRF设备软件版本升级操作之前,必须进行一些准备操作,以确保设备状态正常,可以进行升级操作。
(1) 记录操作过程
整个IRF升级过程中,建议全程记录操作日志,便于及时发现问题并进行分析定位处理。
(2) 检查设备的NSR配置
在整个IRF升级过程中会进行主设备和从设备之间的主备倒换。如果IRF中运行了路由协议(例如BGP、OSPF等),主备过程可能会导致路由协议邻居出现震荡,从而对报文转发产生不必要的影响。可通过配置NSR(Nonstop Routing,不间断路由)来进行提高路由协议的可靠性。如果升级前未配置NSR,请配置NSR并保存配置,下面以OSPF和BGP为例。
# 在OSPF进程100中使能NSR功能。
<IRF> system-view
[IRF] ospf 100
[IRF-ospf-100] non-stop-routing
[IRF-ospf-100] display ospf non-stop-routing status
OSPF Process 100 with Router ID 1.1.1.1
Non Stop Routing information
Non Stop Routing capability : Enabled
Upgrade phase : Normal
[IRF-ospf-100] quit
[IRF] quit
# 开启BGP进程100的NSR功能。
[IRF] bgp 100
[IRF-bgp-default] non-stop-routing
[IRF-bgp-default] display bgp non-stop-routing status
BGP NSR status: Ready
Location of preferred standby process: Slot 2
TCP NSR status: Ready
[IRF-bgp-default] quit
[IRF-bgp] quit
(3) 检查配置设备的成员优先级
为确保某设备当选为主设备,请配置该设备成员优先级的值大于其他设备成员优先级的值。(优先级值越大表示优先级越高)
# 配置Device A的优先级为32。
[IRF] irf member 1 priority 32
(4) 检查是否存在单挂业务链路
因升级过程会拆分IRF,并将单台成员设备上的业务接口全部关闭。请给IRF配置双上行和双下行,且每个成员设备上均部署上行口(例如Device A和Device B上均有物理链路分别连接到Device D)和下行口(例如Device A和Device B上均有物理链路分别连接到Device C)。如果存在单挂业务(指单上行或者单下行的情况),会导致单挂业务升级过程中访问异常,建议检查IRF中是否存在单挂业务。如果存在单挂业务,请提前增加备份链路。
(5) IRF状态检查及信息收集
IRF升级前需要对设备状态、HA状态、IRF状态及MAD状态进⾏检查,确保IRF及MAD状态正常。
IRF设备上所有单板的State状态必须为Stable,即稳态,除Stable外的其他状态均需确认原因,在恢复为Stable状态之前禁止进行IRF升级操作。
# 显示设备信息。
[IRF] display device
Slot Type State Subslot Soft Ver Patch Ver
1 S12500X-AF Master 0 2716 None
2 S12500X-AF Standby 0 2716 None
# 显示系统的稳定状态。
[IRF] display system stable state
System state : Stable
Redundancy state : Stable
Slot CPU Role State
1 0 Active Stable
2 0 Standby Stable
# 显示系统稳定状态的汇总信息,该信息包括CPU的运行状态、主备状态和NSR的稳定状态。
[IRF] display system stable state summary
System state : Stable
Redundancy state : Stable
NSR state : Ready
# 显示IRF的相关信息。
<IRF> display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 32 f010-90db-7402 ---
2 Standby 1 f010-90db-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 0000-0001-0002
Auto upgrade : yes
Mac persistent : 12 min
Domain ID : 0
# 显示IRF中所有成员设备的IRF配置。
<IRF> display irf configuration
MemberID NewID IRF-Port1 IRF-Port2
1 1 Ten-GigabitEthernet1/0/47 disable
Ten-GigabitEthernet1/0/48
2 2 disable Ten-GigabitEthernet2/0/47
Ten-GigabitEthernet2/0/48
# 显示IRF链路信息。
<IRF> display irf link
Member 1
IRF Port Interface Status
1 Ten-GigabitEthernet1/0/47 UP
Ten-GigabitEthernet1/0/48 UP
2 disable --
Member 2
IRF Port Interface Status
1 disable --
2 Ten-GigabitEthernet2/0/47 UP
Ten-GigabitEthernet2/0/48 UP
# 显示IRF的拓扑信息。
<IRF> display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
2 DIS --- UP 1 f010-90db-7402
1 UP 2 DIS --- f010-90db-7402
# 显示MAD配置的详细信息。
<IRF> display mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
IRF physical interfaces:
Ten-GigabitEthernet1/0/47
Ten-GigabitEthernet1/0/48
Ten-GigabitEthernet2/0/47
Ten-GigabitEthernet2/0/48
BFD MAD interfaces:
Vlan-interface2
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled interface: Vlan-interface2
MAD status : Normal
Member ID MAD IP address Neighbor MAD status
1 192.168.2.1/24 2 Normal
2 192.168.2.2/24 1 Normal
# 显示BFD会话信息。
[IRF] display bfd session
Total Sessions: 1 Up Sessions: 1 Init mode: Active
IPv4 session working in control packet mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
32833/0 192.168.2.1 192.168.2.2 UP / Vlan2
(6) 协议、端口、表项等状态检查及信息收集,以便与升级后对比检查,如下列出常见信息收集命令。
# 显示显示系统版本信息。
<IRF> display version
H3C Comware Software, Version 7.1.070, Release 2716
Copyright (c) 2004-2023 New H3C Technologies Co., Ltd. All rights reserved.
H3C S12500X-AF uptime is 4 weeks, 2 days, 22 hours, 3 minutes
Last reboot reason : User reboot
Boot image: flash:/s12500-cmw710-system-R2716.bin
Boot image version: 7.1.070, Release 2716
Compiled Sep 29 2021 11:00:00
System image: flash:/s12500-cmw710-system-R2716.bin
System image version: 7.1.070, Release 2716
Compiled Sep 29 2021 11:00:00
……其它显示信息略……
# 显示设备生效的配置。
<IRF> display current-configuration
#
version 7.1.070, Release 2716
#
sysname IRF
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 32
irf member 2 priority 1
#
ospf 100
non-stop-routing
#
……其它显示信息略……
# 显示接口简要信息。
<IRF> display interface brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
InLoop0 UP UP(s) --
MGE0/0/0 DOWN DOWN --
NULL0 UP UP(s) --
REG0 UP -- --
Vlan2 UP UP 192.168.2.1
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
XGE1/0/1 UP 1G(a) F(a) A 2
XGE1/0/2 DOWN auto A A 1
XGE1/0/3 DOWN auto A A 1
……其它显示信息略……
# 显示ARP表项。
<IRF> display arp
Type: S-Static D-Dynamic O-Openflow R-Rule M-Multiport I-Invalid
IP address MAC address VLAN/VSI name Interface Aging Type
2.2.2.2 6451-c3f1-0302 20 BAGG1 941 D
3.3.3.2 6451-ccf3-0402 30 BAGG2 1020 D
# 显示MAC地址表信息。
<IRF> display mac-address
MAC Address VLAN ID State Port/Nickname Aging
a442-f6d0-9344 2 Learned XGE1/0/1 Y
6451-c3f1-0302 20 Learned BAGG1 Y
6451-ccf3-0402 30 Learned BAGG2 Y
# 显示OSPF中各区域邻居的信息。(本举例使用静态路由,未配置OSPF,无显示信息)
<IRF> display ospf peer
# 显示路由表的信息。
<IRF> display ip routing-table
Destinations : 21 Routes : 21
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 60 0 2.2.2.2 Vlan20
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan20
2.2.2.0/32 Direct 0 0 2.2.2.1 Vlan20
2.2.2.1/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.255/32 Direct 0 0 2.2.2.1 Vlan20
3.3.3.0/24 Direct 0 0 3.3.3.1 Vlan30
3.3.3.0/32 Direct 0 0 3.3.3.1 Vlan30
3.3.3.1/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.255/32 Direct 0 0 3.3.3.1 Vlan30
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.2.0/24 Direct 0 0 192.168.2.1 Vlan2
192.168.2.0/32 Direct 0 0 192.168.2.1 Vlan2
192.168.2.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.2.255/32 Direct 0 0 192.168.2.1 Vlan2
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# 显示链路聚合详细信息。
<IRF> display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
XGE1/0/10(R) S 32768 1
XGE2/0/10 S 32768 1
Aggregate Interface: Bridge-Aggregation2
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
XGE1/0/20 S 32768 2
XGE2/0/20(R) S 32768 2
(7) 备份配置文件
待设备状态检查均正常,设备具备升级条件下,保存配置,并将配置导出进行备份。
# 将配置保存到下次启动配置文件。
<IRF> 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):
Validating file. Please wait...
The startup.cfg file already exists.
Compared with the startup.cfg file, The current configuration adds 0 commands and deletes 0 commands.
If you want to see the configuration differences, please cancel this operation, and then use the display diff command to show the details.
If you continue the save operation, the file will be overwritten.
Are you sure you want to continue the save operation? [Y/N]:y
Saving the current configuration to the file. Please wait...
Saved the current configuration to mainboard device successfully.
Slot 2:
Save next configuration file successfully.
# 显示用于本次及下次启动的配置文件的名称。
<IRF> display startup
MainBoard:
Current startup saved-configuration file: NULL
Next main startup saved-configuration file: flash:/startup.cfg
Next backup startup saved-configuration file: NULL
Slot 2:
Current startup saved-configuration file: NULL
Next main startup saved-configuration file: flash:/startup.cfg
Next backup startup saved-configuration file: NULL
# 备份下次启动配置文件startup.cfg。
<IRF> tftp 2.2.2.3 put startup.cfg
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8128 0 0 100 8128 0 170k --:--:-- --:--:-- --:--:-- 233k
<IRF>
(8) 检查Flash空间是否足够
执行dir命令查看设备当前的文件系统,以及Flash的剩余空间,保证Flash有足够空间放入新的启动文件。
# 显示Device A上当前文件夹或文件信息。
<IRF> dir
Directory of flash:
1 -rw- 220684 Nov 15 2021 17:37:48 defaultfile.zip
2 drw- - Jan 01 2021 00:01:33 diagfile
……其它显示信息略……
554288 KB total (228880 KB free)
# 显示Device B上当前文件夹或文件信息。
<IRF> dir chassis1#slot1#flash:/
dir chassis2#slot0#flash:/
dir chassis2#slot2#flash:/
Directory of flash:
1 -rw- 220684 Nov 15 2021 17:37:48 defaultfile.zip
2 drw- - Jan 01 2011 00:01:33 diagfile
……其它显示信息略……
554288 KB total (221104 KB free)
(9) 上传目标软件版本文件并对文件的可用性进行检查
# 上传目标软件版本文件s12500-r2825.ipe至Device A,并通过dir查看Device A上s12500-r2825.ipe的大小和正式发布的s12500-r2825.ipe文件大小是否一致。如果大小不一致,请重新上传。
<IRF> tftp 2.2.2.3 get s12500-r2825.ipe
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 133M 100 133M 0 0 180k 0 0:12:33 0:12:33 --:--:-- 177k
Writing file...Done.
<IRF> dir s12500-r2825.ipe
Directory of flash:
25 -rw- 139699200 Nov 19 2021 12:07:56 s12500-r2825.ipe
524288 KB total (167504 KB free)
# 使用MD5摘要检查目标软件版本的可用性。如果使用md5sum命令计算的摘要和产品软件版本发布时公布的MD5摘要一致,或者使用md5sum命令计算的摘要和MD5工具生成的摘要一致,则说明该文件可用于本设备的升级。
<IRF> md5sum s12500-r2825.ipe
MD5 digest:
33d9e48423f7cc67fcaf7d674cf1dbe8
图3-2 使用MD5工具生成摘要
(10) 将目标软件版本拷贝到Device B作为备份。
<IRF> copy s6800-r2702.ipe chassis1#slot1#flash:/
copy s6800-r2702.ipe chassis2#slot0#flash:/
copy s6800-r2702.ipe chassis2#slot2#flash:/
Copy flash:/s12500-r2825.ipe to slot2#flash:/s12500-r2825.ipe? [Y/N]:y
Copying file flash:/s12500-r2825.ipe to slot2#flash:/s12500-r2825.ipe.................. Done.
# 指定目标版本文件类型为main,为主启动软件程序;
<IRF> boot-loader file flash:/s12500-r2825.ipe all main
Verifying the file flash:/s12500-r2825.ipe on slot 1...................................
..................Done.
H3C S12500X-AF images in IPE:
s12500-cmw710-boot-r2825.bin
s12500-cmw710-system-r2825.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to slot 1.
Decompressing file s12500-cmw710-boot-r2825.bin to flash:/s12500-cmw710-boot-r2825.bin...........................Done.
Decompressing file s12500-cmw710-system-r2825.bin to flash:/s12500-cmw710-system-r2825.bin.......................................................................................................................................................................Done.
Verifying the file flash:/s12500-cmw710-boot-r2825.bin on slot 1........Done.
Verifying the file flash:/s12500-cmw710-system-r2825.bin on slot 1................................................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.
Loading............................................................Done.
Loading....................................................................................................................................................................................................................................................Done.
Verifying the file flash:/s12500-cmw710-boot-r2825.bin on slot 2....Done.
Verifying the file flash:/s12500-cmw710-system-r2825.bin on slot 2...................Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 2.
Decompression completed.
Do you want to delete flash:/12500.ipe now? [Y/N]:n
# 通过display boot-loader命令确认所有slot的下一次重启的主启动软件程序是否为目标软件版本。
<IRF> display boot-loader
Software images on slot 1:
Current software images:
flash:/s12500-cmw710-boot-R2716.bin
flash:/s12500-cmw710-system-R2716.bin
Main startup software images:
flash:/s12500-cmw710-boot-r2825.bin
flash:/s12500-cmw710-system-r2825.bin
Backup startup software images:
flash:/s12500-cmw710-boot-R2716.bin
flash:/s12500-cmw710-system-R2716.bin
Software images on slot 2:
Current software images:
flash:/s12500-cmw710-boot-R2716.bin
flash:/s12500-cmw710-system-R2716.bin
Main startup software images:
flash:/s12500-cmw710-boot-r2825.bin
flash:/s12500-cmw710-system-r2825.bin
Backup startup software images:
flash:/s12500-cmw710-boot-R2716.bin
flash:/s12500-cmw710-system-R2716.bin
# 关闭MAD检测功能,并将MAD线路拔掉。(本举例使用VLAN接口2做BFD MAD检测)
<IRF> system-view
[IRF] interface vlan-interface 2
[IRF-Vlan-interface2] undo mad bfd enable
[IRF-Vlan-interface2] display this
#
interface Vlan-interface2
#
return
(1) 关闭Device A上所有上⾏及下⾏业务端⼝(IRF物理端口和BFD MAD检测的接口不关闭)。
[IRF] interface range name yewu interface ten-gigabitethernet 1/0/2 to ten-gigabitethernet 1/0/46 fortygige 1/0/49 to fortygige 1/0/54
[IRF] interface range name yewu
[IRF-if-range-yewu] shutdown
[IRF-if-range-yewu] quit
[IRF] quit
(2) 在Device D和Device C上分别执行ping命令,如果能ping通,则说明Device C和Device D之间通信正常。如果不能ping通,请先定位通信故障问题。
(3) 确保业务成功从Device A切到Device B上,并测试正常后,保存当前配置。
<IRF> 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):
Validating file. Please wait...
The startup.cfg file already exists.
Compared with the startup.cfg file, The current configuration adds 0 commands and deletes 0 commands.
If you want to see the configuration differences, please cancel this operation, and then use the display diff command to show the details.
If you continue the save operation, the file will be overwritten.
Are you sure you want to continue the save operation? [Y/N]:y
Saving the current configuration to the file. Please wait...
Saved the current configuration to mainboard device successfully.
Slot 2:
Save next configuration file successfully.
(1) 重启主设备Device A。
<IRF> reboot chassis 1
Start to check configuration with next startup configuration file, please wait..
.......DONE!
Current configuration may be lost after the reboot, save current configuration?
[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.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait..........
(2) 重启命令执行后,关闭Device B上的IRF物理端口Ten-GigabitEthernet2/0/47和Ten-GigabitEthernet2/0/48,将IRF拆分。
<IRF> system-view
[IRF] interface range name irf-port interface ten-gigabitethernet 2/0/47 to ten-gigabitethernet 2/0/48
[IRF-if-range-irf-port] shutdown
关闭Device B上的所有IRF物理端口后,IRF处于分裂状态,严禁在主设备Device A上执行save操作,以免配置丢失影响接口状态,导致IRF无法合并和业务流量的转发。
本步骤会关闭从设备上的所有业务接口,再打开主设备上的所有业务接口,操作时间间隔越短,业务中断时间越短。建议您事先参照以下步骤按照设备上接口的编号准备好命令行,然后将准备好的命令行拷贝、粘贴到对应的设备上执行,以便尽量减少业务中断时间。
(1) 待主设备Device A启动完成,用display interface能够查看到所有端口后,等待2分钟左右完成转发类表项和流量的适配。查看Device A属于稳定状态后,再执行下一步操作。
<IRF> display system stable state
System state : Stable
Redundancy state : No redundancy
Slot CPU Role State
1 0 Active Stable
(2) 登录从设备Device B,关闭从设备上的所有业务接口。(IRF物理端口和BFD MAD检测的接口不关闭)
<IRF> system-view
[IRF] interface range name yewu-2 interface ten-gigabitethernet 2/0/2 to ten-gigabitethernet 2/0/46 fortygige 2/0/49 to fortygige 2/0/54
[IRF] interface range name yewu-2
[IRF-if-range-yewu-2] shutdown
(3) 登录主设备Devie A,开启主设备上的所有业务接口。
<IRF> system-view
[IRF] interface range name yewu
[IRF-if-range-yewu] undo shutdown
# 检查业务是否正常切到升级后的主设备Device A,确认业务正常后,登录Device B,重启Device B,
<IRF> reboot chassis 2
Start to check configuration with next startup configuration file, please wait..
.......DONE!
Current configuration may be lost after the reboot, save current configuration?
[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.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait..........
Device B重启完成后,Device B会以从设备的身份和Device A重新组建IRF。至此,IRF升级完成。
(1) 检查IRF状态及业务检查
# Device B重启完成后,执行以下display命令检查IRF状态是否正常,业务是否正常。显示信息应该和IRF升级前的显示信息一致,显示信息不再罗列。
[IRF] display system stable state
[IRF] display irf
[IRF] display irf configuration
[IRF] display irf link
[IRF] display irf topology
(2) 恢复MAD功能及状态检查并保存配置
恢复MAD功能,并检查MAD状态。
[IRF] interface vlan-interface 2
[IRF-Vlan-interface2] mad bfd enable
[IRF-Vlan-interface2] mad ip address 192.168.2.1 24 member 1
[IRF-Vlan-interface2] mad ip address 192.168.2.2 24 member 2
[IRF-Vlan-interface2] quit
[IRF] display mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
IRF physical interfaces:
Ten-GigabitEthernet1/0/47
Ten-GigabitEthernet1/0/48
Ten-GigabitEthernet2/0/47
Ten-GigabitEthernet2/0/48
BFD MAD interfaces:
Vlan-interface2
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled interface: Vlan-interface2
MAD status : Normal
Member ID MAD IP address Neighbor MAD status
1 192.168.2.1/24 2 Normal
2 192.168.2.2/24 1 Normal
(3) IRF状态及MAD状态检查正常后,可根据需要进行无用配置(比如:range接口)删除并保存配置。
[IRF] undo interface range yewu
[IRF] undo interface range yewu-2
[IRF] save
(4) 设备状态检查及升级前对比
升级完成,进行相关表项信息收集,与升级前进行对比检查,如下列出常用信息收集命令。显示信息不再罗列。
<IRF> display version
<IRF> display current-configuration
<IRF> display interface brief
<IRF> display arp
<IRF> display mac-address
<IRF> displayplay ospf peer
<IRF> display ip routing-table
<IRF> display link-aggregation verbose
# 查看IRF的版本信息,版本已经从R2716升级到R2825。
<IRF> display version
H3C Comware Software, Version 7.1.070, Release 2825
Copyright (c) 2004-2021 New H3C Technologies Co., Ltd. All rights reserved.
H3C S12500X-AF uptime is 4 weeks, 5 days, 14 hours, 32 minutes
Last reboot reason : User reboot
Boot image: flash:/s12500-cmw710-boot-R2825.bin
Boot image version: 7.1.070, Release 2825
Compiled Sep 29 2021 11:00:00
System image: flash:/s12500-cmw710-system-R2825.bin
System image version: 7.1.070, Release 2825
Compiled Sep 29 2021 11:00:00
Slot 1:
Uptime is 4 weeks,5 days,14 hours,32 minutes
S12500X-AF with 1 RMI XLS408 Processor
BOARD TYPE: S12500X-AF
DRAM: 2048M bytes
FLASH: 512M bytes
PCB 1 Version: VER.A
FPGA Version: NONE
Bootrom Version: 158
CPLD 1 Version: 002
CPLD 2 Version: 001
Release Version: H3C S12500X-AF-2825
Patch Version: None
Reboot Cause: UserReboot
[SubSlot 0] 48XGT+6QSFP Plus
· H3C S12500X-AF系列交换机 虚拟化技术配置指导-R28xx
· H3C S12500X-AF系列交换机 虚拟化技术命令参考-R28xx
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!