Huawei switch configuration stack

Huawei switch configuration stack

1. Case: Two S5735s, this type of switch has 4 Gigabit optical ports. But for stacking, it is said that it can achieve 10 Gigabit effect
1. Two optical fibers
2. Each switch selects GigabitEthernet1/0/51 and GigabitEthernet1/0/52 as stacking ports

2. Precautions:
1. Generally, optical ports with 10G ports or above are required, but this device only has 1000M optical ports, but it can reach 10G ports for stacking.
2. Connect the 52 port of SW1 to the 51 port of SW2, and connect the 51 port of SW1 to the 52 port of SW2 (cross connection, otherwise the stacking will not succeed)
.
4. The configuration after stacking will be based on the master configuration, and the configuration of the master will be synchronized to the backup. The original configuration of the backup machine will be lost and will not be synchronized to the master machine.

3. Configuration steps
(1), configure SW1:

[SW1]interface stack-port 0/1   //创建逻辑堆叠口1
[SW1-stack-port0/1]port interface gigabitethernet 0/0/51 enable   //绑定逻辑端口和物理端口
[SW1]interface stack-port 0/2 
[SW1-stack-port0/2]port interface gigabitethernet 0/0/52 enable
[SW1]stack slot 0 priority 200   //修改主交换机的堆叠优先级为200,默认是100。堆叠ID采用缺省值0。
<SW1>save force  //保存配置。然后下电

(2), configure SW2:

[SW2]interface stack-port 0/1 
[SW2-stack-port0/1]port interface gigabitethernet 0/0/51 enable
[SW2]interface stack-port 0/2 
[SW2-stack-port0/2]port interface gigabitethernet 0/0/52 enable
[SW2] stack slot 0 renumber 1  //堆叠优先级采用缺省值100。修改堆叠ID为1。
<SW2>save force     //保存配置。然后下电
注:与华三交换机不同,华为备交换机是先把逻辑口和堆叠口绑定,然后再改number号。且备交换机创建的逻辑端口与主交换的逻辑端口一致。

(3) Power off, and then connect the optical fiber, the 51 port of sw1 is connected to the 52 port of sw2; the 52 port of sw1 is connected to the 51 port of sw2.

(4) Power on the main switch SW1 first, and then start the standby switch SW2

After completing the above configuration, connect the wires and complete the stacking.

4. Detection command
1. Check the interface, if 0/0/1-0/0/52, 1/0/1-1/0/52 appears, it means the stacking is successful 2. You
can log in to the device through the serial port to view the stacking information

[Stack] display stack // View the basic information of the stack system.

•S5700-SI、S5700-EI、S5700-HI、S6700-EI、S5710-C-LI Stack模式状态灯与Speed模式状态灯共用一个模式状态灯。通过模式切换按钮将模式状态灯切换到红色常亮(45S后灭掉)时,表示模式状态灯进入Stack模式。
•S5732-H、S5732-H-K、S6730-S、S6730S-S、S6720-HI、S6730-H-K、S6730-H、S6730S-H有单独堆叠主从MST指示灯。常灭表示本设备不是堆叠主设备,常亮绿色表示本设备为堆叠主设备或未进行堆叠的设备。
•其他形态有单独的Stack模式状态灯(STCK)。通过模式切换按钮(MODE)将模式状态灯切换到绿色常亮/闪烁(45s后灭掉)时,表示模式状态灯进入Stack模式。

Five, stack split detection
mad multi-master detection
(1), create an Eth-Trunk on the stack system SW1, and set the uplink physical port as an Eth-Trunk member interface

	[SW1] interface eth-trunk 10    //选取sw1的1口和sw2的1口
	[SW1-Eth-Trunk10] trunkport gigabitethernet 0/0/1
	[SW1-Eth-Trunk10] trunkport gigabitethernet 1/0/1
	[SW1-Eth-Trunk10] mad detect mode relay  配置跨设备Eth-Trunk的代理方式多主检测功能。

(2) Create an Eth-Trunk on SW3, and set the port connected to the Stack as an Eth-Trunk member interface.

	[SW3] interface eth-trunk 10
	[SW3-Eth-Trunk10] trunkport gigabitethernet 0/0/1
	[SW3-Eth-Trunk10] trunkport gigabitethernet 0/0/2
	[SW3-Eth-Trunk10] mad relay    //在代理设备SW3上,配置Eth-Trunk的代理功能。

Six, pay attention

•Huawei's stack-related configuration is not recorded in the configuration file, but directly written into Flash, so the display cur will not display the stack-related configuration, which
is different from H3C

Huasan switch stack configuration document https://blog.csdn.net/qq_42906357/article/details/122463125

Guess you like

Origin blog.csdn.net/qq_42906357/article/details/127689330