最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

华为S5720交换机堆叠配置

IT圈 admin 47浏览 0评论

2023年12月6日发(作者:万问寒)

华为S5720交换机堆叠配置

S5720交换机,做下堆叠,两条线,交叉互联(即A交换机23口连到B交换机24口,A交换机24口连接B交换机23口)。

PS: S5720堆叠可基于电口或者光口做,本次测试基于电口。

SWA配置

# 改名

[Huawei]sysname SWA

# 最好先shutdown接口

[SWA]interface GigabitEthernet 0/0/23

[SWA-GigabitEthernet0/0/23]shutdown

[SWA-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWA-GigabitEthernet0/0/24]shutdown

[SWA-GigabitEthernet0/0/24]quit

# SWA默认number0

[SWA]interface stack-port 0/1

[SWA-stack-port0/1]port interface GigabitEthernet 0/0/23 enable

[SWA-stack-port0/1]quit

[SWA]interface stack-port 0/2

[SWA-stack-port0/2]port interface GigabitEthernet 0/0/24 enable

[SWA-stack-port0/2]quit

# 开启23和24接口,保存配置

[SWA]interface GigabitEthernet 0/0/23

[SWA-GigabitEthernet0/0/23]undo shutdown

[SWA-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWA-GigabitEthernet0/0/24]undo shutdown

[SWA-GigabitEthernet0/0/24]quit

[SWA]quit

save

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

Info: Please input the file name ( *.cfg, *.zip ) []:

Now saving the current configuration to the slot 0.

Save the configuration successfully.

SWB配置

# 改名

[Huawei]sysname SWB

# 关闭接口

[SWB]interface GigabitEthernet 0/0/23

[SWB-GigabitEthernet0/0/23]shutdown

[SWB-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWB-GigabitEthernet0/0/24]shutdown

[SWB-GigabitEthernet0/0/24]quit

# 修改成员号

[SWB]stack slot 0 renumber 1

# 默认100,华为是1-255,值越大优先级越高会被推举为Master

[SWB]stack slot 0 priority 10

[SWB]interface stack-port 0/1

[SWB-stack-port0/1]port interface GigabitEthernet 0/0/23 enable

[SWB-stack-port0/1]quit

[SWB]interface stack-port 0/2

[SWB-stack-port0/2]port interface GigabitEthernet 0/0/24 enable

[SWB-stack-port0/2]quit

# 开启23和24接口,保存配置

[SWB]interface GigabitEthernet 0/0/23

[SWB-GigabitEthernet0/0/23]undo shutdown

[SWB-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWB-GigabitEthernet0/0/24]undo shutdown

[SWB-GigabitEthernet0/0/24]quit

[SWB]quit

sava

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

Info: Please input the file name ( *.cfg, *.zip ) []:

Now saving the current configuration to the slot 0.

Save the configuration successfully.

补充:

[SwitchA] stack slot 0 priority 200 //修改主交换机的堆叠优先级为200,大于其他成员交换机。堆叠ID采用缺省值0。

[SwitchB] stack slot 0 renumber 1 //堆叠优先级采用缺省值100。修改堆叠ID为1。

[SwitchC] stack slot 0 renumber 2 //堆叠优先级采用缺省值100。修改堆叠ID为2。

重启两台交换机

正常情况下就配置好了,重启后可查看在一台交换机上接口数量是否增加一倍

[SWA]display interface brief接线图

2023年12月6日发(作者:万问寒)

华为S5720交换机堆叠配置

S5720交换机,做下堆叠,两条线,交叉互联(即A交换机23口连到B交换机24口,A交换机24口连接B交换机23口)。

PS: S5720堆叠可基于电口或者光口做,本次测试基于电口。

SWA配置

# 改名

[Huawei]sysname SWA

# 最好先shutdown接口

[SWA]interface GigabitEthernet 0/0/23

[SWA-GigabitEthernet0/0/23]shutdown

[SWA-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWA-GigabitEthernet0/0/24]shutdown

[SWA-GigabitEthernet0/0/24]quit

# SWA默认number0

[SWA]interface stack-port 0/1

[SWA-stack-port0/1]port interface GigabitEthernet 0/0/23 enable

[SWA-stack-port0/1]quit

[SWA]interface stack-port 0/2

[SWA-stack-port0/2]port interface GigabitEthernet 0/0/24 enable

[SWA-stack-port0/2]quit

# 开启23和24接口,保存配置

[SWA]interface GigabitEthernet 0/0/23

[SWA-GigabitEthernet0/0/23]undo shutdown

[SWA-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWA-GigabitEthernet0/0/24]undo shutdown

[SWA-GigabitEthernet0/0/24]quit

[SWA]quit

save

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

Info: Please input the file name ( *.cfg, *.zip ) []:

Now saving the current configuration to the slot 0.

Save the configuration successfully.

SWB配置

# 改名

[Huawei]sysname SWB

# 关闭接口

[SWB]interface GigabitEthernet 0/0/23

[SWB-GigabitEthernet0/0/23]shutdown

[SWB-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWB-GigabitEthernet0/0/24]shutdown

[SWB-GigabitEthernet0/0/24]quit

# 修改成员号

[SWB]stack slot 0 renumber 1

# 默认100,华为是1-255,值越大优先级越高会被推举为Master

[SWB]stack slot 0 priority 10

[SWB]interface stack-port 0/1

[SWB-stack-port0/1]port interface GigabitEthernet 0/0/23 enable

[SWB-stack-port0/1]quit

[SWB]interface stack-port 0/2

[SWB-stack-port0/2]port interface GigabitEthernet 0/0/24 enable

[SWB-stack-port0/2]quit

# 开启23和24接口,保存配置

[SWB]interface GigabitEthernet 0/0/23

[SWB-GigabitEthernet0/0/23]undo shutdown

[SWB-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24

[SWB-GigabitEthernet0/0/24]undo shutdown

[SWB-GigabitEthernet0/0/24]quit

[SWB]quit

sava

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

Info: Please input the file name ( *.cfg, *.zip ) []:

Now saving the current configuration to the slot 0.

Save the configuration successfully.

补充:

[SwitchA] stack slot 0 priority 200 //修改主交换机的堆叠优先级为200,大于其他成员交换机。堆叠ID采用缺省值0。

[SwitchB] stack slot 0 renumber 1 //堆叠优先级采用缺省值100。修改堆叠ID为1。

[SwitchC] stack slot 0 renumber 2 //堆叠优先级采用缺省值100。修改堆叠ID为2。

重启两台交换机

正常情况下就配置好了,重启后可查看在一台交换机上接口数量是否增加一倍

[SWA]display interface brief接线图

发布评论

评论列表 (0)

  1. 暂无评论