**第一台交换机的配置
1、 首先进入并关闭万兆堆叠口
注意:S6520系列交换机,每4个端口为一个IRF端口组,所以需要将37-40口都加入IRF端口组,即使只使用两根堆叠线缆,这个很重要!!
[H3C]interface range ten-gigabitethernet1/0/37 to ten-gigabitethernet1/0/40
[H3C-if-range]shutdown
[H3C-if-range]quit
2、配置IRF模式端口组
[H3C]irf-port 1/2 #创建1号机的第一个虚拟堆叠口
[H3C -irf-port 1/2] port group interface Ten-gigabitEthernet1/0/39
[H3C -irf-port 1/2] port group interface Ten-GigabitEthernet1/0/40
[H3C -irf-port 1/2]quit #完成后退出配置窗口,继续
3、打开万兆堆叠口并激活IRF
[H3C]interface range ten-gigabitethernet1/0/37 to ten-gigabitethernet1/0/40
[H3C-if-range]undo shutdown
[H3C-if-range]quit
[H3C]save #保存
[H3C]irf-port-c active #激活IRF
第二台交换机的配置
1、重命名主机序号
[H3C]irf member 1 renumber 2 #将1号机重命名为2号机
[H3C]reboot #重启设备将接口修改为2/0/X再继续。
2、首先进入并关闭万兆堆叠口
[H3C]interface range ten-gigabitethernet2/0/37 to ten-gigabitethernet2/0/40
[H3C-if-range]shutdown
[H3C-if-range]quit
3、配置IRF模式端口组
[H3C]irf-port 2/1 #创建1号机的第一个虚拟堆叠口
[H3C -irf-port 2/1] port group interface Ten-gigabitEthernet2/0/39
[H3C -irf-port 2/1] port group interface Ten-GigabitEthernet2/0/40
[H3C -irf-port 2/1]quit

*4、打开万兆堆叠口并激活IRF
[H3C]interface range ten-gigabitethernet2/0/37 to ten-gigabitethernet2/0/40
[H3C-if-range]undo shutdown
[H3C-if-range]quit
[H3C]save #保存
[H3C]irf-port-c active #激活IRF,这时两台交换机会进行竞争,竞争失败的会重启,一般第二台会重启
重启完成后
[H3C]dis irf
MemberID Role Priority CPU-Mac Description
+1 Master 1 00e0-fc0f-8c02 —
2 Standby 1 00e0-fc0f-8c03 —

indicates the device is the master.
indicates the device through which the user logs in.
The bridge MAC of the IRF is: 542b-de48-a4bd
Auto upgrade: yes
Mac persistent: 6 min
Domain ID: 0
IRF mode: normal 会看到堆叠状态完成,IRF配置完成。
**