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

H3C S6850&S9850&S9820-64H 典型配置举例-Release 655x系列-6W100

目录

65-IRF典型配置举例

本章节下载 65-IRF典型配置举例  (999.57 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Switches/00-Public/Configure/Typical_Configuration_Example/H3C_S6850_S9850_S9820-64H_CE-6W100/202008/1323961_30005_0.htm

65-IRF典型配置举例

H3C S6850&S9850&S9820-64H IRF配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

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

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


目  录

1 简介

2 配置前提

3 使用限制

3.1 硬件限制

3.2 软件版本限制

3.3 软件功能限制

3.4 IRF物理端口使用限制

3.5 IRF连接限制

3.6 License使用限制

4 数据中心二层网络搭建IRF配置举例

4.1 组网需求

4.2 适用产品及版本

4.3 搭建IRF的配置

4.3.1 配置思路

4.3.2 物理连接

4.3.3 配置步骤

4.4 LACP MAD配置

4.4.1 配置思路

4.4.2 物理连接

4.4.3 配置注意事项

4.4.4 配置步骤

4.5 网络基础连通性配置

4.5.1 配置思路

4.5.2 物理连接

4.5.3 配置步骤

4.6 验证配置

4.6.1 验证IRF基本配置

4.6.2 验证链路聚合的备份功能

4.6.3 验证IRF环形拓扑的冗余保护功能

4.6.4 验证LACP MAD检测功能

4.7 配置文件

5 企业网中使用IRF作为汇聚层网关配置举例

5.1 组网需求

5.2 适用产品及版本

5.3 搭建IRF的配置

5.3.1 配置思路

5.3.2 物理连接

5.3.3 配置步骤

5.4 BFD MAD配置

5.4.1 配置思路

5.4.2 物理连接

5.4.3 配置注意事项

5.4.4 配置步骤

5.5 网络基础连通性配置

5.5.1 配置思路

5.5.2 组网图

5.5.3 配置步骤

5.6 验证配置

5.6.1 验证IRF的配置

5.6.2 验证路由协议配置状态

5.6.3 验证链路聚合的备份功能

5.6.4 验证IRF环形拓扑的容错功能

5.6.5 验证BFD MAD检测功能

5.7 配置文件

6 管理用以太网口配置ARP MAD典型配置举例(管理功能和MAD功能配置在同一接口)

6.1 简介

6.2 管理用以太网口配置ARP MAD典型配置举例

6.2.1 适用产品和版本

6.2.2 组网需求

6.2.3 配置思路

6.2.4 配置注意事项

6.2.5 配置步骤

6.2.6 验证配置

6.2.7 配置文件

7 管理用以太网口配置BFD MAD典型配置举例(管理功能和MAD功能配置在不同接口)

7.1 简介

7.2 管理用以太网口配置BFD MAD典型配置举例

7.2.1 适用产品和版本

7.2.2 组网需求

7.2.3 配置思路

7.2.4 配置注意事项

7.2.5 配置步骤

7.2.6 验证配置

7.2.7 配置文件

8 相关资料

 


1  简介

本文介绍了如何搭建IRF以及在IRF上配置链路聚合和路由功能。

2  配置前提

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

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

3  使用限制

3.1  硬件限制

S6850和S9850系列交换机不但可以与本系列内的交换机建立IRF,而且这两个系列的设备之间也能够建立IRF。

S9820-64H只能与相同型号的机型建立IRF。

3.2  软件版本限制

加入IRF的所有成员设备必须使用相同的软件版本。

3.3  软件功能限制

在多台设备形成IRF之前,请确保在各设备上以下功能的配置保持一致。

·            系统工作模式(通过system-working-mode命令配置)。

·            表项容量(通过hardware-resource switch-mode命令配置)。

·            IPv4等价路由增强模式(通过ecmp mode enhanced命令配置)。

·            前缀大于64位的IPv6路由功能(通过hardware-resource routing-mode命令配置)。

·            OpenFlow的无丢包模式开启状态(通过openflow lossless enable命令配置)。

·            VXLAN硬件资源模式(通过hardware-resource vxlan命令配置)。(仅S6850和S9850系列交换机涉及)

3.4  IRF物理端口使用限制

S6850&S9850系列交换机:

·            S6850&S9850系列交换机可以通过QSFP+口或QSFP28口(除了LSWM18CQMSEC接口模块扩展卡上的端口)提供100G/40G IRF物理连接,QSFP+口或QSFP28口拆分的10G口或25G口不支持用于IRF连接。LSWM18CQMSEC接口模块扩展卡上的端口不支持做IRF物理端口。

·            IRF物理端口支持使用QSFP28光模块及光纤、QSFP28光缆、QSFP28电缆、QSFP+光模块及光纤、QSFP+光缆或QSFP+电缆连接IRF物理端口,不支持使用QSFP28 to SFP28和QSFP+ to SFP+电缆连接IRF物理端口。

·            使用QSFP+电缆连接IRF物理端口时需要注意:

¡  链路两端需要都是固定端口或者都是接口模块扩展卡上的端口,不支持固定端口和接口模块模块扩展卡上的端口之间连接。

¡  接口模块扩展卡上的端口作IRF物理端口时,两端必须使用同一款型的接口模块扩展卡。

¡  S6850-2C后面板的固定QSFP28口使用QSFP+电缆进行IRF连接时,对端也必须为S6850-2C后面板的固定QSFP28口。

S9820-64H交换机:

·            S9820-64H交换机前面板上的所有QSFP28端口都可以用于IRF连接。QSFP28端口拆分的10G口或25G口不支持用于IRF连接。

·            IRF物理端口支持使用QSFP28光模块及光纤、QSFP28光缆、QSFP28电缆连接IRF端口;不支持使用QSFP+光模块及光纤、QSFP+光缆或QSFP+电缆连接IRF物理端口,不支持使用QSFP28 to SFP28和QSFP+ to SFP+电缆连接IRF物理端口。

3.5  IRF连接限制

本设备上与IRF-Port1绑定的IRF物理端口只能和邻居成员设备IRF-Port2口上绑定的IRF物理端口相连,本设备上与IRF-Port2口绑定的IRF物理端口只能和邻居成员设备IRF-Port1口上绑定的IRF物理端口相连。否则,不能形成IRF。

3.6  License使用限制

请确保IRF中各成员设备上安装的特性License一致,否则,可能会导致这些License对应的特性不能正常运行。

4  数据中心二层网络搭建IRF配置举例

4.1  组网需求

某数据中心搭建的组网如图1所示,使用本系列产品作为每个机柜的ToR(Top of Rack)接入设备,将服务器和存储设备接入网络。现要求使用图1所示的两个机柜上的四台本系列产品,通过IRF技术组成具备高密度接入能力和高可靠性的接入层,并使用LACP MAD功能及时发现和处理IRF的分裂事件。

图1 网络基本环境示意图

 

为完成组网需求,我们将配置分为以下三部分进行:

·            搭建IRF的配置

·            LACP MAD配置

·            基础网络连通性配置

4.2  适用产品及版本

表1 适用产品及版本

产品

软件版本

S6850系列

S9850系列

Release 6555P01

S9820-64H

Release 6555P01

 

4.3  搭建IRF的配置

4.3.1  配置思路

·            IRF的连接拓扑可以为环形或链形。为进一步提高IRF的可靠性,本例中我们采用环形拓扑来组建IRF,建议您在有条件的情况下使用环形拓扑。

·            IRF链路主要用于传输跨物理设备的业务流量,建议使用比接入终端的端口更高的速率来实现IRF连接。本例中将一个IRF端口与两个物理端口绑定形成聚合IRF物理端口,提高传输速率的同时还能够提供IRF链路的高可靠性,物理连接的形态如图2所示。

·            为区分IRF中的各成员设备,我们需要为四台设备分配成员编号。本例中以四台设备从左至右的成员编号分别为1、2、3、4为例。

·            IRF中包括一台主设备和多台从设备,主设备可以通过默认选举规则选举产生,也可以通过设置优先级来手工指定。本例中我们通过设置优先级来指定设备DeviceA为主设备。

4.3.2  物理连接

图2 IRF物理连接示意图

 

表1 IRF物理端口

设备

IRF端口

IRF物理端口

DeviceA

IRF-port1

HundredGigE1/0/25

HundredGigE1/0/26

IRF-port2

HundredGigE1/0/27

HundredGigE1/0/28

DeviceB

IRF-port1

HundredGigE2/0/25

HundredGigE2/0/26

IRF-port2

HundredGigE2/0/27

HundredGigE2/0/28

DeviceC

IRF-port1

HundredGigE3/0/25

HundredGigE3/0/26

IRF-port2

HundredGigE3/0/27

HundredGigE3/0/28

DeviceD

IRF-port1

HundredGigE4/0/25

HundredGigE4/0/26

IRF-port2

HundredGigE4/0/27

HundredGigE4/0/28

 

说明

缺省情况下,所有设备上端口编号的第一维均为1,表示设备成员编号。在对成员设备修改编号后,端口编号会随之改变,表1列出的是修改后的编号。

 

4.3.3  配置步骤

(1)       配置Device A

# 将用作IRF物理端口的HundredGigE1/0/25~HundredGigE1/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceA> system-view

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/28

[DeviceA-if-range] shutdown

[DeviceA-if-range] quit

# 创建IRF端口1,与端口HundredGigE1/025和HundredGigE1/0/26绑定。

[DeviceA] irf-port 1/1

[DeviceA-irf-port1/1] port group interface hundredgige 1/0/25

[DeviceA-irf-port1/1] port group interface hundredgige 1/0/26

[DeviceA-irf-port1/1] quit

# 创建IRF端口2,与端口HundredGigE1/0/27和HundredGigE1/0/28绑定。

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/27

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/28

[DeviceA-irf-port1/2] quit

# 开启HundredGigE1/0/25~HundredGigE1/0/28端口。

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/28

[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物理端口的HundredGigE2/0/25~HundredGigE2/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceB> system-view

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/28

[DeviceB-if-range] shutdown

[DeviceB-if-range] quit

# 创建IRF端口1,与端口HundredGigE2/0/25和HundredGigE2/0/26绑定。

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/25

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/26

[DeviceB-irf-port2/1] quit

# 创建IRF端口2,与端口HundredGigE2/0/27和HundredGigE2/028绑定。

[DeviceB] irf-port 2/2

[DeviceB-irf-port2/2] port group interface hundredgige 2/0/27

[DeviceB-irf-port2/2] port group interface hundredgige 2/0/28

[DeviceB-irf-port2/2] quit

# 开启HundredGigE2/0/25~HundredGigE2/0/28端口。

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/28

[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物理端口的HundredGigE3/0/25~HundredGigE3/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceC> system-view

[DeviceC] interface range hundredgige 3/0/25 to hundredgige 3/0/28

[DeviceC-if-range] shutdown

[DeviceC-if-range] quit

# 创建IRF端口1,与端口HundredGigE3/0/25和HundredGigE3/0/26绑定。

[DeviceC] irf-port 3/1

[DeviceC-irf-port3/1] port group interface hundredgige 3/0/25

[DeviceC-irf-port3/1] port group interface hundredgige 3/0/26

[DeviceC-irf-port3/1] quit

# 创建IRF端口2,与端口HundredGigE3/0/27和HundredGigE3/0/28绑定。

[DeviceC] irf-port 3/2

[DeviceC-irf-port3/2] port group interface hundredgige 3/0/27

[DeviceC-irf-port3/2] port group interface hundredgige 3/0/28

[DeviceC-irf-port3/2] quit

# 开启HundredGigE3/0/25~HundredGigE3/0/28端口。

[DeviceC] interface range hundredgige 3/0/25 to hundredgige 3/0/28

[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物理端口的HundredGigE4/0/25~HundredGigE4/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceD> system-view

[DeviceD] interface range hundredgige 4/0/25 to hundredgige 4/0/28

[DeviceD-if-range] shutdown

[DeviceD-if-range] quit

# 创建IRF端口1,与端口HundredGigE4/0/25和HundredGigE4/0/26绑定。

[DeviceD] irf-port 4/1

[DeviceD-irf-port4/1] port group interface hundredgige 4/0/25

[DeviceD-irf-port4/1] port group interface hundredgige 4/0/26

[DeviceD-irf-port4/1] quit

# 创建IRF端口2,与端口HundredGigE4/0/27和HundredGigE4/0/28绑定。

[DeviceD] irf-port 4/2

[DeviceD-irf-port4/2] port group interface hundredgige 4/0/27

[DeviceD-irf-port4/2] port group interface hundredgige 4/0/28

[DeviceD-irf-port4/2] quit

# 开启HundredGigE4/0/25~HundredGigE4/0/28端口。

[DeviceD] interface range hundredgige 4/0/25 to hundredgige 4/0/28

[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搭建完成后的组网示意图

 

4.4  LACP MAD配置

在数据中心组网中,为了实现更简单的拓扑结构,一般在接入层和汇聚层均采用IRF技术进行整合。本例中假设汇聚层的四台框式设备已经建立IRF。

4.4.1  配置思路

·            LACP MAD检测方式需要通过一台支持LACP协议的中间设备来进行,在本例中,我们可以在汇聚层IRF和接入层IRF上同时开启LACP MAD功能,使两个IRF相互作为中间设备,完成各自的LACP MAD检测。

·            在两个IRF设备之间配置LACP MAD检测时,需要为每个IRF配置不同的域编号。

·            在实际连接时,为保证上行带宽,建议使用更快速的端口实现上行聚合连接,本例中使用100GE端口进行上行连接。

4.4.2  物理连接

接入层的设备上行物理连接的示意图如图4所示。

图4 LACP MAD组网连接图

 

说明

实际使用中,您也可以在汇聚层和接入层IRF的所有成员设备间建立全连接,以实现更高的可靠性。所有的上行链路在拓扑上都被视为一条上行聚合链路。

 

图4的方式连接之后,每个IRF都将对方识别为一台LACP MAD的中间设备,并且本IRF中的每台成员设备都与对端IRF存在物理连接,满足LACP MAD的组网条件。LACP MAD的逻辑示意图请参见图5

图5 LACP MAD逻辑连接示意图

 

4.4.3  配置注意事项

LACP MAD必须在动态聚合接口上应用才能生效。

4.4.4  配置步骤

(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

[IRF-Bridge-Aggregation2] quit

# 为方便进行聚合组的配置,可以使用接口批量配置功能。使用名称为lacp的端口批量配置组,将所有上行接口加入动态聚合接口2中。

说明

为端口批量配置组命名可以方便后期再对上行端口进行批量配置,直接输入名称即可进入端口批量配置视图。

 

[IRF] interface range name lacp interface HundredGigE 1/0/29 to HundredGigE 1/0/30 HundredGigE 2/0/29 to HundredGigE 2/0/30 HundredGigE 3/0/29 to HundredGigE 3/0/30 HundredGigE 4/0/29 to HundredGigE 4/0/30

[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

[Sysname-Bridge-Aggregation2] quit

# 将所有下行接口加入动态聚合接口2中。

[Sysname] interface hundredgige 1/2/0/1

[Sysname-HundredGigE1/2/0/1] port link-aggregation group 2

[Sysname-HundredGigE1/2/0/1] quit

[Sysname] interface hundredgige 1/3/0/1

[Sysname-HundredGigE1/3/0/1] port link-aggregation group 2

[Sysname-HundredGigE1/3/0/1] quit

[Sysname] interface hundredgige 2/2/0/1

[Sysname-HundredGigE2/2/0/1] port link-aggregation group 2

[Sysname-HundredGigE2/2/0/1] quit

[Sysname] interface hundredgige 2/3/0/1

[Sysname-HundredGigE2/3/0/1] port link-aggregation group 2

[Sysname-HundredGigE2/3/0/1] quit

[Sysname] interface hundredgige 3/2/0/1

[Sysname-HundredGigE3/2/0/1] port link-aggregation group 2

[Sysname-HundredGigE3/2/0/1] quit

[Sysname] interface hundredgige 3/3/0/1

[Sysname-HundredGigE3/3/0/1] port link-aggregation group 2

[Sysname-HundredGigE3/3/0/1] quit

[Sysname] interface hundredgige 4/2/0/1

[Sysname-HundredGigE4/2/0/1] port link-aggregation group 2

[Sysname-HundredGigE4/2/0/1] quit

[Sysname] interface hundredgige 4/3/0/1

[Sysname-HundredGigE4/3/0/1] port link-aggregation group 2

[Sysname-HundredGigE4/3/0/1] quit

4.5  网络基础连通性配置

4.5.1  配置思路

·            本例中IRF工作在二层环境下,因此网络连通性配置以聚合链路功能为主。

·            在完成LACP MAD的配置后,上行的聚合组主要配置已经完成,只需要再配置允许通过的业务VLAN即可。

·            为提高可靠性,每个机柜中的服务器和存储设备都将以双上行的形式连接到本机柜中的两台ToR交换机上,并且将两条上行链路进行聚合。因此在接入层IRF中,需要将连接每台终端设备的两个端口也配置为一个聚合组。

4.5.2  物理连接

说明

此处仅以一台属于VLAN 10内的服务器为例进行连接示意,其它终端设备请参照此方式进行连接。

 

图6 网络基础连接示意图

 

4.5.3  配置步骤

(1)       配置接入层IRF

# 创建VLAN 10。

<IRF> system-view

[IRF] vlan 10

# 创建一个动态聚合接口3。

[IRF] interface bridge-aggregation 3

[IRF-Bridge-Aggregation3] link-aggregation mode dynamic

[IRF-Bridge-Aggregation3] quit

# 在聚合接口中添加成员端口Twenty-FiveGigE1/0/10。

[IRF] interface twenty-fivegige 1/0/10

[IRF-Twenty-FiveGigE1/0/10] port link-aggregation group 3

[IRF-Twenty-FiveGigE1/0/10] quit

# 在聚合接口中添加成员端口Twenty-FiveGigE2/0/10。

[IRF] interface twenty-fivegige 2/0/10

[IRF-Twenty-FiveGigE2/0/10] port link-aggregation group 3

[IRF-Twenty-FiveGigE2/0/10] quit

# 将聚合接口3加入VLAN 10。

[IRF] interface bridge-aggregation 3

[IRF-Bridge-Aggregation3] port access vlan 10

[IRF-Bridge-Aggregation3] quit

# 配置上行聚合接口2为Trunk类型,并允许VLAN 10通过。

[IRF] interface bridge-aggregation 2

[IRF-Bridge-Aggregation2] port link-type trunk

[IRF-Bridge-Aggregation2] port trunk permit vlan 10

[IRF-Bridge-Aggregation2] quit

# 将当前配置保存到下次启动配置文件。

[IRF] save

(2)       配置汇聚层IRF

# 创建VLAN 10。

<Sysname> system-view

[Sysname] vlan 10

# 配置下行聚合接口2为Trunk类型,并允许VLAN 10通过。

[Sysname] interface bridge-aggregation 2

[Sysname-Bridge-Aggregation2] port link-type trunk

[Sysname-Bridge-Aggregation2] port trunk permit vlan 10

[Sysname-Bridge-Aggregation2] quit

4.6  验证配置

4.6.1  验证IRF基本配置

# 在接入层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              : 12 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实际拓扑形态符合组网需求。

4.6.2  验证链路聚合的备份功能

# 任选一台服务器(以图6中ServerA为例),以汇聚层IRF的IP地址(以10.153.116.111为例)为目标进行ping操作。

C:\Users>ping 10.153.116.111 –t

# 将接入层IRF连接服务器的聚合组3中Twenty-FiveGigE1/0/10端口shutdown。

[IRF] interface twenty-fivegige 1/0/10

[IRF-Twenty-FiveGigE1/0/10] shutdown

[IRF-Twenty-FiveGigE1/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中HundredGigE1/0/29和HundredGigE1/0/30端口同时shutdown,使ServerA不能通过DeviceA接入汇聚层。

[IRF] interface range HundredGigE 1/0/29 HundredGigE 1/0/30

[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接入汇聚层。

4.6.3  验证IRF环形拓扑的冗余保护功能

断开任意两台ToR交换机之间的两条IRF物理链路,IRF仍能正常工作,没有分裂。

4.6.4  验证LACP MAD检测功能

由于本例中的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: HundredGigE1/0/27 link status is down.                                                               

%Jan  1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE1/0/28 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: HundredGigE2/0/25 link status is down.                                                               

%Jan  1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE2/0/26 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_56HF.                                                 

%Jan  1 05:53:20:831 2019 H3C DEV/3/BOARD_REMOVED: Board is removed from Slot 2, type is MAIN_BOARD_TYPE_56HF.                                                 

%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: HundredGigE3/0/29 link status is down.  

%Jan  1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE3/0/29 is down.                                            

%Jan  1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE3/0/30 link status is down.  

%Jan  1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE3/0/30 is down.                                            

%Jan  1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE4/0/29 link status is down.  

%Jan  1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE4/0/29 is down.                                            

%Jan  1 05:53:20:912 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE4/0/30 link status is down.  

%Jan  1 05:53:20:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE4/0/30 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:Twenty-FiveGigE2/0/10 link status is up.                                                             

%Jan  1 05:24:41:249 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface Twenty-FiveGigE2/0/10 is up.                                              

%Jan  1 05:24:41:325 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE2/0/29 link status is up.     

%Jan  1 05:24:41:325 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE2/0/30 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: HundredGigE1/0/27 link status is up.                                                                 

%Jan  1 05:29:06:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE1/0/27 is up.                                              

%Jan  1 05:29:06:913 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE1/0/28 link status is up.                                                                 

%Jan  1 05:29:06:914 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE1/0/28 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              : 12 min                                            

 Domain ID                   : 1       

4.7  配置文件

·            接入层IRF的配置

#

 sysname IRF

#

 irf domain 1

 irf member 1 priority 31

#

vlan 10

#

irf-port 1/1

 port group interface HundredGigE1/0/25

 port group interface HundredGigE1/0/26

#

irf-port 1/2

 port group interface HundredGigE1/0/27

 port group interface HundredGigE1/0/28

#

irf-port 2/1

 port group interface HundredGigE2/0/25

 port group interface HundredGigE2/0/26

#

irf-port 2/2

 port group interface HundredGigE2/0/27

 port group interface HundredGigE2/0/28

#

irf-port 3/1

 port group interface HundredGigE3/0/25

 port group interface HundredGigE3/0/26

#

irf-port 3/2

 port group interface HundredGigE3/0/27

 port group interface HundredGigE3/0/28

#

irf-port 4/1

 port group interface HundredGigE4/0/25

 port group interface HundredGigE4/0/26

#

irf-port 4/2

 port group interface HundredGigE4/0/27

 port group interface HundredGigE4/0/28

#

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 HundredGigE1/0/29

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE1/0/30

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE2/0/29

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE2/0/30

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE3/0/29

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE3/0/30

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE4/0/29

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE4/0/30

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface Twenty-FiveGigE1/0/10

 port link-mode bridge

 port access vlan 10

 port link-aggregation group 3

#

interface Twenty-FiveGigE2/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 HundredGigE1/2/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE1/3/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE2/2/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE2/3/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE3/2/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE3/3/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE4/2/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

#

interface HundredGigE4/3/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 10

 port link-aggregation group 2

5  企业网中使用IRF作为汇聚层网关配置举例

5.1  组网需求

某企业网络搭建的组网图如图8所示,接入层交换机通过上行接口将业务终端的数据转发至汇聚层设备,由汇聚层设备将终端对外网的访问数据通过路由转发至核心层设备,再发送至外网。核心层设备目前运行OSPF路由协议。现要求使用四台本系列设备,使用IRF技术搭建具备高性能路由转发能力和高可靠性的汇聚层网关。

图8 网络基本环境示意图

 

为完成组网需求,我们将配置分为以下三部分进行:

·            搭建IRF的配置

·            BFD MAD配置

·            基础网络连通性配置

5.2  适用产品及版本

表2 适用产品及版本

产品

软件版本

S6850系列

S9850系列

Release 6555P01

S9820-64H

Release 6555P01

 

5.3  搭建IRF的配置

5.3.1  配置思路

·            IRF的连接拓扑可以为环形或链形。为进一步提高IRF的可靠性,本例中我们采用环形拓扑来组建IRF,建议您在有条件的情况下使用环形拓扑。

·            IRF链路主要用于传输跨物理设备的业务流量,建议使用比接入终端的端口更高的速率来实现IRF连接。本例中将一个IRF端口与两个物理端口绑定形成聚合IRF物理端口,提高传输速率的同时还能够提供IRF链路的高可靠性,物理连接的形态如图9所示。

·            为区分IRF中的各成员设备,我们需要为四台设备分配成员编号。本例中以四台设备从左至右的成员编号分别为1、2、3、4为例。

·            IRF中包括一台主设备和多台从设备,主设备可以通过默认选举规则选举产生,也可以通过设置优先级来手工指定。本例中我们通过设置优先级来指定设备DeviceA为主设备。

5.3.2  物理连接

图9 IRF物理连接示意图

 

表2 IRF物理端口

设备

IRF端口

IRF物理端口

DeviceA

IRF-port1

HundredGigE1/0/25

HundredGigE1/0/26

IRF-port2

HundredGigE1/0/27

HundredGigE1/0/28

DeviceB

IRF-port1

HundredGigE2/0/25

HundredGigE2/0/26

IRF-port2

HundredGigE2/0/27

HundredGigE2/0/28

DeviceC

IRF-port1

HundredGigE3/0/25

HundredGigE3/0/26

IRF-port2

HundredGigE3/0/27

HundredGigE3/0/28

DeviceD

IRF-port1

HundredGigE4/0/25

HundredGigE4/0/26

IRF-port2

HundredGigE4/0/27

HundredGigE4/0/28

 

说明

缺省情况下,所有设备上端口编号的第一维均为1,表示设备成员编号。在对成员设备修改编号后,端口编号会随之改变,表2列出的是修改后的编号。

 

5.3.3  配置步骤

(1)       配置Device A

# 将用作IRF物理端口的HundredGigE1/0/25~HundredGigE1/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceA> system-view

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/28

[DeviceA-if-range] shutdown

[DeviceA-if-range] quit

# 创建IRF端口1,与端口HundredGigE1/0/25和HundredGigE1/0/26绑定。

[DeviceA] irf-port 1/1

[DeviceA-irf-port1/1] port group interface hundredgige 1/0/25

[DeviceA-irf-port1/1] port group interface hundredgige 1/0/26

[DeviceA-irf-port1/1] quit

# 创建IRF端口2,与端口HundredGigE1/0/27和HundredGigE1/0/28绑定。

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/27

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/28

[DeviceA-irf-port1/2] quit

# 开启HundredGigE1/0/25~HundredGigE1/0/28端口。

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/28

[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物理端口的HundredGigE2/0/25~HundredGigE2/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceB> system-view

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/28

[DeviceB-if-range] shutdown

[DeviceB-if-range] quit

# 创建IRF端口1,与端口HundredGigE2/0/25和HundredGigE2/0/26绑定。

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/25

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/26

[DeviceB-irf-port2/1] quit

# 创建IRF端口2,与端口HundredGigE2/0/27和HundredGigE2/0/28绑定。

[DeviceB] irf-port 2/2

[DeviceB-irf-port2/2] port group interface hundredgige 2/0/27

[DeviceB-irf-port2/2] port group interface hundredgige 2/0/28

[DeviceB-irf-port2/2] quit

# 开启HundredGigE2/0/25~HundredGigE2/0/28端口。

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/28

[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物理端口的HundredGigE3/0/25~HundredGigE3/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceC> system-view

[DeviceC] interface range hundredgige 3/0/25 to hundredgige 3/0/28

[DeviceC-if-range] shutdown

[DeviceC-if-range] quit

# 创建IRF端口1,与端口HundredGigE3/0/25和HundredGigE3/0/26绑定。

[DeviceC] irf-port 3/1

[DeviceC-irf-port3/1] port group interface hundredgige 3/0/25

[DeviceC-irf-port3/1] port group interface hundredgige 3/0/26

[DeviceC-irf-port3/1] quit

# 创建IRF端口2,与端口HundredGigE3/0/27和HundredGigE3/0/28绑定。

[DeviceC] irf-port 3/2

[DeviceC-irf-port3/2] port group interface hundredgige 3/0/27

[DeviceC-irf-port3/2] port group interface hundredgige 3/0/28

[DeviceC-irf-port3/2] quit

# 开启HundredGigE3/0/25~HundredGigE3/0/28端口。

[DeviceC] interface range hundredgige 3/0/25 to hundredgige 3/0/28

[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物理端口的HundredGigE4/0/25~HundredGigE4/0/28的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceD> system-view

[DeviceD] interface range hundredgige 4/0/25 to hundredgige 4/0/28

[DeviceD-if-range] shutdown

[DeviceD-if-range] quit

# 创建IRF端口1,与端口HundredGigE4/0/25和HundredGigE4/0/26绑定。

[DeviceD] irf-port 4/1

[DeviceD-irf-port4/1] port group interface hundredgige 4/0/25

[DeviceD-irf-port4/1] port group interface hundredgige 4/0/26

[DeviceD-irf-port4/1] quit

# 创建IRF端口2,与端口HundredGigE4/0/27和HundredGigE4/0/28绑定。

[DeviceD] irf-port 4/2

[DeviceD-irf-port4/2] port group interface hundredgige 4/0/27

[DeviceD-irf-port4/2] port group interface hundredgige 4/0/28

[DeviceD-irf-port4/2] quit

# 开启HundredGigE4/0/25~HundredGigE4/0/28端口。

[DeviceD] interface range hundredgige 4/0/25 to hundredgige 4/0/28

[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搭建完成后的组网示意图

 

5.4  BFD MAD配置

5.4.1  配置思路

BFD MAD检测需要使用独立的检测链路,可以通过以下方式建立检测链路:

·            在成员设备较少的情况下,可以使用成员设备间全连接的方式。

·            在成员设备较多时,需要使用中间设备,并在每台成员设备与中间设备之间建立物理连接。

本例中我们利用一台接入层交换机作为中间设备来实现BFD MAD检测。

中间设备用于透传BFD协议报文,协助IRF中的成员设备进行MAD检测,因此只需要保证BFD MAD检测链路上的所有端口都处于同一个VLAN内即可,且该VLAN应为BFD MAD专用,不能包含除BFD MAD检测链路之外的其它链路。

5.4.2  物理连接

图11 BFD MAD组网连接图

 

5.4.3  配置注意事项

在IRF设备上:

·            使能了BFD MAD检测功能的VLAN接口以及对应VLAN内的端口上不支持包括ARP和LACP在内的所有的二层或三层协议应用。

·            如果网络中存在多个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检测链路上的端口请不要配置其它功能,建议在缺省配置的基础上进行配置。

5.4.4  配置步骤

(1)       IRF上的配置

# 创建VLAN 1000,并将用于BFD MAD检测的所有端口(包括Twenty-FiveGigE1/0/1、Twenty-FiveGigE2/0/1、Twenty-FiveGigE3/0/1和Twenty-FiveGigE4/0/1)加入VLAN中。

<IRF> system-view

[IRF] vlan 1000

[IRF-vlan1000] port twenty-fivegige 1/0/1 twenty-fivegige 2/0/1 twenty-fivegige 3/0/1 twenty-fivegige 4/0/1

[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 twenty-fivegige 1/0/1

[IRF-Twenty-FiveGigE-1/0/1] undo stp enable

[IRF-Twenty-FiveGigE-1/0/1] quit

[IRF] interface twenty-fivegige 2/0/1

[IRF-Twenty-FiveGigE-2/0/1] undo stp enable

[IRF-Twenty-FiveGigE-2/0/1] quit

[IRF] interface twenty-fivegige 3/0/1

[IRF-Twenty-FiveGigE-3/0/1] undo stp enable

[IRF-Twenty-FiveGigE-3/0/1] quit

[IRF] interface twenty-fivegige 4/0/1

[IRF-Twenty-FiveGigE-4/0/1] undo stp enable

[IRF-Twenty-FiveGigE-4/0/1] quit

(2)       中间设备上的配置

# 创建VLAN 1000,并将用于BFD MAD检测的所有端口(包括Twenty-FiveGigE1/0/1、Twenty-FiveGigE1/0/2、Twenty-FiveGigE1/0/3和Twenty-FiveGigE1/0/4)加入VLAN中。

<Sysname> system-view

[Sysname] vlan 1000

[Sysname-vlan1000] port twenty-fivegige 1/0/1 twenty-fivegige 1/0/2 twenty-fivegige 1/0/3 twenty-fivegige 1/0/4

[Sysname-vlan3] quit

5.5  网络基础连通性配置

说明

本例中以部门B和部门C为例介绍网络基础连通性配置,其它部门可参照此方式进行配置。

 

5.5.1  配置思路

·            本例中IRF工作在三层环境下,因此网络基础连通性配置包括与上下行设备的链路连接配置以及路由协议配置。

·            在完成IRF的搭建后,对于下行设备,可以将上行链路连接到IRF的多台成员设备上形成聚合组;而IRF也可以将自己的上行聚合链路的成员端口分布到不同的成员设备上,以提高网络的整体可靠性。

·            IRF作为网关设备,需要将连接接入层设备和核心层设备的链路加入不同的VLAN,并配置VLAN接口及IP地址,最终通过OSPF实现路由信息的收集。

5.5.2  组网图

在本例中,核心层两台设备分别具有连接到外网的线路,IRF与上下行设备的连接和接口IP规划如图12所示。

说明

由于IRF在网络拓扑中相当于一台独立设备,因此在组网示意图中,使用单台设备表示IRF。

 

图12 网络基础连接示意图

设备

聚合接口

成员端口

所属VLAN

接口IP地址

RouterA

Agg40

Twenty-FiveGigE1/0/1

Twenty-FiveGigE1/0/2

Twenty-FiveGigE1/0/3

Twenty-FiveGigE1/0/4

VLAN40

10.214.50.2/30

Agg42

Twenty-FiveGigE1/0/5

Twenty-FiveGigE1/0/6

VLAN42

10.214.50.9/30

RouterB

Agg41

Twenty-FiveGigE1/0/1

Twenty-FiveGigE1/0/2

Twenty-FiveGigE1/0/3

Twenty-FiveGigE1/0/4

VLAN41

10.214.50.6/30

Agg42

Twenty-FiveGigE1/0/5

Twenty-FiveGigE1/0/6

VLAN42

10.214.50.10/30

IRF

Agg10

Twenty-FiveGigE1/0/10

Twenty-FiveGigE2/0/10

Twenty-FiveGigE3/0/10

Twenty-FiveGigE4/0/10

VLAN10

10.214.10.1/24

Agg20

Twenty-FiveGigE1/0/11

Twenty-FiveGigE2/0/11

Twenty-FiveGigE3/0/11

Twenty-FiveGigE4/0/11

VLAN20

10.214.20.1/24

Agg40

Twenty-FiveGigE1/0/13

Twenty-FiveGigE2/0/13

Twenty-FiveGigE3/0/13

Twenty-FiveGigE4/0/13

VLAN40

10.214.50.1/30

Agg41

Twenty-FiveGigE1/0/14

Twenty-FiveGigE2/0/14

Twenty-FiveGigE3/0/14

Twenty-FiveGigE4/0/14

VLAN41

10.214.50.5/30

DeviceE

Agg10

Twenty-FiveGigE1/0/49

Twenty-FiveGigE1/0/50

Twenty-FiveGigE1/0/51

Twenty-FiveGigE1/0/52

VLAN10

-

DeviceF

Agg20

Twenty-FiveGigE1/0/49

Twenty-FiveGigE1/0/50

Twenty-FiveGigE1/0/51

Twenty-FiveGigE1/0/52

VLAN20

 

-

 

5.5.3  配置步骤

说明

·         为提高链路聚合的灵活性,本例中均以动态聚合链路为例进行介绍。

·         核心层设备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

# 在聚合接口中添加成员端口Twenty-FiveGigE1/0/1、Twenty-FiveGigE1/0/2、Twenty-FiveGigE1/0/3和Twenty-FiveGigE1/0/4。

[RouterA] interface twenty-fivegige 1/0/1

[RouterA-Twenty-FiveGigE1/0/1] port link-aggregation group 40

[RouterA-Twenty-FiveGigE1/0/1] quit

[RouterA] interface twenty-fivegige 1/0/2

[RouterA-Twenty-FiveGigE1/0/2] port link-aggregation group 40

[RouterA-Twenty-FiveGigE1/0/2] quit

[RouterA] interface twenty-fivegige 1/0/3

[RouterA-Twenty-FiveGigE1/0/3] port link-aggregation group 40

[RouterA-Twenty-FiveGigE1/0/3] quit

[RouterA] interface twenty-fivegige 1/0/4

[RouterA-Twenty-FiveGigE1/0/4] port link-aggregation group 40

[RouterA-Twenty-FiveGigE1/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

# 在聚合接口中添加成员端口Twenty-FiveGigE1/0/5、Twenty-FiveGigE1/0/6。

[RouterA] interface twenty-fivegige 1/0/5

[RouterA-Twenty-FiveGigE1/0/5] port link-aggregation group 42

[RouterA-Twenty-FiveGigE1/0/5] quit

[RouterA] interface twenty-fivegige 1/0/6

[RouterA-Twenty-FiveGigE1/0/6] port link-aggregation group 42

[RouterA-Twenty-FiveGigE1/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

# 在聚合接口中添加成员端口Twenty-FiveGigE1/0/1、Twenty-FiveGigE1/0/2、Twenty-FiveGigE1/0/3和Twenty-FiveGigE1/0/4。

[RouterB] interface twenty-fivegige 1/0/1

[RouterB-Twenty-FiveGigE1/0/1] port link-aggregation group 41

[RouterB-Twenty-FiveGigE1/0/1] quit

[RouterB] interface twenty-fivegige 1/0/2

[RouterB-Twenty-FiveGigE1/0/2] port link-aggregation group 41

[RouterB-Twenty-FiveGigE1/0/2] quit

[RouterB] interface twenty-fivegige 1/0/3

[RouterB-Twenty-FiveGigE1/0/3] port link-aggregation group 41

[RouterB-Twenty-FiveGigE1/0/3] quit

[RouterB] interface twenty-fivegige 1/0/4

[RouterB-Twenty-FiveGigE1/0/4] port link-aggregation group 41

[RouterB-Twenty-FiveGigE1/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

# 在聚合接口中添加成员端口Twenty-FiveGigE1/0/5、Twenty-FiveGigE1/0/6。

[RouterB] interface twenty-fivegige 1/0/5

[RouterB-Twenty-FiveGigE1/0/5] port link-aggregation group 42

[RouterB-Twenty-FiveGigE1/0/5] quit

[RouterB] interface twenty-fivegige 1/0/6

[RouterB-Twenty-FiveGigE1/0/6] port link-aggregation group 42

[RouterB-Twenty-FiveGigE1/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

# 在聚合接口中添加成员端口,包括Twenty-FiveGigE1/0/10、Twenty-FiveGigE2/0/10、Twenty-FiveGigE3/0/10、Twenty-FiveGigE4/0/10。

[IRF] interface twenty-fivegige 1/0/10

[IRF-Twenty-FiveGigE1/0/10] port link-aggregation group 10

[IRF-Twenty-FiveGigE1/0/10] quit

[IRF] interface twenty-fivegige 2/0/10

[IRF-Twenty-FiveGigE2/0/10] port link-aggregation group 10

[IRF-Twenty-FiveGigE2/0/10] quit

[IRF] interface twenty-fivegige 3/0/10

[IRF-Twenty-FiveGigE3/0/10] port link-aggregation group 10

[IRF-Twenty-FiveGigE3/0/10] quit

[IRF] interface twenty-fivegige 4/0/10

[IRF-Twenty-FiveGigE4/0/10] port link-aggregation group 10

[IRF-Twenty-FiveGigE4/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

# 将当前配置保存到下次启动配置文件。

[IRF] save

(4)       配置DeviceE

# 创建一个动态聚合接口10。

[DeviceE] interface bridge-aggregation 10

[DeviceE-Bridge-Aggregation10] link-aggregation mode dynamic

[DeviceE-Bridge-Aggregation10] quit

# 在聚合接口中添加成员端口Twenty-FiveGigE1/0/49、Twenty-FiveGigE1/0/50、Twenty-FiveGigE1/0/51和Twenty-FiveGigE1/0/52。

[DeviceE] interface twenty-fivegige 1/0/49

[DeviceE-Twenty-FiveGigE1/0/49] port link-aggregation group 10

[DeviceE-Twenty-FiveGigE1/0/49] quit

[DeviceE] interface twenty-fivegige 1/0/50

[DeviceE-Twenty-FiveGigE1/0/50] port link-aggregation group 10

[DeviceE-Twenty-FiveGigE1/0/50] quit

[DeviceE] interface twenty-fivegige 1/0/51

[DeviceE-Twenty-FiveGigE1/0/51] port link-aggregation group 10

[DeviceE-Twenty-FiveGigE1/0/51] quit

[DeviceE] interface twenty-fivegige 1/0/52

[DeviceE-Twenty-FiveGigE1/0/52] port link-aggregation group 10

[DeviceE-Twenty-FiveGigE1/0/52] quit

# DeviceF的配置与DeviceE相似,请按照图12下方表格中的内容创建聚合接口并向聚合组中加入相应的端口,配置过程此处省略。

5.6  验证配置

5.6.1  验证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              : 12 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实际拓扑形态符合组网需求。

5.6.2  验证路由协议配置状态

在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已经学习到核心路由器对外网接口的路由信息。

5.6.3  验证链路聚合的备份功能

# 从服务器群中任意挑选一台Server,以RouterA的10.214.50.2地址为目标进行ping操作。

C:\Users>ping 10.214.50.2 –t

# 将IRF连接RouterA的聚合组40中Twenty-FiveGigE1/0/13端口shutdown。

[IRF] interface twenty-fivegige 1/0/13

[IRF-Twenty-FiveGigE1/0/13] shutdown

[IRF-Twenty-FiveGigE1/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

5.6.4  验证IRF环形拓扑的容错功能

断开任意两台成员设备之间的两条IRF物理链路,IRF仍能正常工作,没有分裂。

5.6.5  验证BFD MAD检测功能

由于本例中的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: HundredGigE1/0/27 link status is down.                                                               

%Jan  1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE1/0/28 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: HundredGigE2/0/25 link status is down.                                                               

%Jan  1 05:19:10:184 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE2/0/26 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                                                                  

Multi-active recovery state: Yes                                                   

Excluded ports(user-configured):                                                  

Excluded ports(system-configured):                                         

  IRF physical interfaces:

    HundredGigE3/0/25                                                    

    HundredGigE3/0/26                                                    

    HundredGigE3/0/27                                                     

    HundredGigE3/0/28                                                    

    HundredGigE4/0/25                                                    

    HundredGigE4/0/26                                                    

    HundredGigE4/0/27                                                    

    HundredGigE4/0/28                                                    

  BFD MAD interfaces:

    Twenty-FiveGigE3/0/1

    Twenty-FiveGigE4/0/1

    Vlan-interface1000

MAD ARP disabled.                                                              

MAD ND disabled.                                                               

MAD LACP disabled.

MAD BFD enabled interface: Vlan-interface1000                                                           

  MAD status                 : Normal

  Member ID   MAD IP address       Neighbor    MAD status

  3           192.168.2.3/24       4           Normal

  4           192.168.2.4/24       3           Normal

# 此时需要您修复IRF链路,在其中一条IRF物理链路修复后,IRF1上会提示出现IRF合并现象,IRF2此时将自动重启。

%Jan  1 00:52:25:555 2019 H3C IFNET/3/PHY_UPDOWN: HundredGigE1/0/28 link status is up.                                                             

%Jan  1 00:52:25:555 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE1/0/28 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: HundredGigE1/0/28 link status is down.                                                               

%Jan  1 00:52:30:836 2019 H3C IFNET/5/LINK_UPDOWN: Line protocol on the interface HundredGigE1/0/28 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已经恢复。

5.7  配置文件

·            IRF的配置文件:

#

vlan 10

#

vlan 20

#

vlan 40

#

vlan 41

#

vlan 1000

#

irf-port 1/1

 port group interface HundredGigE1/0/25

 port group interface HundredGigE1/0/26

#

irf-port 1/2

 port group interface HundredGigE1/0/27

 port group interface HundredGigE1/0/28

#

irf-port 2/1

 port group interface HundredGigE2/0/25

 port group interface HundredGigE2/0/26

#

irf-port 2/2

 port group interface HundredGigE2/0/27

 port group interface HundredGigE2/0/28

#

irf-port 3/1

 port group interface HundredGigE3/0/25

 port group interface HundredGigE3/0/26

#

irf-port 3/2

 port group interface HundredGigE3/0/27

 port group interface HundredGigE3/0/28

#

irf-port 4/1

 port group interface HundredGigE4/0/25

 port group interface HundredGigE4/0/26

#

irf-port 4/2

 port group interface HundredGigE4/0/27

 port group interface HundredGigE4/0/28

#

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 Twenty-FiveGigE1/0/1

 port link-mode bridge

 undo stp enable

 port access vlan 1000

#

interface Twenty-FiveGigE1/0/10

 port link-mode bridge

 port access vlan 10

 port link-aggregation group 10

#

interface Twenty-FiveGigE1/0/11

 port link-mode bridge

 port access vlan 20

 port link-aggregation group 20

#

interface Twenty-FiveGigE1/0/13

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE1/0/14

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE2/0/1

 port link-mode bridge

 undo stp enable

 port access vlan 1000

#

interface Twenty-FiveGigE2/0/10

 port link-mode bridge

 port access vlan 10

 port link-aggregation group 10

#

interface Twenty-FiveGigE2/0/11

 port link-mode bridge

 port access vlan 20

 port link-aggregation group 20

#

interface Twenty-FiveGigE2/0/13

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE2/0/14

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE3/0/1

 port link-mode bridge

 undo stp enable

 port access vlan 1000

#

interface Twenty-FiveGigE3/0/10

 port link-mode bridge

 port access vlan 10

 port link-aggregation group 10

#

interface Twenty-FiveGigE3/0/11

 port link-mode bridge

 port access vlan 20

 port link-aggregation group 20

#

interface Twenty-FiveGigE3/0/13

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE3/0/14

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE4/0/1

 port link-mode bridge

 undo stp enable

 port access vlan 1000

#

interface Twenty-FiveGigE4/0/10

 port link-mode bridge

 port access vlan 10

 port link-aggregation group 10

#

interface Twenty-FiveGigE4/0/11

 port link-mode bridge

 port access vlan 20

 port link-aggregation group 20

#

interface Twenty-FiveGigE4/0/13

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE4/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 Twenty-FiveGigE1/0/1

 port link-mode bridge

 port access vlan 1000

#

interface Twenty-FiveGigE1/0/2

 port link-mode bridge

 port access vlan 1000

#

interface Twenty-FiveGigE1/0/3

 port link-mode bridge

 port access vlan 1000

#

interface Twenty-FiveGigE1/0/4

 port link-mode bridge

 port access vlan 1000

#

interface Twenty-FiveGigE1/0/49

 port link-mode bridge

 port link-aggregation group 10

#

interface Twenty-FiveGigE1/0/50

 port link-mode bridge

 port link-aggregation group 10

#

interface Twenty-FiveGigE1/0/51

 port link-mode bridge

 port link-aggregation group 10

#

interface Twenty-FiveGigE1/0/52

 port link-mode bridge

 port link-aggregation group 10

·            Device F的配置文件:

#

interface Bridge-Aggregation20

 link-aggregation mode dynamic

#

interface Twenty-FiveGigE1/0/49

 port link-mode bridge

 port link-aggregation group 20

#

interface Twenty-FiveGigE1/0/50

 port link-mode bridge

 port link-aggregation group 20

#

interface Twenty-FiveGigE1/0/51

 port link-mode bridge

 port link-aggregation group 20

#

interface Twenty-FiveGigE1/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 Twenty-FiveGigE1/0/1

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE1/0/2

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE1/0/3

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE1/0/4

 port link-mode bridge

 port access vlan 40

 port link-aggregation group 40

#

interface Twenty-FiveGigE1/0/5

 port link-mode bridge

 port access vlan 42

 port link-aggregation group 42

#

interface Twenty-FiveGigE1/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 Twenty-FiveGigE1/0/1

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE1/0/2

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE1/0/3

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE1/0/4

 port link-mode bridge

 port access vlan 41

 port link-aggregation group 41

#

interface Twenty-FiveGigE1/0/5

 port link-mode bridge

 port access vlan 42

 port link-aggregation group 42

#

interface Twenty-FiveGigE1/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

6  管理用以太网口配置ARP MAD典型配置举例(管理功能和MAD功能配置在同一接口)

6.1  简介

本章介绍使用管理用以太网口配置ARP MAD,同时不影响网络管理功能使用的配置举例。并且,IRF分裂后,用户可以分别登录到分裂出的IRF上以便进行故障修复。

本举例也适用于ND MAD。仅MAD部分采用相应的配置方法即可。MAD的详细配置方法请参考配置指导。

6.2  管理用以太网口配置ARP MAD典型配置举例

6.2.1  适用产品和版本

表3 适用产品及版本

产品

软件版本

S6850系列

S9850系列

Release 6555P01

S9820-64H

Release 6555P01

 

6.2.2  组网需求

图14所示,Device A和Device B组成IRF。现要求:

·            使用管理用以太网口M-GigabitEthernet0/0/0配置ARP MAD进行分裂检测,同时不影响网络管理功能的使用;

·            IRF主备倒换后,管理员登录用的IP地址不能变化;

·            IRF分裂后,允许管理员分别登录到分裂出的成员设备上以进行故障恢复。

图14 管理用以太网口配置ARP MAD典型配置举例

 

6.2.3  配置思路

主设备管理用以太网接口需要进行如下IP地址配置:

·            使用ip address ip-address { mask-length | mask }命令配置IRF的管理用IP地址。IRF未分裂时请通过此地址登录IRF。IRF发生主备倒换时不影响管理员通过此地址登录IRF。

·            使用ip address ip-address { mask-length | mask } irf-member member-id命令分别配置各成员设备的IP地址。IRF分裂后,管理员可以通过成员设备的IP地址分别登录到分裂出的成员设备上以进行故障恢复

6.2.4  配置注意事项

配置IRF成员设备的IP地址时请注意:

·            同一个管理用以太网接口下配置的所有IRF成员设备的管理用以太网接口地址必须处于同一网段,不同的管理用以太网接口下配置的IRF成员设备的管理用以太网接口地址不能在同一网段。

·            当IRF正常工作时,只有主设备的管理用以太网接口地址生效,从设备的管理用以太网接口地址不生效。如果从设备管理用以太网接口地址与网络中其他设备地址冲突,并不会打印冲突信息,所以需要用户保证配置的管理用以太网接口地址不会冲突。

IRF分裂后,由于分裂出的IRF的管理用以太网接口上均存在ip address ip-address { mask-length | mask }令配置的IP地址,设备会上报地址冲突,但不影响管理员使用ip address ip-address { mask-length | mask } irf-member member-id命令配置的IP地址分别登录分裂出的IRF设备。

配置ARP MAD时请注意,如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。

6.2.5  配置步骤

1. 配置IRF

(1)       配置Device A

# 将用作IRF物理端口的HundredGigE1/0/25~HundredGigE1/0/26的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceA> system-view

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/26

[DeviceA-if-range] shutdown

[DeviceA-if-range] quit

# 创建IRF端口1,与端口HundredGigE1/025和HundredGigE1/0/26绑定。

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/25

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/26

[DeviceA-irf-port1/2] quit

# 开启HundredGigE1/0/25~HundredGigE1/0/26端口。

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/26

[DeviceA-if-range] undo shutdown

[DeviceA-if-range] quit

# 将当前配置保存到下次启动配置文件。

[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物理端口的HundredGigE2/0/25~HundredGigE2/0/26的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceB> system-view

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/26

[DeviceB-if-range] shutdown

[DeviceB-if-range] quit

# 创建IRF端口1,与端口HundredGigE2/0/25和HundredGigE2/0/26绑定。

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/25

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/26

[DeviceB-irf-port2/1] quit

# 开启HundredGigE2/0/25~HundredGigE2/0/26端口。

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/26

[DeviceB-if-range] undo shutdown

[DeviceB-if-range] quit

# 将当前配置保存到下次启动配置文件。

[DeviceB] quit

<DeviceB> save

# 参照6.2.2  图14连接DeviceB和DeviceA。

# 激活IRF端口的配置。

<DeviceB> system-view

[DeviceB] irf-port-configuration active

# 系统会提示发生IRF合并,竞选失败的设备重启后两台设备形成一个IRF。

2. 配置管理IP

# 在M-GigabitEthernet0/0/0接口上,配置IRF正常工作时,管理员登录IRF使用的IP地址192.168.1.1。

<IRF> system-view

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

[IRF-M-GigabitEthernet0/0/0] ip address 192.168.1.1 24

# 在M-GigabitEthernet0/0/0接口上,分别配置IRF成员设备1和成员设备2的IP地址为192.168.101.1/24和192.168.1.102/24。如果IRF分裂,管理员可以使用192.168.1.101和192.168.1.102分别登录到成员设备1和成员设备2上。

[IRF-M-GigabitEthernet0/0/0] ip address 192.168.1.101 24 irf-member 1

[IRF-M-GigabitEthernet0/0/0] ip address 192.168.1.102 24 irf-member 2

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

# 配置M-GigabitEthernet0/0/0为MAD保留接口,以使IRF分裂后M-GigabitEthernet0/0/0不会被MAD功能关闭。

[IRF] mad exclude interface m-gigabitethernet 0/0/0

3. 配置ARP MAD

(1)       配置IRF

# IRF的桥MAC保留时间配置为立即改变。

[IRF] undo irf mac-address persistent

# 配置IRF域编号为1。

[IRF] irf domain 1

# 开启管理用以太网接口M-GigabitEthernet0/0/0的ARP MAD检测功能。

[IRF-M-GigabitEthernet0/0/0] mad arp enable

You need to assign a domain ID (range: 0-4294967295)

[Current domain ID is: 1]:

The assigned domain ID is: 1

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

# 将当前配置保存到下次启动配置文件。

[IRF] save

(2)       配置中间设备Device C

# 创建VLAN 100,并将端口GigabitEthernet1/0/1~GigabitEthernet1/0/2加入VLAN 100中,用于转发ARP MAD报文。

[DeviceC] vlan 100

[DeviceC-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4

[DeviceC-vlan100] quit

6.2.6  验证配置

(1)       断开Device A和Device B之间的IRF物理链路后,可以分别使用192.168.1.1和192.168.1.2登录到Device A和Device B上。

(2)       在Device A和Device B上分别执行display mad verbose命令,可以看到一台设备Multi-active recovery state为Yes,使用display interface brief命令可以看到这台设备所有的端口处于down状态(除了IRF物理端口和管理用以太网接口M-GigabitEthernet0/0/0)。另一台设备Multi-active recovery state为No,正常工作。

6.2.7  配置文件

·            IRF的配置文件:

#

irf-port 1/2

 port group interface HundredGigE1/0/25

 port group interface HundredGigE1/0/26

#

irf-port 2/1

 port group interface HundredGigE2/0/25

 port group interface HundredGigE2/0/26

#

 irf domain 1

 undo irf mac-address persistent

#

interface M-GigabitEthernet0/0/0

 ip address 192.168.1.1 255.255.255.0

 ip address 192.168.1.101 255.255.255.0 irf-member 1

 ip address 192.168.1.102 255.255.255.0 irf-member 2

 mad arp enable

#

 mad exclude interface M-GigabitEthernet0/0/0

#

·            Device C的配置文件:

#

 vlan 100

#

GigabitEthernet 1/0/1

 port access vlan 100

#

Gigabitethernet 1/0/2

 port access vlan 100

#

7  管理用以太网口配置BFD MAD典型配置举例(管理功能和MAD功能配置在不同接口)

7.1  简介

本章介绍双管理用以太网接口设备,一个管理用以太网口配置BFD MAD,另一个管理用以太网口承担网络管理功能的配置举例。并且,IRF分裂后,用户可以分别登录到分裂出的IRF上以便进行故障修复。

本举例也适用于ARP MAD和ND MAD。仅MAD部分采用相应的配置方法即可。MAD的详细配置方法请参考配置指导。

7.2  管理用以太网口配置BFD MAD典型配置举例

7.2.1  适用产品和版本

表4 适用产品及版本

产品

软件版本

S6850系列

S9850系列

Release 6555P01

S9820-64H

Release 6555P01

 

7.2.2  组网需求

6.2.2  图14所示,Device A和Device B组成IRF。现要求:

·            使用管理用以太网口M-GigabitEthernet0/0/0接入管理网络;

·            使用管理用以太网口M-GigabitEthernet0/0/1配置BFD MAD进行分裂检测;

·            IRF主备倒换后,管理员登录用的IP地址不能变化;

·            IRF分裂后,允许管理员分别登录到分裂出的成员设备上以进行故障恢复。

图15 管理用以太网口配置BFD MAD典型配置举例

 

7.2.3  配置思路

主设备管理用以太网接口M-GigabitEthernet0/0/0需要进行如下IP地址配置:

·            使用ip address ip-address { mask-length | mask }命令配置IRF的管理用IP地址。IRF未分裂时请通过此地址登录IRF。IRF发生主备倒换时不影响管理员通过此地址登录IRF。

·            使用ip address ip-address { mask-length | mask } irf-member member-id命令分别配置各成员设备的IP地址。IRF分裂后,管理员可以通过成员设备的IP地址分别登录到分裂出的成员设备上以进行故障恢复

7.2.4  配置注意事项

配置IRF成员设备的IP地址时请注意:

·            同一个管理用以太网接口下配置的所有IRF成员设备的管理用以太网接口地址必须处于同一网段,不同的管理用以太网接口下配置的IRF成员设备的管理用以太网接口地址不能在同一网段。

·            当IRF正常工作时,只有主设备的管理用以太网接口地址生效,从设备的管理用以太网接口地址不生效。如果从设备管理用以太网接口地址与网络中其他设备地址冲突,并不会打印冲突信息,所以需要用户保证配置的管理用以太网接口地址不会冲突。

IRF分裂后,由于分裂出的IRF的管理用以太网接口上均存在ip address ip-address { mask-length | mask }令配置的IP地址,设备会上报地址冲突,但不影响管理员使用ip address ip-address { mask-length | mask } irf-member member-id命令配置的IP地址分别登录分裂出的IRF设备。

配置BFD MAD时请注意,

·            请确保中间设备上BFD MAD检测VLAN中仅包含用于BFD MAD检测的端口。

·            在用于BFD MAD检测的接口下必须使用mad ip address命令配置MAD IP地址,而不要配置其它IP地址(包括使用ip address命令配置的普通IP地址、VRRP虚拟IP地址等),以免影响MAD检测功能。请为不同成员设备配置同一网段内的不同MAD IP地址。

7.2.5  配置步骤

1. 配置IRF

(1)       配置Device A

# 将用作IRF物理端口的HundredGigE1/0/25~HundredGigE1/0/26的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceA> system-view

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/26

[DeviceA-if-range] shutdown

[DeviceA-if-range] quit

# 创建IRF端口1,与端口HundredGigE1/025和HundredGigE1/0/26绑定。

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/25

[DeviceA-irf-port1/2] port group interface hundredgige 1/0/26

[DeviceA-irf-port1/2] quit

# 开启HundredGigE1/0/25~HundredGigE1/0/26端口。

[DeviceA] interface range hundredgige 1/0/25 to hundredgige 1/0/26

[DeviceA-if-range] undo shutdown

[DeviceA-if-range] quit

# 将当前配置保存到下次启动配置文件。

[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物理端口的HundredGigE2/0/25~HundredGigE2/0/26的手工关闭。使用端口批量配置功能可以更快速的完成配置。

<DeviceB> system-view

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/26

[DeviceB-if-range] shutdown

[DeviceB-if-range] quit

# 创建IRF端口1,与端口HundredGigE2/0/25和HundredGigE2/0/26绑定。

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/25

[DeviceB-irf-port2/1] port group interface hundredgige 2/0/26

[DeviceB-irf-port2/1] quit

# 开启HundredGigE2/0/25~HundredGigE2/0/26端口。

[DeviceB] interface range hundredgige 2/0/25 to hundredgige 2/0/26

[DeviceB-if-range] undo shutdown

[DeviceB-if-range] quit

# 将当前配置保存到下次启动配置文件。

[DeviceB] quit

<DeviceB> save

# 参照6.2.2  图14连接DeviceB和DeviceA。

# 激活IRF端口的配置。

<DeviceB> system-view

[DeviceB] irf-port-configuration active

# 系统会提示发生IRF合并,竞选失败的设备重启后两台设备形成一个IRF。

2. 配置管理IP

# 在M-GigabitEthernet0/0/0接口上,配置IRF正常工作时,管理员登录IRF使用的IP地址192.168.1.1。

<IRF> system-view

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

[IRF-M-GigabitEthernet0/0/0] ip address 192.168.1.1 24

# 在M-GigabitEthernet0/0/0接口上,分别配置IRF成员设备1和成员设备2的IP地址为192.168.1.101/24和192.168.1.102/24。如果IRF分裂,管理员可以使用192.168.1.101和192.168.1.102分别登录到成员设备1和成员设备2上。

[IRF-M-GigabitEthernet0/0/0] ip address 192.168.1.101 24 irf-member 1

[IRF-M-GigabitEthernet0/0/0] ip address 192.168.1.102 24 irf-member 2

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

# 配置IRF成员设备的管理用以太网接口M-GigabitEthernet0/0/0为MAD保留接口,以使IRF分裂后M-GigabitEthernet0/0/0不会被MAD功能关闭。

[IRF] mad exclude interface m-gigabitethernet 0/0/0

3. 配置BFD MAD

(1)       配置IRF

# 配置管理用以太网接口M-GigabitEthernet0/0/1的MAD IP地址。

[IRF] interface m-gigabitethernet 0/0/1

[IRF-M-GigabitEthernet0/0/1] mad ip address 192.168.2.1 24 member 1

[IRF-M-GigabitEthernet0/0/1] mad ip address 192.168.2.2 24 member 2

[IRF-M-GigabitEthernet0/0/1] quit

# 开启管理用以太网接口M-GigabitEthernet0/0/1的BFD MAD检测功能。

[IRF-M-GigabitEthernet0/0/1] mad bfd enable

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

# 将当前配置保存到下次启动配置文件。

[IRF] save

(2)       配置中间设备Device C

# 创建VLAN 100,并将端口GigabitEthernet1/0/1~GigabitEthernet1/0/2加入VLAN 100中,用于转发BFD MAD报文。

[DeviceC] vlan 100

[DeviceC-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4

[DeviceC-vlan100] quit

7.2.6  验证配置

(1)       断开Device A和Device B之间的IRF物理链路后,可以分别使用192.168.1.1和192.168.1.2登录到Device A和Device B上。

(2)       在Device A和Device B上分别执行display mad verbose命令,可以看到一台设备Multi-active recovery state为Yes,使用display interface brief命令可以看到这台设备所有的端口处于down状态(除了IRF物理端口和管理用以太网接口M-GigabitEthernet0/0/0、M-GigabitEthernet0/0/1)。另一台设备Multi-active recovery state为No,正常工作。

7.2.7  配置文件

·            IRF的配置文件:

#

irf-port 1/2

 port group interface HundredGigE1/0/25

 port group interface HundredGigE1/0/26

#

irf-port 2/1

 port group interface HundredGigE2/0/25

 port group interface HundredGigE2/0/26

#

interface M-GigabitEthernet0/0/0

 ip address 192.168.1.1 255.255.255.0

 ip address 192.168.1.101 255.255.255.0 irf-member 1

 ip address 192.168.1.102 255.255.255.0 irf-member 2

#

interface M-GigabitEthernet0/0/1

 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 exclude interface M-GigabitEthernet0/0/0

#

·            Device C的配置文件:

#

 vlan 100

#

GigabitEthernet 1/0/1

 port access vlan 100

#

Gigabitethernet 1/0/2

 port access vlan 100

#

8  相关资料

·            H3C S6850 & S9850系列以太网交换机 虚拟化技术配置指导-Release 655x系列

·            H3C S6850 & S9850系列以太网交换机 虚拟化技术命令参考-Release 655x系列

·            H3C S9820-64H交换机 虚拟化技术配置指导-Release 655x系列

·            H3C S9820-64H交换机 虚拟化技术命令参考-Release 655x系列

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

新华三官网
联系我们