華爲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
<SWA>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 ) [vrpcfg.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
<SWB>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 ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.

重啓兩臺交換機
正常情況下就配置好了,重啓後可查看在一臺交換機上接口數量是否增加一倍

[SWA]display interface brief

參考博客:

S5720-52P-SI如何做堆疊
華爲交換機堆疊參考配置

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章