命令解析:请按需修改。
注意:华为默认堆叠优先级为100越大越优先,以S系列盒式交换机为例的脚本
S系列 默认是0,堆叠口有2个 主设备默认用1,对端堆叠口需要用2
备交换机stack slot 0 renumber 1 把0槽改为1槽后,用第2个堆叠口 1/2 与主设备的0/1连接
堆叠前,请确保设备恢复出厂设置!线缆先不要接!
=================================================================
一、交换机1(主)配置:
system-view
interface 10GE 0/0/49
shutdown
quit
interface 10GE 0/0/50
shutdown
quit
stack slot 0 priority 200
y
interface stack-port 0/1
port interface 10GE 0/0/49 10GE 0/0/50 enable
y
quit
interface 10GE 0/0/49
undo shutdown
quit
interface 10GE 0/0/50
undo shutdown
quit
quit
save
y
=================================================================
二、交换机2(备)配置:
先把设备号改为2,以下请手动执行:
system-view
stack slot 0 renumber 1
y
quit
reboot
y
重启后,配置以下内容:
system-view
interface 10GE 1/0/49
shutdown
quit
interface 10GE 1/0/50
shutdown
quit
interface stack-port 1/2
port interface 10GE 1/0/49 10GE 1/0/50 enable
y
quit
interface 10GE 1/0/49
undo shutdown
quit
interface 10GE 1/0/50
undo shutdown
quit
quit
save
y
=================================================================
三、设备启动前,把堆叠口的线缆接上:
10GE 0/0/49---10GE 1/0/49
10GE 0/0/50---10GE 1/0/50
=================================================================
四、堆叠后配置MAD分裂检测:配置完,再接MAD的互联线
system-view
interface range GigabitEthernet 0/0/48 GigabitEthernet 1/0/48
mad detect mode direct
quit
=================================================================
五、MAD的互联接线
GigabitEthernet 0/0/48---GigabitEthernet 1/0/48