准备:两台交换机堆叠
1、进行连线
2、交换机都选取 FortyGigE1/0/53 和 FortyGigE1/0/54 做 堆叠口
配置:进行交换机配置
X_T1_Core_1:
[X_T1_Core_1]irf domain 0 //同一拓扑内如果有其它堆叠组,domain不能重复
[X_T1_Core_1]irf member 1 priority 20 //优先级大的为主交换,其余为备,默认值为1
[X_T1_Core_1]int range FortyGigE1/0/53 FortyGigE1/0/54
[X_T1_Core_1-if-range]shutdown
[X_T1_Core_1]irf-port 1/1
[X_T1_Core_1-irf-port1/1]port group interface FortyGigE1/0/53
[X_T1_Core_1-irf-port1/1]port group interface FortyGigE1/0/54
[X_T1_Core_1]int range FortyGigE1/0/53 FortyGigE1/0/54
[X_T1_Core_1-if-range]undo shutdown
[X_T1_Core_1-if-range]quit
[X_T1_Core_1]save //保存一下配置
[X_T1_Core_1]y
[X_T1_Core_1]y
[X_T1_Core_1]irf-port-configuration active //激活irf
X_T1_Core_2:
[X_T1_Core_2]irf domain 0 //需要跟第一台交换机保持一致
[X_T1_Core_2]irf member 1 renumber 2
[X_T1_Core_2]save //重启前保存配置
<X_T1_Core_2>reboot //这步之后重启设备,接口由 1/0/* 变成 2/0/*
[X_T1_Core_2]irf member 2 priority 10 //这条命令可不写,默认是 1
[X_T1_Core_2]int range FortyGigE2/0/53 FortyGigE2/0/54
[X_T1_Core_2-if-range]shutdown
[X_T1_Core_2]irf-port 2/2
[X_T1_Core_2-irf-port2/2]port group interface FortyGigE2/0/53
[X_T1_Core_2-irf-port2/2]port group interface FortyGigE2/0/54
[X_T1_Core_2]int range int range FortyGigE2/0/53 FortyGigE2/0/54
[X_T1_Core_2-if-range]undo shutdown
[X_T1_Core_2]save
[X_T1_Core_2]y
[X_T1_Core_2]y
[X_T1_Core_2]irf-port-configuration active
完成:检查堆叠成功
1、查看irf配置
display irf
display irf link
dis irf configuration
根据以上现象,说明堆叠成功了