[S1]irf domain xxx //配置自定义IRF域编号(可有可无,看需求)
[S1]irf merber 1 priority 32 //设置交换机的优先级为32,即将此交换机当作主设备
[S1]int range Ten-GigabitEtherneten 1/0/49 to Ten-GigabitEtherneten 1/0/50 //进入接口
[S1-if-range]shutdown //关闭端口
[S1-if-range]quit //返回上一级
[S1]irf-port 1/1 //进入irf端口
[S1-irf-port1/1]port group int Ten-GigabitEtherneten1/0/49 //将49号端口加入到irf接口
[S1-irf-port1/1]port group int Ten-GigabitEtherneten1/0/50 //将50号端口加入到irf接口
[S1-irf-port1/1]quit
[S1]int range Ten-GigabitEtherneten 1/0/49 to Ten-GigabitEtherneten 1/0/50 //进入接口
[S1]undo shutdown //开启端口
[S1]irf-port-configuration active //激活irf
[S1]save fo //保存
[S1]reboot //重启
[S1]Y
设置交换机堆叠id为2,保存重启
[S2]sys
[S2]irf member 1 renumber 2 //修改member 1为2(member 默认为1)
[S2]Y
[S2]save fo //保存
[S2]exit //返回上一级
[S2]reboot //重启
[S2]Y
上面操作过后需要保存配置并重启设备,设备接口编号会变成2/x/x
[S2]irf domain xxx //配置自定义IRF域编号
[S2]irf merber 2 priority 16 //设置交换机的irf优先级为16,即将此交换机当作备设备
[S2]int range Ten-GigabitEtherneten 2/0/49 to Ten-GigabitEtherneten 2/0/50 //进入接口
[S2-if-range]shutdown //关闭端口
[S2-if-range]quit
[S2]irf-port 2/2 //进入irf端口
[S2-irf-port2/2]port group int Ten-GigabitEtherneten2/0/49 //将49号端口加入到irf接口
[S2-irf-port2/2]port group int Ten-GigabitEtherneten2/0/50 //将50号端口加入到irf接口
[S2]int range Ten-GigabitEtherneten 2/0/49 to Ten-GigabitEtherneten 2/0/50 //进入接口
[S2-if-range]undo shutdown //开启端口
[S2]irf-port-configuration active //激活irf
[S2]save fo
[S2]reboot
[S2]Y