H3C V7 IRF堆叠配置
IRF是华三的堆叠技术,全称为Intelligent Resilient Framework),可以将多台设备通过IRF物理端口连接在一起,进行配置后虚拟化成一台分布式设备
IRF分为四阶段:物理连接、设备间通过IRF端口进行信息收集、选举主备关系、IRF自行维护,选举规则为IRF的优先级进行选举,Priority值大的则为MASTER,值小的为SLAVE
模拟场景为由于公司办公人员激增,H3C接入层交换机提供的端口数目已经不能满足PC的接入需求,需要在现有H3C设备的基础上扩展端口接入数量,并要求网络易管理、易维护
配置思路
SW1提供的接入端口数目已经不能满足网络需求,需要另外增加三台设备SW2、SW3和SW4
使用IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以使用IRF技术构建接入层(即在四台设备上配置IRF功能)
为了防止IRF链路故障导致IRF分裂,网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为网络中有一台中间设备SW5支持LACP协议,因此可采用LACP MAD检测
为提高IRF链路的性能和可靠性,在成员设备间使用聚合IRF链路方式进行连接
SW1
system-view interface range name IRF interface ten 1/0/49 to ten 1/0/52 shutdown quit #配置连接SW2的IRF端口1/1 irf-port 1/1 port group interface ten 1/0/51 port group interface ten 1/0/52 quit #配置连接SW3的IRF端口1/2 irf-port 1/2 port group interface ten 1/0/49 port group interface ten 1/0/50 quit #SW1开启接口激活IRF端口 interface range name IRF undo shutdown quit save force irf-port-configuration active
SW2
#配置设备成员编号,修改为2,默认下是1,因为1已经被sw1占用了 system-view irf member 1 renumber 2 save force quit reboot #重启后接口的板卡号由1变成2 system-view interface range name IRF interface ten 2/0/49 to ten 2/0/52 shutdown quit #配置连接SW1的IRF端口2/1 irf-port 2/1 port group interface ten 2/0/49 port group interface ten 2/0/50 #配置连接SW4的IRF端口2/2 irf-port 2/2 port group interface ten 2/0/51 port group interface ten 2/0/52 #SW2开启接口激活IRF端口 interface range name IRF undo shutdown quit save force irf-port-configuration active #此时SW1和SW2间将会进行Master竞选,竞选失败的一方将重启,重启完成后,IRF形成
SW3
#配置设备成员编号为3 system-view irf member 1 renumber 3 save force quit reboot #重启后接口的板卡号由1变成3 system-view interface range name IRF interface ten 3/0/49 to ten 3/0/52 shutdown quit #配置连接SW1的IRF端口3/1 irf-port 3/1 port group interface ten 3/0/51 port group interface ten 3/0/52 #配置连接SW4的IRF端口3/2 irf-port 3/2 port group interface ten 3/0/49 port group interface ten 3/0/50 #SW3开启接口激活IRF端口 interface range name IRF undo shutdown quit save force irf-port-configuration active #此时SW3将自动重启,加入SW1和SW2已经形成的IRF
SW4
#配置设备成员编号为4 system-view irf member 1 renumber 4 save force quit reboot #重启后接口的板卡号由1变成4 system-view interface range name IRF interface ten 4/0/49 to ten 4/0/52 shutdown quit #配置连接SW2的IRF端口4/1 irf-port 4/1 port group interface ten 4/0/49 port group interface ten 4/0/50 #配置连接SW3的IRF端口4/2 irf-port 4/2 port group interface ten 4/0/51 port group interface ten 4/0/52 #SW4开启接口激活IRF端口 interface range name IRF undo shutdown quit save force irf-port-configuration active #此时SW4将自动重启,加入SW1、SW2、SW3已经形成的IRF
查看IRF合并情况
dis irf configuration
查看共享一个板载MAC地址
dis irf topology
查看主备关系
dis irf
配置LACP MAD检测
#SW1设置IRF域编号为1 system-view irf domain 1 #创建一个动态聚合接口并使能LACP MAD检测功能 interface bridge-aggregation 2 link-aggregation mode dynamic mad enable 1 quit interface g1/0/1 port link-aggregation group 2 interface g2/0/1 port link-aggregation group 2 interface g3/0/1 port link-aggregation group 2 interface g4/0/1 port link-aggregation group 2 quit
#SW4配置中间设备帮助LACP MAD检测 system-view interface bridge-aggregation 2 link-aggregation mode dynamic quit interface g1/0/1 port link-aggregation group 2 interface g1/0/2 port link-aggregation group 2 interface g1/0/3 port link-aggregation group 2 interface g1/0/4 port link-aggregation group 2 quit
本站所有文章均可随意转载,转载时请保留原文链接及作者。