H3C交接机堆叠案例
两台H3C交接机堆叠脚本:
场景:两台H3C交换机; 硬件型号相同,软件版本相机;
SW1的47口-SW2的48口互联;SW2的48口-SW1的47口互联
SW1 : Master 主交换机
SW2 :Standby 备交换机
两成员的 priority 默认优先级为1,数值越大优先级越高。 ------------------------------------------------------------------
[SW2]
irf member 1 renumber 2
quit
save force
reboot
irf member 2 priority 20
interface Ten-GigabitEthernet2/0/47
shutdown
quit
interface Ten-GigabitEthernet2/0/48
shutdown
quit
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/47
quit
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/48
quit
interface Ten-GigabitEthernet2/0/47
undo shutdown
quit
interface Ten-GigabitEthernet2/0/48
undo shutdown
quit
irf-port-configuration active
save force
--------------------------------------------------------
[SW1]
irf member 1 priority 30
interface Ten-GigabitEthernet1/0/47
shut
quit
interface Ten-GigabitEthernet1/0/48
shut
quit
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/47
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/48
interface Ten-GigabitEthernet1/0/47
undo shut
interface Ten-GigabitEthernet1/0/48
undo shut
irf-port-configuration active
quit
save force
最后步骤:
连接光纤(主交换47口与备交换机48口互联, 主交换48与备交换机47互联)
验证命令:
display irf
display irf config
display device