sys irf member 1 priority 32 #将1号交换机IRF优先级调整至最高32 int Ten-GigabitEthernet 1/1/1 #关闭堆叠端口 shutdown int Ten-GigabitEthernet 1/1/2 shutdown quit irf-port 1/1 #创建IRF端口组1/1 port group interface Ten-GigabitEthernet 1/1/1 #将堆叠板卡端口1添加到IRF端口组1/1 irf-port 1/2 #创建IRF端口组1/2 port group interface Ten-GigabitEthernet 1/1/2 #将堆叠板卡端口2添加到IRF端口组1/2 quit int Ten-GigabitEthernet 1/1/1 #开启堆叠端口 undo shutdown int Ten-GigabitEthernet 1/1/2 undo shutdown quit irf-port-configuration active #激活IRF端口配置 save #保存配置 y
sys irf member 1 renumber 2 #修改member号为2,S5120默认出厂为member 1 y
int Ten-GigabitEthernet 1/1/1 shutdown int Ten-GigabitEthernet 1/1/2 shutdown quit irf-port 1/1 port group interface Ten-GigabitEthernet 1/1/1 irf-port 1/2 port group interface Ten-GigabitEthernet 1/1/2 quit int Ten-GigabitEthernet 1/1/1 undo shutdown int Ten-GigabitEthernet 1/1/2 undo shutdown quit irf-port-configuration active save y
sys irf member 1 renumber 3 #修改member号为3,S5120默认出厂为member 1 y
int Ten-GigabitEthernet 1/1/1 shutdown int Ten-GigabitEthernet 1/1/2 shutdown quit irf-port 1/1 port group interface Ten-GigabitEthernet 1/1/1 irf-port 1/2 port group interface Ten-GigabitEthernet 1/1/2 quit int Ten-GigabitEthernet 1/1/1 undo shutdown int Ten-GigabitEthernet 1/1/2 undo shutdown quit irf-port-configuration active save y
sys irf member 1 renumber 4 #修改member号为4,S5120默认出厂为member 1 y
int Ten-GigabitEthernet 1/1/1 shutdown int Ten-GigabitEthernet 1/1/2 shutdown quit irf-port 1/1 port group interface Ten-GigabitEthernet 1/1/1 irf-port 1/2 port group interface Ten-GigabitEthernet 1/1/2 quit int Ten-GigabitEthernet 1/1/1 undo shutdown int Ten-GigabitEthernet 1/1/2 undo shutdown quit irf-port-configuration active save y