華為交換機設備組建堆疊示例(通過業務口普通線纜)


華為交換機設備組建堆疊示例(通過業務口普通線纜)

1、配置邏輯堆疊端口並加入物理成員端口

# 配置SwitchA的業務口GigabitEthernet0/0/27、GigabitEthernet0/0/28為物理成員端口,並加入到相應的邏輯堆疊端口。

<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface stack-port 0/1
[SwitchA-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.  
[SwitchA-stack-port0/1] quit
[SwitchA] interface stack-port 0/2
[SwitchA-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.  
[SwitchA-stack-port0/2] quit

# 配置SwitchB的業務口GigabitEthernet0/0/27、GigabitEthernet0/0/28為物理成員端口,並加入到相應的邏輯堆疊端口。

<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] interface stack-port 0/1
[SwitchB-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.  
[SwitchB-stack-port0/1] quit
[SwitchB] interface stack-port 0/2
[SwitchB-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.  
[SwitchB-stack-port0/2] quit

# 配置SwitchC的業務口GigabitEthernet0/0/27、GigabitEthernet0/0/28為物理成員端口,並加入到相應的邏輯堆疊端口。

<HUAWEI> system-view
[HUAWEI] sysname SwitchC
[SwitchC] interface stack-port 0/1
[SwitchC-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.  
[SwitchC-stack-port0/1] quit
[SwitchC] interface stack-port 0/2
[SwitchC-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.  
[SwitchC-stack-port0/2] quit

2、配置堆疊ID和堆疊優先級

# 配置SwitchA的堆疊優先級為200。

[SwitchA] stack slot 0 priority 200
Warning: Please do not frequently modify Priority because it will make the stack split. Continue? [Y/N]:y 

# 配置SwitchB的堆疊ID為1。

[SwitchB] stack slot 0 renumber 1
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Please do not frequently modify slot ID because it will make the stack split. Continue? [Y/N]:y
Info: Stack configuration has been changed, and the device needs to restart to make the configuration effective.

# 配置SwitchC的堆疊ID為2。

[SwitchC] stack slot 0 renumber 2
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Please do not frequently modify slot ID because it will make the stack split. Continue? [Y/N]:y
Info: Stack configuration has been changed, and the device needs to restart to make the configuration effective.

3、SwitchA、SwitchB、SwitchC下電,使用SFP+電纜連接后再上電。

說明:

  • 下電前,建議通過命令save保存配置。
  • 本設備的stack-port 0/1必須連接鄰設備的stack-port 0/2,否則堆疊組建不成功。
  • 為保證堆疊組建成功,建議按照以下順序進行連線上電(如果用戶希望某台交換機為主交換機可以先為其上電。例如,按以下順序連線上電后,SwitchA為主交換機):
    1. 為SwitchA~SwitchC下電;
    2. 連接SwitchA與SwitchB之間的堆疊線纜;
    3. 先為SwitchA上電,SwitchA啟動后,再為SwitchB上電;
    4. 檢查SwitchA與SwitchB的堆疊組建是否成功,詳細檢查方法可參見檢查堆疊組建是否成功
    5. 與上一步類似:連接SwitchC與SwitchB和SwitchA之間的堆疊線纜,再為SwitchC上電;
    6. 檢查SwitchA、SwitchB、SwitchC的堆疊組建是否成功,詳細檢查方法可參見檢查堆疊組建是否成功

4、配置跨設備Eth-Trunk

在堆疊系統上行鏈路上配置跨設備Eth-Trunk,具體配置過程請參見配置堆疊Eth-Trunk示例

5、驗證配置結果

# 查看堆疊系統的基本信息。

[SwitchA] display stack
Stack mode: Service-port
Stack topology type : Ring
Stack system MAC: 0018-82d2-2e85
MAC switch delay time: 10 min
Stack reserved vlan : 4093
Slot of the active management port: -- 
Slot     Role        Mac address      Priority   Device type
-------------------------------------------------------------
    0     Master      0018-82d2-2e85   200        S5700-28P-LI-AC
    1     Standby     0018-82c6-1f44   100        S5700-28P-LI-AC
    2     Slave       0018-82c6-1f4c   100        S5700-28P-LI-AC

5、參考文檔

華為官網交換機配置文檔:https://app.yinxiang.com/Home.action?login=true#n=7c08361c-a4d4-4d63-b48e-ccc7c967d422&s=s18&b=10ea75bf-ebde-4850-a416-5bee6b4d0db6&ses=4&sh=1&sds=5&


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM