1. 程式人生 > >交換機堆疊配置案例(H3C)

交換機堆疊配置案例(H3C)

能夠 opera his info serve gem it! ethernet top

技術分享

配置思路

采用如下的思路配置:

  1. 為了能夠在堆疊的成員設備間轉發數據報文,配置堆疊物理成員端口,並加入堆疊端口。註意同一條堆疊鏈路上的兩個堆疊物理成員端口需加入不同堆疊端口。
  2. 所有成員交換機下電,按照圖1所示使用SFP+堆疊電纜連接各端口後依次上電。

操作步驟

  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 port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[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 port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[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 port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[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 port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[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 port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[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 port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[SwitchC-stack-port0/2] quit

# 配置SwitchD的業務口GigabitEthernet0/0/27~GigabitEthernet0/0/28為堆疊物理成員端口,並加入堆疊端口。

<HUAWEI> system-view

[HUAWEI] sysname SwitchD

[SwitchD] interface stack-port 0/1

[SwitchD-stack-port0/1] port interface gigabitethernet 0/0/27 enable

Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[SwitchD-stack-port0/1] quit

[SwitchD] interface stack-port 0/2

[SwitchD-stack-port0/2] port interface gigabitethernet 0/0/28 enable

Warning: Enabling stack port cause configuration loss on the interface, continue?[Y/N]:y

Info: This operation may take a few seconds. Please wait for a moment.......

[SwitchD-stack-port0/2] quit

  1. 配置堆疊ID和堆疊優先級

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

[SwitchA] stack slot 0 priority 200

Warning:Please do not frequently modify Priority, 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, it will make the stack split. Continue?[Y/N]:y

Info: Stack configuration has been changed, need reboot to take effect.

# 配置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, it will make the stack split. Continue?[Y/N]:y

Info: Stack configuration has been changed, need reboot to take effect.

# 配置SwitchD的堆疊ID為3。

[SwitchD] stack slot 0 renumber 3

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, it will make the stack split. Continue?[Y/N]:y

Info: Stack configuration has been changed, need reboot to take effect.

  1. SwitchA、SwitchB、SwitchC、SwitchD下電,使用SFP+電纜連接後再上電。

說明:

    • 本設備的stack-port 0/1必須連接鄰設備的stack-port 0/2,否則堆疊組建不成功。
    • 下電前,請使用save命令保存配置。
    • 為確保堆疊組建成功,可按照以下順序進行連線上電:
      1. SwitchA~SwitchD下電;
      2. 連接SwitchA與SwitchB之間的堆疊線纜;
      3. 先為SwitchA上電,再為SwitchB上電;
      4. 連接SwitchD與SwitchB之間的堆疊線纜,再為SwitchD上電;同樣,連接SwitchC與SwitchA和SwitchD之間的堆疊線纜,再為SwitchC上電。

說明:

如果用戶希望某臺交換機為主交換機可以先為其上電。例如,按以上連線上電順序,SwitchA為主交換機。

  1. 驗證配置結果

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

<SwitchA> display stack

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

3 Slave 0018-82b1-6eb8 100 S5700-28P-LI-AC

交換機堆疊配置案例(H3C)