1、关闭所需要的堆叠的接口
interface rang ten 1/0/50 to ten 1/0/51 shutdown
2、irf的配置
irf domain 1 irf mac-address persistent always //配置桥MAC的保留时间为永久 irf auto-update enable //使能系统启动文件的自动加载功能 irf link-delay 10 //配置链路down延迟上报时间为10毫秒 irf member 1 renumber 1 //重定义接口号,irf member 1 remember 2,则重启后接口会变成2/x/x(PS:保存需要重启后生效) irf member 1 priority 30 //如果为2台,则第一台为20,第二台为10,越大越优,优为master irf member 1 description switch1 //描述该台设备名 irf-port 1/1 //进入irf接口,其中1/X中左1为设备号,X/1中右1为设备左右接口(1为左接口,2为右接口),堆叠时候接口一般交叉相连(即本设备下联口为51,与下联口相连的设备的接口为50) port group interface Ten-GigabitEthernet1/0/50 //把shutdown的接口接入到irf接口
3、开启shutdown的接口
interface rang ten 1/0/50 to ten 1/0/51 undo shutdown
4、保存配置
quit save
5、激活irf接口的配置
irf-port-configuration active
6、display irf验证irf是否建立成功
role(角色)那里显示有master和standby则为正常
设备一与设备二连线为交叉相连:
设备一:XGE1/0/51 <---> 设备二:XGE 1/0/50
设备一:XGE 1/0/50 <---> 设备二:XGE 1/0/51
命令
第一台设备命令:
interface rang ten 1/0/50 to ten 1/0/51
shutdown
irf domain 1
irf mac-address persistent always
irf auto-update enable
irf link-delay 10
irf member 1 renumber 1
irf member 1 priority 30
irf member 1 description switch1
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/50
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/51
interface rang ten 1/0/50 to ten 1/0/51
undo shutdown
quit
save
sys
irf-port-configuration active
第二台设备命令:
interface rang ten 1/0/50 to ten 1/0/51
shutdown
irf domain 1
irf mac-address persistent always
irf auto-update enable
irf link-delay 10
irf member 1 renumber 2
irf member 1 priority 20
irf member 1 description switch2
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/50
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/51
interface rang ten 1/0/50 to ten 1/0/51
undo shutdown
quit
save
sys
irf-port-configuration active
最后两设备都重启
quit
reboot
- 重启后display irf验证irf是否建立成功
role(角色)那里显示有master和standby则为正常