58-IRF典型配置举例
本章节下载: 58-IRF典型配置举例 (778.07 KB)
本文介绍了如何搭建IRF以及在IRF上配置链路聚合和路由功能。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解IRF特性。
加入IRF的所有成员设备必须使用相同的软件版本。
在多台设备形成IRF之前,请确保在各设备上以下功能的配置保持一致。
· 系统工作模式(通过switch-mode命令配置)。
· 最大等价路由条数(通过max-ecmp-num命令配置)。
S6520X-EI和S6520X-HI系列交换机能够通过交换机前面板或后面板接口模块扩展卡上的SFP+口、SFP28口、QSFP+口或QSFP28口提供IRF物理连接。但是,QSFP+口和QSFP28口拆分的SFP+口或SFP28口不支持作为IRF物理端口
S6520X-SI&S6520-SI&S5000-EI&MS4600系列交换机能够通过交换机前面板或后面板接口模块扩展卡上的10GBase-T以太网口、SFP+口或QSFP+口提供IRF物理连接。但是,QSFP+口拆分为四个虚拟SFP+口后,不支持作为IRF物理端口。
本设备上与IRF-Port1绑定的IRF物理端口只能和邻居成员设备IRF-Port2口上绑定的IRF物理端口相连,本设备上与IRF-Port2口绑定的IRF物理端口只能和邻居成员设备IRF-Port1口上绑定的IRF物理端口相连。否则,不能形成IRF。
搭建的组网如图1所示,使用本系列产品作为每个机柜的ToR(Top of Rack)接入设备,将服务器和存储设备接入网络。现要求使用图1所示的两个机柜上的四台本系列产品,通过IRF技术组成具备高密度接入能力和高可靠性的接入层,并使用LACP MAD功能及时发现和处理IRF的分裂事件。
为完成组网需求,我们将配置分为以下三部分进行:
· 搭建IRF的配置
· LACP MAD配置
· 基础网络连通性配置
表1 适用产品及版本
产品 |
软件版本 |
S6520X-HI系列 S6520X-EI系列 |
Release 1110P01 |
S6520X-SI系列 S6520-SI系列 S5000-EI系列 MS4600系列 |
Release 1110P01 |
· IRF的连接拓扑可以为环形或链形。为进一步提高IRF的可靠性,本例中我们采用环形拓扑来组建IRF,建议您在有条件的情况下使用环形拓扑。
· IRF链路主要用于传输跨物理设备的业务流量,建议使用比接入终端的端口更高的速率来实现IRF连接。本例中将一个IRF端口与两个物理端口绑定形成聚合IRF物理端口,提高传输速率的同时还能够提供IRF链路的高可靠性,物理连接的形态如图2所示。
· 为区分IRF中的各成员设备,我们需要为四台设备分配成员编号。本例中以四台设备从左至右的成员编号分别为1、2、3、4为例。
· IRF中包括一台主设备和多台从设备,主设备可以通过默认选举规则选举产生,也可以通过设置优先级来手工指定。本例中我们通过设置优先级来指定设备DeviceA为主设备。
图2 IRF物理连接示意图
表2 IRF物理端口
IRF端口 |
IRF物理端口 |
|
DeviceA |
IRF-port1 |
Ten-GigabitEthernet1/0/1 |
Ten-GigabitEthernet1/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet1/0/3 |
|
Ten-GigabitEthernet1/0/4 |
||
DeviceB |
IRF-port1 |
Ten-GigabitEthernet2/0/1 |
Ten-GigabitEthernet2/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet2/0/3 |
|
Ten-GigabitEthernet2/0/4 |
||
DeviceC |
IRF-port1 |
Ten-GigabitEthernet3/0/1 |
Ten-GigabitEthernet3/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet3/0/3 |
|
Ten-GigabitEthernet3/0/4 |
||
DeviceD |
IRF-port1 |
Ten-GigabitEthernet4/0/1 |
Ten-GigabitEthernet4/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet4/0/3 |
|
Ten-GigabitEthernet4/0/4 |
缺省情况下,所有设备上端口编号的第一维均为1,表示设备成员编号。在对成员设备修改编号后,端口编号会随之改变,表2列出的是修改后的编号。
IRF物理端口必须工作在二层模式下,才能与IRF端口进行绑定。
(1) 配置Device A
# 将用作IRF物理端口的Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceA> system-view
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[DeviceA-if-range] shutdown
[DeviceA-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2绑定。
[DeviceA] irf-port 1/1
[DeviceA-irf-port1/1] port group interface ten-gigabitethernet 1/0/1
[DeviceA-irf-port1/1] port group interface ten-gigabitethernet 1/0/2
[DeviceA-irf-port1/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4绑定。
[DeviceA] irf-port 1/2
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/3
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/4
[DeviceA-irf-port1/2] quit
# 开启Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4端口。
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[DeviceA-if-range] undo shutdown
[DeviceA-if-range] quit
# 配置Device A的成员优先级为31,以保证其成为IRF中的主设备。
[DeviceA] irf member 1 priority 31
# 将当前配置保存到下次启动配置文件。
[DeviceA] quit
<DeviceA> save
# 激活IRF端口的配置。
<DeviceA> system-view
[DeviceA] irf-port-configuration active
(2) 配置Device B
# 配置Device B的成员编号为2,并重启设备使配置生效。
<DeviceB> system-view
[DeviceB] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceB] quit
<DeviceB> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceB> system-view
[DeviceB] interface range ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[DeviceB-if-range] shutdown
[DeviceB-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet2/0/1和Ten-GigabitEthernet2/0/2绑定。
[DeviceB] irf-port 2/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/0/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/0/2
[DeviceB-irf-port2/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet2/0/3和Ten-GigabitEthernet2/0/4绑定。
[DeviceB] irf-port 2/2
[DeviceB-irf-port2/2] port group interface ten-gigabitethernet 2/0/3
[DeviceB-irf-port2/2] port group interface ten-gigabitethernet 2/0/4
[DeviceB-irf-port2/2] quit
# 开启Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4端口。
[DeviceB] interface range ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[DeviceB-if-range] undo shutdown
[DeviceB-if-range] quit
# 将当前配置保存到下次启动配置文件。
[DeviceB] quit
<DeviceB> save
# 参照图2连接DeviceB和DeviceA。
# 激活IRF端口的配置。
<DeviceB> system-view
[DeviceB] irf-port-configuration active
# 系统会提示发生IRF合并,由于DeviceB的IRF优先级为缺省值1,低于DeviceA,因此会在竞选中失败而自动重启,重启后两台设备形成一个IRF。
(3) 配置Device C
# 配置Device C的成员编号为3,并重启设备使配置生效。
<DeviceC> system-view
[DeviceC] irf member 1 renumber 3
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceC] quit
<DeviceC> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet3/0/1~Ten-GigabitEthernet3/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceC> system-view
[DeviceC] interface range ten-gigabitethernet 3/0/1 to ten-gigabitethernet 3/0/4
[DeviceC-if-range] shutdown
[DeviceC-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet3/0/1和Ten-GigabitEthernet3/0/2绑定。
[DeviceC] irf-port 3/1
[DeviceC-irf-port3/1] port group interface ten-gigabitethernet 3/0/1
[DeviceC-irf-port3/1] port group interface ten-gigabitethernet 3/0/2
[DeviceC-irf-port3/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet3/0/3和Ten-GigabitEthernet3/0/4绑定。
[DeviceC] irf-port 3/2
[DeviceC-irf-port3/2] port group interface ten-gigabitethernet 3/0/3
[DeviceC-irf-port3/2] port group interface ten-gigabitethernet 3/0/4
[DeviceC-irf-port3/2] quit
# 开启Ten-GigabitEthernet3/0/1~Ten-GigabitEthernet3/0/4端口。
[DeviceC] interface range ten-gigabitethernet 3/0/1 to ten-gigabitethernet 3/0/4
[DeviceC-if-range] undo shutdown
[DeviceC-if-range] quit
# 将当前配置保存到下次启动配置文件。
[DeviceC] quit
<DeviceC> save
# 参照图2连接DeviceC和DeviceB。
# 激活IRF端口的配置。
<DeviceC> system-view
[DeviceC] irf-port-configuration active
# 系统会提示发生IRF合并,DeviceC会自动重启,重启后作为从设备加入由DeviceA和DeviceB组成的IRF。
(4) 配置Device D
# 配置Device D的成员编号为4,并重启设备使配置生效。
<DeviceD> system-view
[DeviceD] irf member 1 renumber 4
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceD] quit
<DeviceD> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet4/0/1~Ten-GigabitEthernet4/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceD> system-view
[DeviceD] interface range ten-gigabitethernet 4/0/1 to ten-gigabitethernet 4/0/4
[DeviceD-if-range] shutdown
[DeviceD-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet4/0/1和Ten-GigabitEthernet4/0/2绑定。
[DeviceD] irf-port 4/1
[DeviceD-irf-port4/1] port group interface ten-gigabitethernet 4/0/1
[DeviceD-irf-port4/1] port group interface ten-gigabitethernet 4/0/2
[DeviceD-irf-port4/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet4/0/3和Ten-GigabitEthernet4/0/4绑定。
[DeviceD] irf-port 4/2
[DeviceD-irf-port4/2] port group interface ten-gigabitethernet 4/0/3
[DeviceD-irf-port4/2] port group interface ten-gigabitethernet 4/0/4
[DeviceD-irf-port4/2] quit
# 开启Ten-GigabitEthernet4/0/1~Ten-GigabitEthernet4/0/4端口。
[DeviceD] interface range ten-gigabitethernet 4/0/1 to ten-gigabitethernet 4/0/4
[DeviceD-if-range] undo shutdown
[DeviceD-if-range] quit
# 将当前配置保存到下次启动配置文件。
[DeviceD] quit
<DeviceD> save
# 参照图2连接DeviceD和DeviceC。
# 激活IRF端口的配置。
<DeviceD> system-view
[DeviceD] irf-port-configuration active
# 系统会提示发生IRF合并,DeviceD会自动重启,重启后作为从设备加入由DeviceA、DeviceB和DeviceC组成的IRF。
# IRF建立完成后,命令行的提示符将变为DeviceA的主机名,即“DeviceA”。为便于辨认,将IRF的主机名修改为IRF。
<DeviceA> system-view
[DeviceA] sysname IRF
[IRF]
所有设备都配置完成后,网络中将形成一个包含四台成员设备的IRF,效果如图3所示。从组网中其它设备的角度来看,IRF是一台普通的实体网络设备。从整体网络拓扑来看,接入层已经形成一台具有高密度接入能力的设备,所有机柜中的服务器和存储设备均使用同一台设备接入网络。
图3 IRF搭建完成后的组网示意图
在组网中,为了实现更简单的拓扑结构,一般在接入层和汇聚层均采用IRF技术进行整合。本例中假设汇聚层的四台框式设备已经建立IRF。
· LACP MAD检测方式需要通过一台支持LACP协议的H3C设备作为中间设备来进行,在本例中,我们可以在汇聚层IRF和接入层IRF上同时开启LACP MAD功能,使两个IRF相互作为中间设备,完成各自的LACP MAD检测。
· 在两个IRF设备之间配置LACP MAD检测时,需要为每个IRF配置不同的域编号。
· 在实际连接时,为保证上行带宽,建议使用更快速的端口实现上行聚合连接,本例中使用10GE端口进行上行连接。
接入层的设备上行物理连接的示意图如图4所示。
图4 LACP MAD组网连接图
实际使用中,您也可以在汇聚层和接入层IRF的所有成员设备间建立全连接,以实现更高的可靠性。所有的上行链路在拓扑上都被视为一条上行聚合链路。
按图4的方式连接之后,每个IRF都将对方识别为一台LACP MAD的中间设备,并且本IRF中的每台成员设备都与对端IRF存在物理连接,满足LACP MAD的组网条件。LACP MAD的逻辑示意图请参见图5。
图5 LACP MAD逻辑连接示意图
LACP MAD必须在动态聚合接口上应用才能生效。
(1) 配置接入层IRF
# 设置IRF域编号为1。
<IRF> system-view
[IRF] irf domain 1
# 创建一个动态聚合接口,编号为2,并使能LACP MAD检测功能。
[IRF] interface bridge-aggregation 2
[IRF-Bridge-Aggregation2] link-aggregation mode dynamic
[IRF-Bridge-Aggregation2] mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 1]:
The assigned domain ID is: 1
Info: MAD LACP only enable on dynamic aggregation interface.
[IRF-Bridge-Aggregation2] quit
# 为方便进行聚合组的配置,可以使用接口批量配置功能。使用名称为lacp的端口批量配置组, 将所有上行接口加入动态聚合接口2中。
为端口批量配置组命名可以方便后期再对上行端口进行批量配置,直接输入名称即可进入端口批量配置视图。
[IRF] interface range name lacp interface Ten-GigabitEthernet 1/0/5 to Ten-GigabitEthernet 1/0/6 Ten-GigabitEthernet 2/0/5 to Ten-GigabitEthernet 2/0/6 Ten-GigabitEthernet 3/0/5 to Ten-GigabitEthernet 3/0/6 Ten-GigabitEthernet 4/0/5 to Ten-GigabitEthernet 4/0/6
[IRF-if-range-lacp] port link-aggregation group 2
[IRF-if-range-lacp] quit
(2) 配置汇聚层IRF
# 设置IRF域编号为2。
<Sysname> system-view
[Sysname] irf domain 2
# 创建一个动态聚合接口,编号为2,并使能LACP MAD检测功能。
[Sysname] interface bridge-aggregation 2
[Sysname-Bridge-Aggregation2] link-aggregation mode dynamic
[Sysname-Bridge-Aggregation2] mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 2]:
The assigned domain ID is: 2
Info: MAD LACP only enable on dynamic aggregation interface.
[Sysname-Bridge-Aggregation2] quit
# 将所有下行接口加入动态聚合接口2中。
[Sysname] interface ten-gigabitethernet 1/2/0/1
[Sysname-Ten-GigabitEthernet1/2/0/1] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet1/2/0/1] quit
[Sysname] interface ten-gigabitethernet 1/3/0/1
[Sysname-Ten-GigabitEthernet1/3/0/1] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet1/3/0/1] quit
[Sysname] interface ten-gigabitethernet 2/3/0/1
[Sysname-Ten-GigabitEthernet2/3/0/1] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet2/3/0/1] quit
[Sysname] interface ten-gigabitethernet 2/4/0/2
[Sysname-Ten-GigabitEthernet2/4/0/2] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet2/4/0/2] quit
[Sysname] interface ten-gigabitethernet 3/4/0/1
[Sysname-Ten-GigabitEthernet3/4/0/1] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet3/4/0/1] quit
[Sysname] interface ten-gigabitethernet 3/3/0/2
[Sysname-Ten-GigabitEthernet3/3/0/2] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet3/3/0/2] quit
[Sysname] interface ten-gigabitethernet 4/2/0/1
[Sysname-Ten-GigabitEthernet4/2/0/1] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet4/2/0/1] quit
[Sysname] interface ten-gigabitethernet 4/3/0/1
[Sysname-Ten-GigabitEthernet4/3/0/1] port link-aggregation group 2
[Sysname-Ten-GigabitEthernet4/3/0/1] quit
· 本例中IRF工作在二层环境下,因此网络连通性配置以聚合链路功能为主。
· 在完成LACP MAD的配置后,上行的聚合组主要配置已经完成,只需要再配置允许通过的业务VLAN即可。
· 为提高可靠性,每个机柜中的服务器和存储设备都将以双上行的形式连接到本机柜中的两台ToR交换机上,并且将两条上行链路进行聚合。因此在接入层IRF中,需要将连接每台终端设备的两个端口也配置为一个聚合组。
此处仅以一台属于VLAN10内的服务器为例进行连接示意,其它终端设备请参照此方式进行连接。
(1) 配置接入层IRF
# 创建VLAN10。
<IRF> system-view
[IRF] vlan 10
# 创建一个动态聚合接口3。
[IRF] interface bridge-aggregation 3
[IRF-Bridge-Aggregation3] link-aggregation mode dynamic
[IRF-Bridge-Aggregation3] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/0/10。
[IRF] interface ten-gigabitethernet 1/0/10
[IRF-Ten-GigabitEthernet1/0/10] port link-aggregation group 3
[IRF-Ten-GigabitEthernet1/0/10] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet2/0/10。
[IRF] interface ten-gigabitethernet 2/0/10
[IRF-GigabitEthernet2/0/2] port link-aggregation group 3
[IRF-GigabitEthernet2/0/2] quit
# 将聚合接口3加入VLAN10。
[IRF] interface bridge-aggregation 3
[IRF-Bridge-Aggregation3] port access vlan 10
[IRF-Bridge-Aggregation3] quit
# 配置上行聚合接口2为Trunk类型,并允许VLAN10通过。
[IRF] interface bridge-aggregation 2
[IRF-Bridge-Aggregation2] port link-type trunk
[IRF-Bridge-Aggregation2] port trunk permit vlan 10
[IRF-Bridge-Aggregation2] quit
(2) 配置汇聚层IRF
# 创建VLAN10。
<Sysname> system-view
[Sysname] vlan 10
# 配置下行聚合接口2为Trunk类型,并允许VLAN10通过。
[Sysname] interface bridge-aggregation 2
[Sysname-Bridge-Aggregation2] port link-type trunk
[Sysname-Bridge-Aggregation2] port trunk permit vlan 10
[Sysname-Bridge-Aggregation2] quit
# 在接入层IRF上,使用display irf命令查看当前IRF的信息。
<Sysname> display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 31 00e0-fc0f-8c02 ---
2 Standby 1 00e0-fc0f-8c03 ---
3 Standby 1 00e0-fc0f-8c04 ---
4 Standby 1 00e0-fc0f-8c05 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 0cda-414a-859b
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 1
通过上述信息,可以看到IRF中已经包含四台设备。
# 使用display irf topology命令查看IRF连接拓扑。
<Sysname> display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
1 UP 2 UP 4 0cda-414a-859b
2 UP 3 UP 1 0cda-414a-859b
3 UP 4 UP 2 0cda-414a-859b
4 UP 1 UP 3 0cda-414a-859b
通过上述信息,可以确认IRF实际拓扑形态符合组网需求。
# 任选一台服务器(以图6中ServerA为例),以汇聚层IRF的IP地址(以10.153.116.111为例)为目标进行ping操作。
C:\Users>ping 10.153.116.111 –t
# 将接入层IRF连接服务器的聚合组3中Ten-GigabitEthernet1/0/10端口shutdown。
[IRF] interface ten-gigabitethernet 1/0/10
[IRF-Ten-GigabitEthernet1/0/10] shutdown
[IRF-Ten-GigabitEthernet1/0/10] quit
# 在ServerA上查看,ping操作出现短暂中断后仍然可以继续返回连通信息。
Pinging 10.153.116.111 with 32 bytes of data:
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
Request timed out.
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
# 将接入层IRF连接汇聚层IRF的聚合组2中Ten-GigabitEthernet1/0/5和Ten-GigabitEthernet1/0/6端口同时shutdown,使ServerA不能通过DeviceA接入汇聚层。
[IRF] interface range Ten-GigabitEthernet 1/0/5 Ten-GigabitEthernet 1/0/6
[IRF-if-range] shutdown
# 在ServerA上查看,ping操作出现短暂中断后仍然可以继续返回连通信息。
Pinging 10.153.116.111 with 32 bytes of data:
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
Request timed out.
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
Reply from 10.153.116.111: bytes=32 time<1ms TTL=128
以上信息表示,ServerA已经通过DeviceB接入汇聚层。
断开任意两台ToR交换机之间的两条IRF物理链路,IRF仍能正常工作,没有分裂。
由于本例中的IRF使用环形拓扑,因此当一条IRF链路出现故障后,IRF拓扑将变为链型,不会发生分裂。现在将DeviceB和DeviceC,以及DeviceA和DeviceD之间的物理连接均断开,IRF将分裂为两个IRF,两个IRF内的成员分别如图7所示。
图7 IRF分裂示意图
# 发生分裂时,系统将输出IRF链路状态错误提示,以及成员设备失效提示,IRF1的输出信息为:
%Jan 1 05:19:10:176 2019 H3C STM/3/STM_LINK_STATUS_DOWN: IRF port 2 is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/3 link status is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/4 link status is down.
%Jan 1 05:19:10:176 2019 H3C STM/3/STM_LINK_STATUS_DOWN: IRF port 1 is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/1 link status is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/2 link status is down.
%Jan 1 05:19:10:186 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 3, type is MAIN_BOARD_TYPE_54QT.
%Jan 1 05:19:10:186 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 4, type is MAIN_BOARD_TYPE_54QT.
# 同时在IRF2上也会提示信息,可以看到在分裂初始阶段,IRF2认为IRF1已经失效,自身成为主设备,但是很快通过LACP MAD功能发现网络中存在多个配置相同的IRF。由于IRF2的主设备编号较大,因此在MAD冲突后将变为Recovery状态,关闭所有端口。
%Jan 1 05:53:20:784 2019 H3C HA/5/HA_STANDBY_TO_MASTER: Standby board in slot 3 changes to master.
%Jan 1 05:53:20:831 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 1, type is MAIN_BOARD_TYPE_54QT.
%Jan 1 05:53:20:831 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 2, type is MAIN_BOARD_TYPE_54QT.
%Jan 1 05:53:20:860 2019 H3C DEV/1/MAD_DETECT: Multi-active devices detected, please fix it.
%Jan 1 05:53:20:886 2019 H3C IFNET/3/PHY_UPDOWN: M-GigabitEthernet0/0/0 link status is down.
%Jan 1 05:53:20:887 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface M-GigabitEthernet0/0/0 is down.
%Jan 1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet3/0/5 link status is down.
%Jan 1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet3/0/5 is down.
%Jan 1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet3/0/6 link status is down.
%Jan 1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet3/0/5 is down.
%Jan 1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet4/0/5 link status is down.
%Jan 1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet3/0/5 is down.
%Jan 1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet4/0/6 link status is down.
%Jan 1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet3/0/5 is down.
# 如果此时IRF1也发生了故障,您可以登录到DeviceC或DeviceD的Console口,使用mad restore命令先将IRF2恢复为Active状态,启动被关闭的接口。
<Sysname> system-view
[Sysname] mad restore
This command will restore the device from multi-active conflict state. Continue? [Y/N]:y
Restoring from multi-active conflict state, please wait...
[Sysname]
%Jan 1 05:24:41:249 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/10 link status is up.
%Jan 1 05:24:41:249 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet2/0/10 is up.
%Jan 1 05:24:41:325 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/5 link status is up.
%Jan 1 05:24:41:325 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/6 link status is up.
%Jan 1 05:24:46:266 2019 H3C IFNET/3/PHY_UPDOWN: M-GigabitEthernet0/0/0 link status is up.
%Jan 1 05:24:46:268 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface M-GigabitEthernet0/0/0 is up.
通过以上信息可以得知,IRF2已经恢复在网络中的功能,此时您可以修复IRF1以及及IRF链路。
当IRF1上任意一条与IRF2相连的链路完成修复后,IRF1上将输出IRF端口状态恢复及出现IRF合并的提示信息。
%Jan 1 05:29:06:913 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/3 link status is up.
%Jan 1 05:29:06:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet1/0/3 is up.
%Jan 1 05:29:06:913 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/4 link status is up.
%Jan 1 05:29:06:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet1/0/4 is up.
%Jan 1 05:29:07:106 2019 H3C STM/6/STM_LINK_STATUS_UP: IRF port 2 is up.
%Jan 1 05:29:07:810 2019 H3C STM/4/STM_LINK_RECOVERY: Merge occurs.
# 此时IRF2将自动重启,重启后两台设备再次形成IRF。
# 通过display irf命令的显示信息,可以看到IRF系统已经恢复。
<Sysname> display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 31 00e0-fc0f-8c02 ---
2 Standby 1 00e0-fc0f-8c03 ---
3 Standby 1 00e0-fc0f-8c04 ---
4 Standby 1 00e0-fc0f-8c05 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 0cda-414a-859b
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 1
· 接入层IRF的配置
#
sysname IRF
#
irf domain 1
irf member 1 priority 31
#
vlan 10
#
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/1
port group interface Ten-GigabitEthernet1/0/2
#
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/3
port group interface Ten-GigabitEthernet1/0/4
#
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/1
port group interface Ten-GigabitEthernet2/0/2
#
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/3
port group interface Ten-GigabitEthernet2/0/4
#
irf-port 3/1
port group interface Ten-GigabitEthernet3/0/1
port group interface Ten-GigabitEthernet3/0/2
#
irf-port 3/2
port group interface Ten-GigabitEthernet3/0/3
port group interface Ten-GigabitEthernet3/0/4
#
irf-port 4/1
port group interface Ten-GigabitEthernet4/0/1
port group interface Ten-GigabitEthernet4/0/2
#
irf-port 4/2
port group interface Ten-GigabitEthernet4/0/3
port group interface Ten-GigabitEthernet4/0/5
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 10
link-aggregation mode dynamic
mad enable
#
interface Bridge-Aggregation3
port access vlan 10
link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/5
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet1/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet2/0/5
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet2/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet3/0/5
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet3/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet4/0/5
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet4/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet1/0/10
port link-mode bridge
port access vlan 10
port link-aggregation group 3
#
interface Ten-GigabitEthernet2/0/10
port link-mode bridge
port access vlan 10
port link-aggregation group 3
· 汇聚层IRF的配置
#
irf domain 2
#
vlan 10
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 10
link-aggregation mode dynamic
mad enable
#
interface Ten-GigabitEthernet1/2/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet1/3/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet2/3/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet2/4/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet3/3/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet3/4/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet4/2/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
#
interface Ten-GigabitEthernet4/3/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 10
port link-aggregation group 2
某企业网络搭建的组网图如图8所示,接入层交换机通过上行接口将业务终端的数据转发至汇聚层设备,由汇聚层设备将终端对外网的访问数据通过路由转发至核心层设备,再发送至外网。核心层设备目前运行OSPF路由协议。现要求使用四台本系列设备,使用IRF技术搭建具备高性能路由转发能力和高可靠性的汇聚层网关。
为完成组网需求,我们将配置分为以下三部分进行:
· 搭建IRF的配置
· BFD MAD配置
· 基础网络连通性配置
表3 适用产品及版本
产品 |
软件版本 |
S6520X-HI系列 S6520X-EI系列 |
Release 1110P01 |
S6520X-SI系列 S6520-SI系列 S5000-EI系列 MS4600系列 |
Release 1110P01 |
· IRF的连接拓扑可以为环形或链形。为进一步提高IRF的可靠性,本例中我们采用环形拓扑来组建IRF,建议您在有条件的情况下使用环形拓扑。
· IRF链路主要用于传输跨物理设备的业务流量,建议使用比接入终端的端口更高的速率来实现IRF连接。本例中将一个IRF端口与两个物理端口绑定形成聚合IRF物理端口,提高传输速率的同时还能够提供IRF链路的高可靠性,物理连接的形态如图9所示。
· 为区分IRF中的各成员设备,我们需要为四台设备分配成员编号。本例中以四台设备从左至右的成员编号分别为1、2、3、4为例。
· IRF中包括一台主设备和多台从设备,主设备可以通过默认选举规则选举产生,也可以通过设置优先级来手工指定。本例中我们通过设置优先级来指定设备DeviceA为主设备。
图9 IRF物理连接示意图
表4 IRF物理端口
设备 |
IRF端口 |
IRF物理端口 |
DeviceA |
IRF-port1 |
Ten-GigabitEthernet1/0/1 |
Ten-GigabitEthernet1/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet1/0/3 |
|
Ten-GigabitEthernet1/0/4 |
||
DeviceB |
IRF-port1 |
Ten-GigabitEthernet2/0/1 |
Ten-GigabitEthernet2/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet2/0/3 |
|
Ten-GigabitEthernet2/0/4 |
||
DeviceC |
IRF-port1 |
Ten-GigabitEthernet3/0/1 |
Ten-GigabitEthernet3/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet3/0/3 |
|
Ten-GigabitEthernet3/0/4 |
||
DeviceD |
IRF-port1 |
Ten-GigabitEthernet4/0/1 |
Ten-GigabitEthernet4/0/2 |
||
IRF-port2 |
Ten-GigabitEthernet4/0/3 |
|
Ten-GigabitEthernet4/0/4 |
缺省情况下,所有设备上端口编号的第一维均为1,表示设备成员编号。在对成员设备修改编号后,端口编号会随之改变,表4列出的是修改后的编号。
IRF物理端口必须工作在二层模式下,才能与IRF端口进行绑定。
(1) 配置Device A
# 将用作IRF物理端口的Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceA> system-view
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[DeviceA-if-range] shutdown
[DeviceA-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2绑定。
[DeviceA] irf-port 1/1
[DeviceA-irf-port1/1] port group interface ten-gigabitethernet 1/0/1
[DeviceA-irf-port1/1] port group interface ten-gigabitethernet 1/0/2
[DeviceA-irf-port1/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4绑定。
[DeviceA] irf-port 1/2
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/3
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/4
[DeviceA-irf-port1/2] quit
# 开启Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4端口。
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[DeviceA-if-range] undo shutdown
[DeviceA-if-range] quit
# 配置Device A的成员优先级为31,以保证其成为IRF中的主设备。
[DeviceA] irf member 1 priority 31
# 将当前配置保存到下次启动配置文件。
[DeviceA] quit
<DeviceA> save
# 激活IRF端口的配置。
<DeviceA> system-view
[DeviceA] irf-port-configuration active
(2) 配置Device B
# 配置Device B的成员编号为2,并重启设备使配置生效。
<DeviceB> system-view
[DeviceB] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceB] quit
<DeviceB> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceB> system-view
[DeviceB] interface range ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[DeviceB-if-range] shutdown
[DeviceB-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet2/0/1和Ten-GigabitEthernet2/0/2绑定。
[DeviceB] irf-port 2/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/0/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/0/2
[DeviceB-irf-port2/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet2/0/3和Ten-GigabitEthernet2/0/4绑定。
[DeviceB] irf-port 2/2
[DeviceB-irf-port2/2] port group interface ten-gigabitethernet 2/0/3
[DeviceB-irf-port2/2] port group interface ten-gigabitethernet 2/0/4
[DeviceB-irf-port2/2] quit
# 开启Ten-GigabitEthernet2/0/1~Ten-GigabitEthernet2/0/4端口。
[DeviceB] interface range ten-gigabitethernet 2/0/1 to ten-gigabitethernet 2/0/4
[DeviceB-if-range] undo shutdown
[DeviceB-if-range] quit
# 将当前配置保存到下次启动配置文件。
[DeviceB] quit
<DeviceB> save
# 参照图9连接DeviceB和DeviceA。
# 激活IRF端口的配置。
<DeviceB> system-view
[DeviceB] irf-port-configuration active
# 系统会提示发生IRF合并,由于DeviceB的IRF优先级为缺省值1,低于DeviceA,因此会在竞选中失败而自动重启,重启后两台设备形成一个IRF。
(3) 配置Device C
# 配置Device C的成员编号为3,并重启设备使配置生效。
<DeviceC> system-view
[DeviceC] irf member 1 renumber 3
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceC] quit
<DeviceC> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet3/0/1~Ten-GigabitEthernet3/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceC> system-view
[DeviceC] interface range ten-gigabitethernet 3/0/1 to ten-gigabitethernet 3/0/4
[DeviceC-if-range] shutdown
[DeviceC-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet3/0/1和Ten-GigabitEthernet3/0/2绑定。
[DeviceC] irf-port 3/1
[DeviceC-irf-port3/1] port group interface ten-gigabitethernet 3/0/1
[DeviceC-irf-port3/1] port group interface ten-gigabitethernet 3/0/2
[DeviceC-irf-port3/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet3/0/3和Ten-GigabitEthernet3/0/4绑定。
[DeviceC] irf-port 3/2
[DeviceC-irf-port3/2] port group interface ten-gigabitethernet 3/0/3
[DeviceC-irf-port3/2] port group interface ten-gigabitethernet 3/0/4
[DeviceC-irf-port3/2] quit
# 开启Ten-GigabitEthernet3/0/1~Ten-GigabitEthernet3/0/4端口。
[DeviceC] interface range ten-gigabitethernet 3/0/1 to ten-gigabitethernet 3/0/4
[DeviceC-if-range] undo shutdown
[DeviceC-if-range] quit
# 将当前配置保存到下次启动配置文件。
[DeviceC] quit
<DeviceC> save
# 参照图9连接DeviceC和DeviceB。
# 激活IRF端口的配置。
<DeviceC> system-view
[DeviceC] irf-port-configuration active
# 系统会提示发生IRF合并,DeviceC会自动重启,重启后作为从设备加入由DeviceA和DeviceB组成的IRF。
(4) 配置Device D
# 配置Device D的成员编号为4,并重启设备使配置生效。
<DeviceD> system-view
[DeviceD] irf member 1 renumber 4
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[DeviceD] quit
<DeviceD> reboot
# 将用作IRF物理端口的Ten-GigabitEthernet4/0/1~Ten-GigabitEthernet4/0/4的手工关闭。使用端口批量配置功能可以更快速的完成配置。
<DeviceD> system-view
[DeviceD] interface range ten-gigabitethernet 4/0/1 to ten-gigabitethernet 4/0/4
[DeviceD-if-range] shutdown
[DeviceD-if-range] quit
# 创建IRF端口1,与端口Ten-GigabitEthernet4/0/1和Ten-GigabitEthernet4/0/2绑定。
[DeviceD] irf-port 4/1
[DeviceD-irf-port4/1] port group interface ten-gigabitethernet 4/0/1
[DeviceD-irf-port4/1] port group interface ten-gigabitethernet 4/0/2
[DeviceD-irf-port4/1] quit
# 创建IRF端口2,与端口Ten-GigabitEthernet4/0/3和Ten-GigabitEthernet4/0/4绑定。
[DeviceD] irf-port 4/2
[DeviceD-irf-port4/2] port group interface ten-gigabitethernet 4/0/3
[DeviceD-irf-port4/2] port group interface ten-gigabitethernet 4/0/4
[DeviceD-irf-port4/2] quit
# 开启Ten-GigabitEthernet4/0/1~Ten-GigabitEthernet4/0/4端口。
[DeviceD] interface range ten-gigabitethernet 4/0/1 to ten-gigabitethernet 4/0/4
[DeviceD-if-range] undo shutdown
[DeviceD-if-range] quit
# 将当前配置保存到下次启动配置文件。
[DeviceD] quit
<DeviceD> save
# 参照图9连接DeviceD和DeviceC。
# 激活IRF端口的配置。
<DeviceD> system-view
[DeviceD] irf-port-configuration active
# 系统会提示发生IRF合并,DeviceD会自动重启,重启后作为从设备加入由DeviceA、DeviceB和DeviceC组成的IRF。
# IRF建立完成后,命令行的提示符将变为DeviceA的主机名,即“DeviceA”。为便于辨认,将IRF的主机名修改为IRF。
<DeviceA> system-view
[DeviceA] sysname IRF
[IRF]
所有设备都配置完成后,网络中将形成一个包含四台成员设备的IRF,效果如图10所示。从组网中其它设备的角度来看,IRF是一台普通的实体网络设备。从整体网络拓扑来看,汇聚层已经形成一台高端口密度的独立设备。
图10 IRF搭建完成后的组网示意图
BFD MAD检测需要使用独立的检测链路,可以通过以下方式建立检测链路:
· 在成员设备较少的情况下,可以使用成员设备间全连接的方式。
· 在成员设备较多时,需要使用中间设备,并在每台成员设备与中间设备之间建立物理连接。
本例中我们利用一台接入层交换机作为中间设备来实现BFD MAD检测。
中间设备用于透传BFD协议报文,协助IRF中的成员设备进行MAD检测,因此只需要保证BFD MAD检测链路上的所有端口都处于同一个VLAN内即可,且该VLAN应为BFD MAD专用,不能包含除BFD MAD检测链路之外的其它链路。
图11 BFD MAD组网连接图
在IRF设备上:
· BFD MAD检测链路和BFD MAD检测VLAN必须是专用的,不允许配置任何其它特性。
· 如果网络中存在多个IRF,在配置BFD MAD时,各IRF必须使用不同的VLAN作为BFD MAD检测专用VLAN。
· 不允许在Vlan-interface1接口上使能BFD MAD检测功能。
· BFD MAD检测功能与生成树功能互斥,在使能了BFD MAD检测功能的三层接口对应VLAN内的端口上,请不要使能生成树协议。
· 在用于BFD MAD检测的接口下必须使用mad ip address命令配置MAD IP地址,而不要配置其它IP地址(包括使用ip address命令配置的普通IP地址、VRRP虚拟IP地址等),以免影响MAD检测功能。
· 为保证MAD检测功能正常运行,请不要将MAD IP地址配置为设备上已经使用的IP地址。
在中间设备上:
· BFD MAD检测链路上的端口必须属于同一VLAN,且该VLAN内不能包含其它端口。
· 为保证BFD MAD检测功能正常运行,BFD MAD检测链路上的端口请不要配置其它功能,建议在缺省配置的基础上进行配置。
(1) IRF上的配置
# 创建VLAN 1000,并将用于BFD MAD检测的所有端口(包括Ten-GigabitEthernet1/0/5、Ten-GigabitEthernet2/0/5、Ten-GigabitEthernet3/0/5和Ten-GigabitEthernet4/0/5)加入VLAN中。
<IRF> system-view
[IRF] vlan 1000
[IRF-vlan1000] port ten-gigabitethernet 1/0/5 ten-gigabitethernet 2/0/5 ten-gigabitethernet 3/0/5 ten-gigabitethernet 4/0/5
[IRF-vlan3] quit
# 创建VLAN接口1000,并配置MAD IP地址,本例中选用未使用的网段192.168.2.0/24的地址作为MAD IP地址。
[IRF] interface vlan-interface 1000
[IRF-Vlan-interface1000] mad bfd enable
[IRF-Vlan-interface1000] mad ip address 192.168.2.1 24 member 1
[IRF-Vlan-interface1000] mad ip address 192.168.2.2 24 member 2
[IRF-Vlan-interface1000] mad ip address 192.168.2.3 24 member 3
[IRF-Vlan-interface1000] mad ip address 192.168.2.4 24 member 4
[IRF-Vlan-interface1000] quit
# 因为BFD MAD和生成树功能互斥,所以在用于BFD MAD检测的端口上关闭生成树协议。
[IRF] interface ten-gigabitethernet 1/0/5
[IRF-Ten-GigabitEthernet-1/0/5] undo stp enable
[IRF-Ten-GigabitEthernet-1/0/5] quit
[IRF] interface ten-gigabitethernet 2/0/5
[IRF-Ten-GigabitEthernet-2/0/5] undo stp enable
[IRF-Ten-GigabitEthernet-2/0/5] quit
[IRF] interface ten-gigabitethernet 3/0/5
[IRF-Ten-GigabitEthernet-3/0/5] undo stp enable
[IRF-Ten-GigabitEthernet-3/0/5] quit
[IRF] interface ten-gigabitethernet 4/0/5
[IRF-Ten-GigabitEthernet-4/0/5] undo stp enable
[IRF-Ten-GigabitEthernet-4/0/5] quit
(2) 中间设备上的配置
# 创建VLAN 1000,并将用于BFD MAD检测的所有端口(包括Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2、Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4)加入VLAN中。
<Sysname> system-view
[Sysname] vlan 1000
[Sysname-vlan1000] port ten-gigabitethernet 1/0/1 ten-gigabitethernet 1/0/2 ten-gigabitethernet 1/0/3 ten-gigabitethernet 1/0/4
[Sysname-vlan3] quit
本例中以部门B和部门C为例介绍网络基础连通性配置,其它部门可参照此方式进行配置。
· 本例中IRF工作在三层环境下,因此网络基础连通性配置包括与上下行设备的链路连接配置以及路由协议配置。
· 在完成IRF的搭建后,对于下行设备,可以将上行链路连接到IRF的多台成员设备上形成聚合组;而IRF也可以将自己的上行聚合链路的成员端口分布到不同的成员设备上,以提高网络的整体可靠性。
· IRF作为网关设备,需要将连接接入层设备和核心层设备的链路加入不同的VLAN,并配置VLAN接口及IP地址,最终通过OSPF实现路由信息的收集。
在本例中,核心层两台设备分别具有连接到外网的线路,IRF与上下行设备的连接和接口IP规划如图12所示。
由于IRF在网络拓扑中相当于一台独立设备,因此在组网示意图中,使用单台设备表示IRF。
设备 |
聚合接口 |
成员端口 |
所属VLAN |
接口IP地址 |
RouterA |
Agg40 |
Ten-GigabitEthernet1/0/1 Ten-GigabitEthernet1/0/2 Ten-GigabitEthernet1/0/3 Ten-GigabitEthernet1/0/4 |
VLAN40 |
10.214.50.2/30 |
Agg42 |
Ten-GigabitEthernet1/0/5 Ten-GigabitEthernet1/0/6 |
VLAN42 |
10.214.50.9/30 |
|
RouterB |
Agg41 |
Ten-GigabitEthernet1/0/1 Ten-GigabitEthernet1/0/2 Ten-GigabitEthernet1/0/3 Ten-GigabitEthernet1/0/4 |
VLAN41 |
10.214.50.6/30 |
Agg42 |
Ten-GigabitEthernet1/0/5 Ten-GigabitEthernet1/0/6 |
VLAN42 |
10.214.50.10/30 |
|
IRF |
Agg10 |
Ten-GigabitEthernet1/0/10 Ten-GigabitEthernet2/0/10 Ten-GigabitEthernet3/0/10 Ten-GigabitEthernet4/0/10 |
VLAN10 |
10.214.10.1/24 |
Agg20 |
Ten-GigabitEthernet1/0/11 Ten-GigabitEthernet2/0/11 Ten-GigabitEthernet3/0/11 Ten-GigabitEthernet4/0/11 |
VLAN20 |
10.214.20.1/24 |
|
Agg40 |
Ten-GigabitEthernet1/0/13 Ten-GigabitEthernet2/0/13 Ten-GigabitEthernet3/0/13 Ten-GigabitEthernet4/0/13 |
VLAN40 |
10.214.50.1/30 |
|
Agg41 |
Ten-GigabitEthernet1/0/14 Ten-GigabitEthernet2/0/14 Ten-GigabitEthernet3/0/14 Ten-GigabitEthernet4/0/14 |
VLAN41 |
10.214.50.5/30 |
|
DeviceE |
Agg10 |
Ten-GigabitEthernet1/0/49 Ten-GigabitEthernet1/0/50 Ten-GigabitEthernet1/0/51 Ten-GigabitEthernet1/0/52 |
VLAN10 |
- |
DeviceF |
Agg20 |
Ten-GigabitEthernet1/0/49 Ten-GigabitEthernet1/0/50 Ten-GigabitEthernet1/0/51 Ten-GigabitEthernet1/0/52 |
VLAN20
|
- |
· 为提高链路聚合的灵活性,本例中均以动态聚合链路为例进行介绍。
· 核心层设备RouterA和RouterB连接外网的接口和IP地址配置此处省略。
(1) 配置RouterA
# 创建VLAN40和VLAN42。
<RouterA> system-view
[RouterA] vlan 40
[RouterA-vlan40] quit
[RouterA] vlan 42
[RouterA-vlan42] quit
# 创建一个动态聚合接口40。
[RouterA] interface bridge-aggregation 40
[RouterA-Bridge-Aggregation40] link-aggregation mode dynamic
[RouterA-Bridge-Aggregation40] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2、Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4。
[RouterA] interface ten-gigabitethernet 1/0/1
[RouterA-Ten-GigabitEthernet1/0/1] port link-aggregation group 40
[RouterA-Ten-GigabitEthernet1/0/1] quit
[RouterA] interface ten-gigabitethernet 1/0/2
[RouterA-Ten-GigabitEthernet1/0/2] port link-aggregation group 40
[RouterA-Ten-GigabitEthernet1/0/2] quit
[RouterA] interface ten-gigabitethernet 1/0/3
[RouterA-Ten-GigabitEthernet1/0/3] port link-aggregation group 40
[RouterA-Ten-GigabitEthernet1/0/3] quit
[RouterA] interface ten-gigabitethernet 1/0/4
[RouterA-Ten-GigabitEthernet1/0/4] port link-aggregation group 40
[RouterA-Ten-GigabitEthernet1/0/4] quit
# 将聚合接口40加入VLAN40。
[RouterA] interface bridge-aggregation 40
[RouterA-Bridge-Aggregation40] port access vlan 40
# 创建一个动态聚合接口42。
[RouterA] interface bridge-aggregation 42
[RouterA-Bridge-Aggregation42] link-aggregation mode dynamic
[RouterA-Bridge-Aggregation42] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/0/5、Ten-GigabitEthernet1/0/6。
[RouterA] interface ten-gigabitethernet 1/0/5
[RouterA-Ten-GigabitEthernet1/0/5] port link-aggregation group 42
[RouterA-Ten-GigabitEthernet1/0/5] quit
[RouterA] interface ten-gigabitethernet 1/0/6
[RouterA-Ten-GigabitEthernet1/0/6] port link-aggregation group 42
[RouterA-Ten-GigabitEthernet1/0/6] quit
# 将聚合接口42加入VLAN42。
[RouterA] interface bridge-aggregation 42
[RouterA-Bridge-Aggregation42] port access vlan 42
[RouterA-Bridge-Aggregation42] quit
# 为VLAN40和VLAN42创建VLAN接口,并配置IP地址。
[RouterA] interface vlan-interface 40
[RouterA-Vlan-interface40] ip address 10.214.50.2 30
[RouterA-Vlan-interface40] quit
[RouterA] interface vlan-interface 42
[RouterA-Vlan-interface42] ip address 10.214.50.9 30
[RouterA-Vlan-interface42] quit
# 配置OSPF,发布本地三个直连网段。
[RouterA] ospf
[RouterA-ospf-1] import-route direct
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 10.214.60.0 0.0.0.3
[RouterA-ospf-1-area-0.0.0.0] network 10.214.50.0 0.0.0.3
[RouterA-ospf-1-area-0.0.0.0] network 10.214.50.8 0.0.0.3
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
(2) 配置RouterB
# 创建VLAN41、VLAN42。
<RouterB> system-view
[RouterB] vlan 41 to 42
# 创建一个动态聚合接口41。
[RouterB] interface bridge-aggregation 41
[RouterB-Bridge-Aggregation41] link-aggregation mode dynamic
[RouterB-Bridge-Aggregation41] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2、Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4。
[RouterB] interface ten-gigabitethernet 1/0/1
[RouterB-Ten-GigabitEthernet1/0/1] port link-aggregation group 41
[RouterB-Ten-GigabitEthernet1/0/1] quit
[RouterB] interface ten-gigabitethernet 1/0/2
[RouterB-Ten-GigabitEthernet1/0/2] port link-aggregation group 41
[RouterB-Ten-GigabitEthernet1/0/2] quit
[RouterB] interface ten-gigabitethernet 1/0/3
[RouterB-Ten-GigabitEthernet1/0/3] port link-aggregation group 41
[RouterB-Ten-GigabitEthernet1/0/3] quit
[RouterB] interface ten-gigabitethernet 1/0/4
[RouterB-Ten-GigabitEthernet1/0/4] port link-aggregation group 41
[RouterB-Ten-GigabitEthernet1/0/4] quit
# 将聚合接口41加入VLAN41。
[RouterB] interface bridge-aggregation 41
[RouterB-Bridge-Aggregation41] port access vlan 41
[RouterB-Bridge-Aggregation41] quit
# 创建一个动态聚合接口42。
[RouterB] interface bridge-aggregation 42
[RouterB-Bridge-Aggregation42] link-aggregation mode dynamic
[RouterB-Bridge-Aggregation42] port access vlan 42
[RouterB-Bridge-Aggregation42] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/0/5、Ten-GigabitEthernet1/0/6。
[RouterB] interface ten-gigabitethernet 1/0/5
[RouterB-Ten-GigabitEthernet1/0/5] port link-aggregation group 42
[RouterB-Ten-GigabitEthernet1/0/5] quit
[RouterB] interface ten-gigabitethernet 1/0/6
[RouterB-Ten-GigabitEthernet1/0/6] port link-aggregation group 42
[RouterB-Ten-GigabitEthernet1/0/6] quit
# 将聚合接口42加入VLAN42。
[RouterB] interface bridge-aggregation 42
[RouterB-Bridge-Aggregation42] port access vlan 42
[RouterB-Bridge-Aggregation42] quit
# 为VLAN41和VLAN42创建VLAN接口,并配置IP地址。
[RouterB] interface vlan-interface 41
[RouterB-Vlan-interface41] ip address 10.214.50.6 30
[RouterB-Vlan-interface41] quit
[RouterB] interface vlan-interface 42
[RouterB-Vlan-interface42] ip address 10.214.50.10 30
[RouterB-Vlan-interface42] quit
# 配置OSPF,发布本地三个直连网段。
[RouterB] ospf
[RouterB-ospf-1] import-route direct
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 10.214.70.0 0.0.0.3
[RouterB-ospf-1-area-0.0.0.0] network 10.214.50.0 0.0.0.3
[RouterB-ospf-1-area-0.0.0.0] network 10.214.50.8 0.0.0.3
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
(3) 配置IRF
# 创建VLAN10、VLAN20、VLAN40、VLAN41。
<IRF> system-view
[IRF] vlan 10
[IRF-vlan10] quit
[IRF] vlan 20
[IRF-vlan20] quit
[IRF] vlan 40
[IRF-vlan40] quit
[IRF] vlan 41
[IRF-vlan41] quit
# 创建一个动态聚合接口10。
[IRF] interface bridge-aggregation 10
[IRF-Bridge-Aggregation10] link-aggregation mode dynamic
[IRF-Bridge-Aggregation10] quit
# 在聚合接口中添加成员端口,包括Ten-GigabitEthernet1/0/10、Ten-GigabitEthernet2/0/10、Ten-GigabitEthernet3/0/10、Ten-GigabitEthernet4/0/10。
[IRF] interface ten-gigabitethernet 1/0/10
[IRF-Ten-GigabitEthernet1/0/10] port link-aggregation group 10
[IRF-Ten-GigabitEthernet1/0/10] quit
[IRF] interface ten-gigabitethernet 2/0/10
[IRF-Ten-GigabitEthernet2/0/10] port link-aggregation group 10
[IRF-Ten-GigabitEthernet2/0/10] quit
[IRF] interface ten-gigabitethernet 3/0/10
[IRF-Ten-GigabitEthernet3/0/10] port link-aggregation group 10
[IRF-Ten-GigabitEthernet3/0/10] quit
[IRF] interface ten-gigabitethernet 4/0/10
[IRF-Ten-GigabitEthernet4/0/10] port link-aggregation group 10
[IRF-Ten-GigabitEthernet4/0/10] quit
# 将聚合接口10加入VLAN10。
[IRF] interface bridge-aggregation 10
[IRF-Bridge-Aggregation10] port access vlan 10
[IRF-Bridge-Aggregation10] quit
# 请按图12下方表格中的内容配置聚合接口20、40、41,并将聚合组加入相应VLAN,以及在聚合组中加入相应的端口,配置过程不再赘述。
# 为VLAN10、VLAN20、VLAN40、VLAN41创建VLAN接口,并配置IP地址。
[IRF] interface vlan-interface 10
[IRF-Vlan-interface10] ip address 10.214.10.1 24
[IRF-Vlan-interface10] quit
[IRF] interface vlan-interface 20
[IRF-Vlan-interface20] ip address 10.214.20.1 24
[IRF-Vlan-interface20] quit
[IRF] interface vlan-interface 40
[IRF-Vlan-interface40] ip address 10.214.50.1 30
[IRF-Vlan-interface40] quit
[IRF] interface vlan-interface 41
[IRF-Vlan-interface41] ip address 10.214.50.5 30
[IRF-Vlan-interface41] quit
# 配置OSPF,发布本地所有直连网段。
[IRF] ospf
[IRF-ospf-1] import-route direct
[IRF-ospf-1] area 0
[IRF-ospf-1-area-0.0.0.0] network 10.214.10.0 0.0.0.255
[IRF-ospf-1-area-0.0.0.0] network 10.214.20.0 0.0.0.255
[IRF-ospf-1-area-0.0.0.0] network 10.214.50.0 0.0.0.3
[IRF-ospf-1-area-0.0.0.0] network 10.214.50.4 0.0.0.3
[IRF-ospf-1-area-0.0.0.0] quit
[IRF-ospf-1] quit
(4) 配置DeviceE
# 创建一个动态聚合接口10。
[DeviceE] interface bridge-aggregation 10
[DeviceE-Bridge-Aggregation10] link-aggregation mode dynamic
[DeviceE-Bridge-Aggregation10] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/0/49、Ten-GigabitEthernet1/0/50、Ten-GigabitEthernet1/0/51和Ten-GigabitEthernet1/0/52。
[DeviceE] interface ten-gigabitethernet 1/0/49
[DeviceE-Ten-GigabitEthernet1/0/49] port link-aggregation group 10
[DeviceE-Ten-GigabitEthernet1/0/49] quit
[DeviceE] interface ten-gigabitethernet 1/0/50
[DeviceE-Ten-GigabitEthernet1/0/50] port link-aggregation group 10
[DeviceE-Ten-GigabitEthernet1/0/50] quit
[DeviceE] interface ten-gigabitethernet 1/0/51
[DeviceE-Ten-GigabitEthernet1/0/51] port link-aggregation group 10
[DeviceE-Ten-GigabitEthernet1/0/51] quit
[DeviceE] interface ten-gigabitethernet 1/0/52
[DeviceE-Ten-GigabitEthernet1/0/52] port link-aggregation group 10
[DeviceE-Ten-GigabitEthernet1/0/52] quit
# DeviceF的配置与DeviceE相似,请按照图12下方表格中的内容创建聚合接口并向聚合组中加入相应的端口,配置过程此处省略。
# 使用display irf命令查看当前IRF的信息。
<Sysname> display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 31 00e0-fc0f-8c02 ---
2 Standby 1 00e0-fc0f-8c03 ---
3 Standby 1 00e0-fc0f-8c04 ---
4 Standby 1 00e0-fc0f-8c05 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 0cda-414a-859b
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
通过上述信息,可以看到IRF中已经包含四台设备。
# 使用display irf topology命令查看IRF连接拓扑。
<Sysname> display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
1 UP 2 UP 4 0cda-414a-859b
2 UP 3 UP 1 0cda-414a-859b
3 UP 4 UP 2 0cda-414a-859b
4 UP 1 UP 3 0cda-414a-859b
通过上述信息,可以确认IRF实际拓扑形态符合组网需求。
在IRF上执行display ip routing-table命令查看路由表内容。
<Sysname> display ip routing-table
Routing Tables: Public
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost NextHop Interface
10.214.10.0/24 Direct 0 0 10.214.10.1 Vlan10
10.214.10.1/32 Direct 0 0 127.0.0.1 InLoop0
10.214.20.0/24 Direct 0 0 10.214.20.1 Vlan20
10.214.20.1/32 Direct 0 0 127.0.0.1 InLoop0
10.214.50.0/30 Direct 0 0 10.214.50.1 Vlan40
10.214.50.1/32 Direct 0 0 127.0.0.1 InLoop0
10.214.50.4/30 Direct 0 0 10.214.50.5 Vlan41
10.214.50.5/32 Direct 0 0 127.0.0.1 InLoop0
10.214.50.8/30 OSPF 10 2 10.214.50.2 Vlan40
10.214.60.0/30 OSPF 10 2 10.214.50.2 Vlan40
10.214.70.0/30 OSPF 10 2 10.214.50.6 Vlan41
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
通过以上信息,可以判断IRF已经学习到核心路由器对外网接口的路由信息。
# 从服务器群中任意挑选一台Server,以RouterA的10.214.50.2地址为目标进行ping操作。
C:\Users>ping 10.214.50.2 –t
# 将IRF连接RouterA的聚合组40中Ten-GigabitEthernet1/0/13端口shutdown。
[IRF] interface ten-gigabitethernet 1/0/13
[IRF-Ten-GigabitEthernet1/0/13] shutdown
[IRF-Ten-GigabitEthernet1/0/13] quit
# 在Server上查看,ping操作出现个别长延时回复后很快恢复正常速度的回复。
Pinging 10.214.50.2 with 32 bytes of data:
Reply from 10.214.50.2: bytes=32 time=8ms TTL=127
Reply from 10.214.50.2: bytes=32 time=7ms TTL=127
Reply from 10.214.50.2: bytes=32 time=2ms TTL=127
Reply from 10.214.50.2: bytes=32 time=278ms TTL=127
Reply from 10.214.50.2: bytes=32 time=7ms TTL=127
断开任意两台成员设备之间的两条IRF物理链路,IRF仍能正常工作,没有分裂。
由于本例中的IRF使用环形拓扑,因此当一条IRF链路出现故障后,IRF拓扑将变为链型,不会发生分裂。现在将DeviceB和DeviceC,以及DeviceA和DeviceD之间的物理连接均断开,IRF将分裂为两个IRF,两个IRF内的成员分别如图13所示。
图13 IRF分裂示意图
# 发生分裂时,系统将输出IRF链路状态错误提示,以及单板失效提示,以IRF1的输出信息为例。
%Jan 1 05:19:10:176 2019 H3C STM/3/STM_LINK_STATUS_DOWN: IRF port 2 is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/3 link status is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/4 link status is down.
%Jan 1 05:19:10:176 2019 H3C STM/3/STM_LINK_STATUS_DOWN: IRF port 1 is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/1 link status is down.
%Jan 1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet2/0/2 link status is down.
%Jan 1 05:19:10:186 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 3, type is MAIN_BOARD_TYPE_54QT.
%Jan 1 05:19:10:186 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 4, type is MAIN_BOARD_TYPE_54QT.
%Jan 1 00:40:22:534 2019 H3C BFD/5/BFD_CHANGE_FSM: Sess[192.168.2.1/192.168.2.3, LD/RD:33/33, Interface:Vlan1000, SessType:Ctrl, LinkType:INET], Sta: DOWN->INIT, Diag: 0
%Jan 1 00:40:22:791 2019 H3C BFD/5/BFD_CHANGE_FSM: Sess[192.168.2.1/192.168.2.3, LD/RD:33/33, Interface:Vlan1000, SessType:Ctrl, LinkType:INET], Sta: INIT->UP, Diag: 0
%Jan 1 00:40:27:962 2019 H3C BFD/5/BFD_CHANGE_FSM: Sess[192.168.2.1/192.168.2.3, LD/RD:33/33, Interface:Vlan1000, SessType:Ctrl, LinkType:INET], Sta: UP->DOWN, Diag: 1
可以看到,由于IRF分裂后,IRF2中的DeviceC成为主设备,DeviceC上配置的MAD IP地址开始生效,从而使DeviceA和DeviceC之间成功建立BFD MAD会话。IRF通过BFD MAD会话的状态变为UP判断出网络中发生了IRF分裂。由于IRF2的Master设备编号较大,因此在MAD冲突后将变为Recovery状态,关闭了除保留端口之外的所有端口,因此BFD MAD会话也随之快速关闭。
# 登录DeviceC查看IRF2的MAD状态,可以看到IRF2处于Recovery状态。
<Sysname> display mad verbose
Current MAD status: Recovery
Excluded ports(configurable):
Excluded ports(can not be configured):
IRF physical interfaces:
Ten-GigabitEthernet3/0/1
Ten-GigabitEthernet3/0/2
Ten-GigabitEthernet3/0/3
Ten-GigabitEthernet3/0/4
Ten-GigabitEthernet4/0/1
Ten-GigabitEthernet4/0/2
Ten-GigabitEthernet4/0/3
Ten-GigabitEthernet4/0/4
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled interface:
Vlan-interface1000
mad ip address 192.168.2.1 255.255.255.0 member 1
mad ip address 192.168.2.2 255.255.255.0 member 2
mad ip address 192.168.2.3 255.255.255.0 member 3
mad ip address 192.168.2.4 255.255.255.0 member 4
# 此时需要您修复IRF链路,在其中一条IRF物理链路修复后,IRF1上会提示出现IRF合并现象,IRF2此时将自动重启。
%Jan 1 00:52:25:555 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/4 link status is up.
%Jan 1 00:52:25:555 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet1/0/4 is up.
%Jan 1 00:52:25:717 2019 H3C STM/6/STM_LINK_STATUS_UP: IRF port 2 is up.
%Jan 1 00:52:26:257 2019 H3C STM/4/STM_LINK_RECOVERY: Merge occurs.
%Jan 1 00:52:30:834 2019 H3C STM/3/STM_LINK_STATUS_DOWN: IRF port 2 is down.
%Jan 1 00:52:30:835 2019 H3C IFNET/3/PHY_UPDOWN: Ten-GigabitEthernet1/0/4 link status is down.
%Jan 1 00:52:30:836 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Ten-GigabitEthernet1/0/4 is down.
# 待DeviceC和DeviceD重启完成后,IRF2将加入IRF1,您可以通过display irf topology命令显示IRF拓扑信息。
<Sysname> display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
1 UP 2 UP 4 0cda-414a-859b
2 UP 3 UP 1 0cda-414a-859b
3 UP 4 UP 2 0cda-414a-859b
4 UP 1 UP 3 0cda-414a-859b
可以看到IRF已经恢复。
· IRF的配置文件:
#
vlan 10
#
vlan 20
#
vlan 40
#
vlan 41
#
vlan 1000
#
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/1
port group interface Ten-GigabitEthernet1/0/2
#
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/3
port group interface Ten-GigabitEthernet1/0/4
#
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/1
port group interface Ten-GigabitEthernet2/0/2
#
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/3
port group interface Ten-GigabitEthernet2/0/4
#
irf-port 3/1
port group interface Ten-GigabitEthernet3/0/1
port group interface Ten-GigabitEthernet3/0/2
#
irf-port 3/2
port group interface Ten-GigabitEthernet3/0/3
port group interface Ten-GigabitEthernet3/0/4
#
irf-port 4/1
port group interface Ten-GigabitEthernet4/0/1
port group interface Ten-GigabitEthernet4/0/2
#
irf-port 4/2
port group interface Ten-GigabitEthernet4/0/3
port group interface Ten-GigabitEthernet4/0/5
#
interface Bridge-Aggregation10
port access vlan 10
link-aggregation mode dynamic
#
interface Bridge-Aggregation20
port access vlan 20
link-aggregation mode dynamic
#
interface Bridge-Aggregation40
port access vlan 40
link-aggregation mode dynamic
#
interface Bridge-Aggregation41
port access vlan 41
link-aggregation mode dynamic
#
interface Vlan-interface10
ip address 10.214.10.1 255.255.255.0
#
interface Vlan-interface20
ip address 10.214.20.1 255.255.255.0
#
interface Vlan-interface40
ip address 10.214.50.1 255.255.255.252
#
interface Vlan-interface41
ip address 10.214.50.5 255.255.255.252
#
interface Vlan-interface1000
mad bfd enable
mad ip address 192.168.2.1 255.255.255.0 member 1
mad ip address 192.168.2.2 255.255.255.0 member 2
mad ip address 192.168.2.3 255.255.255.0 member 3
mad ip address 192.168.2.4 255.255.255.0 member 4
#
interface Ten-GigabitEthernet1/0/5
port link-mode bridge
undo stp enable
port access vlan 1000
#
interface Ten-GigabitEthernet1/0/10
port link-mode bridge
port access vlan 10
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/11
port link-mode bridge
port access vlan 20
port link-aggregation group 20
#
interface Ten-GigabitEthernet1/0/13
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet1/0/14
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet2/0/5
port link-mode bridge
undo stp enable
port access vlan 1000
#
interface Ten-GigabitEthernet2/0/10
port link-mode bridge
port access vlan 10
port link-aggregation group 10
#
interface Ten-GigabitEthernet2/0/11
port link-mode bridge
port access vlan 20
port link-aggregation group 20
#
interface Ten-GigabitEthernet2/0/13
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet2/0/14
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet3/0/5
port link-mode bridge
undo stp enable
port access vlan 1000
#
interface Ten-GigabitEthernet3/0/10
port link-mode bridge
port access vlan 10
port link-aggregation group 10
#
interface Ten-GigabitEthernet3/0/11
port link-mode bridge
port access vlan 20
port link-aggregation group 20
#
interface Ten-GigabitEthernet3/0/13
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet3/0/14
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet4/0/5
port link-mode bridge
undo stp enable
port access vlan 1000
#
interface Ten-GigabitEthernet4/0/10
port link-mode bridge
port access vlan 10
port link-aggregation group 10
#
interface Ten-GigabitEthernet4/0/11
port link-mode bridge
port access vlan 20
port link-aggregation group 20
#
interface Ten-GigabitEthernet4/0/13
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet4/0/14
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
ospf 1
area 0.0.0.0
network 10.214.10.0 0.0.0.255
network 10.214.20.0 0.0.0.255
network 10.214.50.0 0.0.0.3
network 10.214.50.4 0.0.0.3
· Device E的配置文件:
#
vlan 1000
#
interface Bridge-Aggregation10
link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port access vlan 1000
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port access vlan 1000
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port access vlan 1000
#
interface Ten-GigabitEthernet1/0/4
port link-mode bridge
port access vlan 1000
#
interface Ten-GigabitEthernet1/0/49
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/50
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/51
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/52
port link-mode bridge
port link-aggregation group 10
· Device F的配置文件:
#
interface Bridge-Aggregation20
link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/49
port link-mode bridge
port link-aggregation group 20
#
interface Ten-GigabitEthernet1/0/50
port link-mode bridge
port link-aggregation group 20
#
interface Ten-GigabitEthernet1/0/51
port link-mode bridge
port link-aggregation group 20
#
interface Ten-GigabitEthernet1/0/52
port link-mode bridge
port link-aggregation group 20
· Router A的配置文件:
#
vlan 40
#
vlan 42
#
interface Bridge-Aggregation40
port access vlan 40
link-aggregation mode dynamic
#
interface Bridge-Aggregation42
port access vlan 42
link-aggregation mode dynamic
#
interface Vlan-interface40
ip address 10.214.50.2 255.255.255.252
#
interface Vlan-interface42
ip address 10.214.50.9 255.255.255.252
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet1/0/4
port link-mode bridge
port access vlan 40
port link-aggregation group 40
#
interface Ten-GigabitEthernet1/0/5
port link-mode bridge
port access vlan 42
port link-aggregation group 42
#
interface Ten-GigabitEthernet1/0/6
port link-mode bridge
port access vlan 42
port link-aggregation group 42
#
ospf 1
area 0.0.0.0
network 10.214.60.0 0.0.0.3
network 10.214.50.0 0.0.0.3
network 10.214.50.8 0.0.0.3
· Router B的配置文件:
#
vlan 41
#
vlan 42
#
interface Bridge-Aggregation41
port access vlan 41
link-aggregation mode dynamic
#
interface Bridge-Aggregation42
port access vlan 42
link-aggregation mode dynamic
#
interface Vlan-interface41
ip address 10.214.50.6 255.255.255.252
#
interface Vlan-interface42
ip address 10.214.50.10 255.255.255.252
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet1/0/4
port link-mode bridge
port access vlan 41
port link-aggregation group 41
#
interface Ten-GigabitEthernet1/0/5
port link-mode bridge
port access vlan 42
port link-aggregation group 42
#
interface Ten-GigabitEthernet1/0/6
port link-mode bridge
port access vlan 42
port link-aggregation group 42
#
ospf 1
area 0.0.0.0
network 10.214.70.0 0.0.0.3
network 10.214.50.0 0.0.0.3
network 10.214.50.8 0.0.0.3
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!