H3C 6805 Switch IRF Config Example

发布时间:2026/7/24 21:15:17
H3C 6805 Switch IRF Config Example H3C 6805 Switch IRF Config Example1 背景分布式存储业务上架2台H3C 6805交换机2台6805 switch need to config IRFModel : S6805-54HF2 IRF config配置步骤如下第1台指定优先级范围1-32越大越优本次我们配置为10将IRF port的2个物理接口shutdown不然不让加入irf-port创建irf port将2个物理口加入2个物理口打开激活IRF配置并保存配置第2台修改编号默认为1需要重启交换机第2台指定优先级本次我们配置为1将IRF port的物理接口shutdown不然不让加入irf-port创建irf port将物理口加入 激活IRF配置并保存配置2个物理口打开 这时交换机会检测到对端第2台优先级低的会自动重启重启完成后IRF完成配置mad双主检测2 以下为具体配置步骤及命令2.1 第1台68052.1.1 指定优先级irf member1priority102.1.2 将需要加入irf-port的端口关闭Interface range Hundred1/0/27 to hundred1/0/28 Shutdown2.1.3 创建1个irf虚拟接口irf-port1/1 Port group interface hundred1/0/27 Port group interface hundred1/0/28 Quit2.1.4 激活irf配置并保存irf-port-configuration active save force2.1.5 打开物理接口Interface range Hundred1/0/27 to hundred1/0/28 undoshutdown把irf port的物理连线接好2.2 第2台68052.2.1 修改设备编号默认为1修改为2, 修改后需要重启交换机生效H3C-2system-view[H3C-2]irf member1renumber2Warning: Renumbering the member ID may resultinconfiguration change or loss. Continue?[Y/N]:y[H3C-2]quitH3C-2reboot2.2.2 重启完成后指定优先级irf member2priority12.2.3 将需要加入irf-port的端口关闭Interface range Hundred2/0/27 to hundred2/0/28 Shutdown2.2.4 创建1个irf虚拟接口第2台不能使用1/1, 要使用2/2Irf-port2/2 Port group interface hundred2/0/27 Port group interface hundred2/0/28 Quit2.2.5 激活irf配置并保存irf-port-configuration active save force2.2.6 打开物理接口Interface range Hundred2/0/27 to hundred2/0/28 undoshutdown这时第2台会检测到第1台设备因为第2台的priority低所以会重启。3 重启后确认IRF状态H3C-6805-IRFdisplay irf MemberID Role Priority CPU-Mac Description *1 Master10f010-90db-7402 ---2Standby1f010-90db-7403 --- -------------------------------------------------- * indicates the device is the master. indicates the device throughwhichthe user logs in. The bridge MAC of the IRF is: 30b0-37bc-1617 Auto upgrade:yesMac persistent:12min Domain ID:0H3C-6805-IRFdisplay device Slot Type State Subslot Soft Ver Patch Ver1S6805-54HF Master0S6805-54HF-6715 R6715HS082S6805-54HF Standby0S6805-54HF-6715 R6715HS08H3C-6805-IRFdisplay irf configuration MemberID NewID IRF-Port1 IRF-Port2 1 1 HundredGigE1/0/27 disable HundredGigE1/0/28 2 2 disable HundredGigE2/0/27 HundredGigE2/0/28H3C-6805-IRFdisplay irflinkMember1IRF Port Interface Status1HundredGigE1/0/27 UP HundredGigE1/0/28 UP2disable -- Member2IRF Port Interface Status1disable --2HundredGigE2/0/27 UP HundredGigE2/0/28 UPH3C-6805-IRFdisplay irf topology Topology Info ------------------------------------------------------------------------- IRF-Port1 IRF-Port2 MemberID Link neighbor Link neighbor Belong To2DISPLAY--- UP1f010-90db-12341UP2DISPLAY--- f010-90db-12344 配置mad双主检测创建3层聚合接口开启bfd配置2个Ip地址将2个物理接口加入聚合接口interface Route-Aggregation99 mad bfdenablemadipaddress169.254.1.1255.255.255.0 member1madipaddress169.254.1.2255.255.255.0 member2interface Ten-GigabitEthernet1/0/54 port link-mode route port link-aggregation group99interface Ten-GigabitEthernet2/0/54 port link-mode route port link-aggregation group99确认mad状态H3C-6805-IRFdisplay bfd session Total sessions:1Up sessions:0Init mode: Active IPv4 session workingincontrol packet mode: LD/RD SourceAddr DestAddr State Holdtime Interface33793/0169.254.1.1169.254.1.2 Down / RAGG99上面的State显示为down正常吗down是正常的BFD MAD检测原理BFD MAD检测是通过BFD协议来实现的。要使BFD MAD检测功能正常运行除在三层接口下开启BFD MAD检测功能外还需要在该接口上配置MAD IP地址。MAD IP地址与普通IP地址不同的地方在于MAD IP地址与成员设备是绑定的IRF中的每个成员设备上都需要配置且所有成员设备的MAD IP必须属于同一网段。· 当IRF正常运行时只有主设备上配置的MAD IP地址生效从设备上配置的MAD IP地址不生效BFD会话处于down状态使用display bfd session命令查看BFD会话的状态。如果Session State显示为Up则表示激活状态如果显示为Down则表示处于down状态· 当IRF分裂形成多个IRF时不同IRF中主设备上配置的MAD IP地址均会生效BFD会话被激活此时会检测到多Active冲突。H3C-6805-IRFdisplay mad verbose Multi-active recovery state: No Excluded ports(user-configured): Excluded ports(system-configured): IRF physical interfaces: HundredGigE1/0/27 HundredGigE1/0/28 HundredGigE2/0/27 HundredGigE2/0/28 BFD MAD interfaces: Ten-GigabitEthernet1/0/54 Ten-GigabitEthernet2/0/54 Route-Aggregation99 MAD ARP disabled. MAD ND disabled. MAD LACP disabled. MAD BFD enabled interface: Route-Aggregation99 MAD status:Normal Member ID MAD IP address Neighbor MAD status1169.254.1.1/242Normal2169.254.1.2/241Normal最后记得保存配置H3C-6805-IRFsave force Validating file. Please wait... Saved the current configuration to mainboard device successfully. Slot2: Save next configurationfilesuccessfully.