Oamc

IRF / 堆叠配置与主备切换

本页目录

场景

两台交换机要做成一台逻辑设备,双上行、双电源,坏一台业务不断。

前置条件

  • 两台同型号(或支持混堆)的交换机
  • 至少两条万兆线做 IRF 堆叠口
  • 规划好 member id(1 和 2)
  • 知道哪台做 master

配置

H3C(IRF)

# 设备 1
system-view
irf member 1 priority 32
interface Ten-GigabitEthernet1/0/49
 shutdown
 quit
irf-port 1/1
 port group interface Ten-GigabitEthernet1/0/49
 quit
irf-port 1/2
 port group interface Ten-GigabitEthernet1/0/50
 quit
save force

设备 2 改 member id 后同样配 irf-port 2/1、2/2,irf-port-configuration active 激活。

华为(iStack)

stack member 1 priority 200
# 堆叠口在相应型号上用 stack-port 或专用堆叠卡

验证

display irf
display irf topology
display irf configuration

能看到两个 member,一个 Master 一个 Standby,堆叠口双 up。

回滚

undo irf-port 1/1
undo irf-port 1/2
irf-port-configuration active

拆堆叠要在业务窗口做,拆的瞬间两台都会重启。

坑

  • member id 重复,两台都起不来。
  • 堆叠线只接一条,断一条就分裂(脑裂)。
  • 拆堆叠时先拆线再改配置,顺序反了可能两台都成 master。
  • 混堆要确认型号和版本允许。
  • IRF 后接口编号变成 1/0/1、2/0/1,原来配在 GigabitEthernet1/0/1 的配置要对应调整。
  • 升级固件需要整堆重启,别在业务时间做。