案例实施

1、IRF配置思路和步骤

鉴于第二代只能弹性架构IRF技术具有管理简便,网络扩展能力强,可靠性高等技术优点,所以本案例使用IRF技术构建接入层(即在device Adevice B上配置IRF功能)。

用户配置IRF前,要做好前期规划工作,需要明确IRF内个成员设备的角色和功能。因为有些参数配置需要重启设备才能生效,所以建议用户按照下面的流程进行配置(采用非预配置的方式配置IRF


用户也可以在激活IRF端口后再进行IRF物理连接,当设备检测到IRF端口正常连接后,将立刻开始角色选举,选举为slave的设备将自动进行重启(采用预配置方式配置IRF

。在IRF形成后,用户通过IRF中的任意一台设备进行登录,均可以对IRF系统进行配置和管理。

1)配置设备编号。Device A保留默认编号为1,不需要进行配置。

deviceB上将设备的成员编号修改为2

system-view

[deviceB] irf member 1 renumber 2

 

2)将两台设备断电后,按照拓扑图的连接IRF链路,然后将两台设备上电,修改device AIRF优先级为5,目的是让其在竞选时获胜。

system-view

[deviceA] irf member 1 priority 5

//deviceA上创建设备的IRF端口2,与物理端口ten-gigabitethernet1/0/52绑定,并保存配置。

system-view

[deviceA] interface ten-gigabitethernet 1/0/52

[deviceA-Ten-gigabitethernet1/0/52] shutdown

[deviceA-Ten-gigabitethernet1/0/52] quit

[deviceA] IRF-port 1/2

[deviceA-irf-port1/2]port group interface ten-gigabitethernet 1/0/52

[deviceA-irf-port1/2]quit

[deviceA] interface ten-gigabitethernet 1/0/52

[deviceA-Ten-gigabitethernet1/0/52] undo shutdown

[deviceA-Ten-gigabitethernet1/0/52]dave

 

deviceB上创建设备的IRF端口1,与物理端口ten-gigabitEthernet2/0/52绑定,并保存配置。

system-view

[deviceB] interface ten-gigabitethernet 2/0/52

Shutdown

Quit

[deviceB] irf-port 2/1

Port group interface ten-gigabitethernet 2/0/52

Quit

[deviceB] interface ten-gigabitethernet 2/0/52

Undo shutdown

Save

 

激活deviceAIRF端口配置

[deviceA-ten-gigabitethernet1/0/52] quit

[deviceA ] irf-port-configuration active

 

激活deviceBIRF端口配置

[deviceB-ten-gigabitethernet2/0/52] quit

[deviceB ] irf-port-configuration active

 

 

3)两台设备间会进行master竞选,竞选失败的一方将自动重启,重启完成后,IRF形成,系统名称统一为device A

 

 

2、LACP MAD配置思路和步骤

    为了防止万一IRF链路故障导致IRF分裂,网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为接入层设备为S5120,所以我们采用LACP MAD检测。

    本案例中使用的设备仅支持LACP MAD检测和ARP MAD检测,中高端交换机都支持BFD MAD检测,在实际项目中建议采用BFD MAD检测,原因是不需要使用中间设备来进行连接检测且检测速度更快。

 

1)LACP MAD检测的配置思路

配置IRF域编号。

创建聚合接口(中间设备上也需要进行该项配置)。

将聚合接口的工作模式配置为动态聚合模式(中间设备上也需要进行该项配置)。

在动态聚合接口下使能LACP MAD检测功能。

给聚合组添加成员端口(中间设备上也需要进行该项配置)。

 

2)LACP MAD检测

创建一个动态聚合端口,并使能LACP MAD检测功能,由于并不是在两个IRF之间配置LACP MAD检测,因此在系统提示输入IRFID时,可以保持为默认值0

system-view

[deviceA] interface bridge-aggregation 2

[deviceA-bridge-aggregation2] link-aggregation mode dynamic

[deviceA-bridge-aggregation2] mad enable

You need to assign a domain ID range: 0-42....

[current domain is: 0]:

The assigned domain ID is: 0

Info: MAD LACP only enable on dynamic aggregation interface.

[deviceA-Bridge-aggregation2] quit

 

在聚合端口中添加成员端口gigabitethernet1/0/1gigabitethernet2/0/1,专用于两台IRF成员设备与中间设备进行LACP MAD检测。

[deviceA] interface gigabitethernet 1/0/1

[deviceA-gigabitethernet1/0/1] port link-aggregation group 2

[deviceA-gigabitethernet1/0/1]quit

[deviceA]interface gigabitethernet 2/0/1

[deviceA-gigabitethernet2/0/1] port link-aggregation group 2

中间设备device C的配置。Device C作为一台中间设备需要支持LACP功能,用来转发、处理LACP协议报文,协助device Adevice B进行多active检测。从节约称成本的角度考虑,使用一台支持LACP功能的交换机即可。

创建一个动态聚合端口

system-view

[deviceC] interface bridge-aggregation 2

[deviceC-bridge-aggregation2] link-aggregation mode dynamic

[deviceC-bridge-aggregation2] quit

 

在聚合端口中添加成员端口gigabitethernet1/0/1gigabitethernet1/0/2,用于进行LACP MAD检测。

[deviceC] interface gigabitethernet 1/0/1

[deviceC-gigabitethernet1/0/1] port link-aggregation group 2

[deviceC-gigabitethernet1/0/1] quit

[deviceC] internet gigabitethernet1/0/2

[deviceC-gigabitethernet1/0/2] port link-aggregation group 2

 

3、IRFMAD配置的显示和维护

1)IRF的显示和维护

执行display命令可以显示配置后IRF的运行情况,通过查看显示信息验证配置的效果。

显示IRF中所有成员设备的相关信息:display irf

查看IRF的拓扑信息:display irf topology

显示IRF中所有设备的配置信息:display irf configuration

显示IRF链路的负载分担模式:display irf-port load-sharing mode

显示IRF设备的主备倒换状态:display switchover state

显示MAD配置信息:display mad