CE12800&12800E堆疊部署示例


組網需求

在一個新建的數據中心網絡中,要求核心層具有較高的可靠性,並且希望網絡結構簡單,易於配置和管理。
如圖4-1所示,根據用戶需求,核心層SwitchA和SwitchB兩台交換機采取堆疊組網。

配置思路

采用如下的思路配置:
1.提前規划好堆疊方案。
2.按照前期的規划,連接好SwitchA和SwitchB之間的堆疊線纜。
3.在SwitchA和SwitchB上進行堆疊軟件配置,包括堆疊成員ID、堆疊優先級、堆疊域編號、堆疊連接方式、堆疊端口等。
4.保存SwitchA和SwitchB的配置,並使能堆疊功能。
5.檢查堆疊組建是否成功。
6.配置雙主檢測。

操作步驟

1.提前規划堆疊方案。

規划的主要內容如表4-1所示。
表4-1 堆疊規划內容

內容 switchA switchB
堆疊成員角色 主交換機 備交換機
堆疊成員ID 1 2
堆疊優先級 150 100
堆疊域編號 10 10
堆疊連接方式 主控板直連方式 主控板直連方式
堆疊連接端口 40GE1/0/1~40GE1/0/2 40GE2/0/1~40GE2/0/2 40GE1/0/1~40GE1/0/2 40GE2/0/1~40GE2/0/2
雙主檢測端口 10GE3/0/5 10GE4/0/5 10GE3/0/5 10GE4/0/5

2.連接堆疊線纜。

如圖4-2所示,按照前期規划連接SwitchA和SwitchB之間的堆疊線纜。連接的端口包括主控板上的SIP口、業務板上的堆疊物理成員端口和雙主檢測端口。
圖4-2 堆疊連接示意圖

3.配置堆疊屬性。

配置SwitchA的優先級為150,Domain ID為10。此處默認SwitchA的堆疊成員ID為1,堆疊連接方式為主控板直連方式,無需配置。

<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] stack
[~SwitchA-stack] stack member 1
[~SwitchA-stack] stack priority 150
[*SwitchA-stack] stack domain 10
[*SwitchA-stack] stack link-type mainboard-direct
[*SwitchA-stack] quit
[*SwitchA] commit

配置SwitchB的堆疊成員ID為2,Domain ID為10。此處默認SwitchB的堆疊優先級為100,堆疊連接方式為主控板直連方式,無需配置。

<HUAWEI> system-view
[~HUAWEI] sysname SwitchB
[*HUAWEI] commit
[~SwitchB] stack
[~SwitchB-stack] stack member 2
Warning: The device will use the configuration of member ID 2 after the device resets. Continue? [Y/N]: y
[*SwitchB-stack] stack domain 10
[*SwitchB-stack] stack link-type mainboard-direct
[*SwitchB-stack] quit
[*SwitchB] commit

4.配置堆疊端口。

在SwitchA上創建堆疊端口,並將端口40GE1/0/1~40GE1/0/2、40GE2/0/1~40GE2/0/2加入堆疊端口。在SwitchB上創建堆疊端口,並將端口40GE1/0/1~40GE1/0/2、40GE2/0/1~40GE2/0/2加入堆疊端口。SwitchB的配置與SwitchA類似,配置過程略。

[~SwitchA] port-group group1
[*SwitchA-port-group-group1] group-member 40ge 1/0/1 to 40ge 1/0/2
[*SwitchA-port-group-group1] group-member 40ge 2/0/1 to 40ge 2/0/2
[*SwitchA-port-group-group1] shutdown
[*SwitchA-port-group-group1] quit
[*SwitchA] commit
[~SwitchA] interface stack-port 1
[*SwitchA-Stack-Port1] port member-group interface 40ge 1/0/1 to 1/0/2
Warning: After the configuration is complete,
1.The interface(s) (40GE1/0/1-1/0/2) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist.
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchA-Stack-Port1] port member-group interface 40ge 2/0/1 to 2/0/2
Warning: After the configuration is complete,
1.The interface(s) (40GE2/0/1-2/0/2) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist.
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchA-Stack-Port1] quit
[*SwitchA] commit

被配置為堆疊物理成員端口后,端口下會自動配置port crc-statistics trigger error-down。
待SwitchA和SwitchB上的物理端口都加入堆疊端口后,再將之前被關閉的端口打開。SwitchB的配置與SwitchA類似,配置過程略。

[~SwitchA] port-group group1
[~SwitchA-port-group-group1] undo shutdown
[*SwitchA-port-group-group1] quit
[*SwitchA] commit
[~SwitchA] quit

端口先關閉然后再打開,這樣是為了避免端口因產生CRC錯包而導致Error-Down。在端口Up的情況下,如果鏈路一端被配置為堆疊物理成員端口,另一端為普通業務口,此時端口可能會產生CRC錯包。

5.檢查堆疊配置信息。

上述配置完成后,執行命令display stack configuration查看配置是否與規划的一致,如果不一致,需要修改配置。以查看SwitchA為例。

<SwitchA> display stack configuration
Oper          : Operation
Conf          : Configuration
LC            : LineCard
MB            : MainBoard
*             : Offline configuration
Isolated Port : The port is in stack mode, but does not belong to any Stack-Port
Attribute Configuration:
---------------------------------------------------------------
 MemberID      Domain         Priority       Mode     Enable
Oper(Conf)   Oper(Conf)      Oper(Conf)   Oper(Conf)   Oper
---------------------------------------------------------------
1(1)         --(10)          100(150)     MB(MB)       Disable
---------------------------------------------------------------
Stack-Port Configuration:
--------------------------------------------------------------------------------
Stack-Port      Member Ports
--------------------------------------------------------------------------------
Stack-Port1     40GE1/0/1           40GE1/0/2           40GE2/0/1
                40GE2/0/2
--------------------------------------------------------------------------------

6.保存配置並使能設備堆疊功能。

保存SwitchA的配置並使能堆疊功能。建議先使能規划為主交換機的SwitchA的堆疊功能。這樣SwitchA可以先完成重啟,從而優先成為主交換機。

<SwitchA> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y
<SwitchA> system-view
[~SwitchA] stack
[~SwitchA-stack] stack enable
Warning: Make sure that one or more dual-active detection methods are configured once the conversion is complete and the device enters the stack mode. Switches working in different forward modes cannot set up a CSS.
Current configuration will be converted to the next startup saved-configuration file of stack mode.
System will reboot. Continue? [Y/N]: y

使能堆疊功能后,設備會自動重啟。
保存SwitchB的配置並使能堆疊功能。

<SwitchB> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y
<SwitchB> system-view
[~SwitchB] stack
[~SwitchB-stack] stack enable
Warning: Make sure that one or more dual-active detection methods are configured once the conversion is complete and the device enters the stack mode. Switches working in different forward modes cannot set up a CSS.
Current configuration will be converted to the next startup saved-configuration file of stack mode.
System will reboot. Continue? [Y/N]: y

7.檢查堆疊是否組建成功。

通過Console口或管理網口登錄堆疊系統,使用命令display stack查看堆疊是否組建成功。當通過管理網口登錄時,需要使用主交換機的IP地址。

<SwitchA> display stack
--------------------------------------------------------------------------------
MemberID Role     MAC              Priority   DeviceType         Description
--------------------------------------------------------------------------------
1        Master   006d-8835-2b00   150        CE12804
2        Standby  006d-8835-2c00   100        CE12804
--------------------------------------------------------------------------------

如上所示,顯示兩台交換機的信息,表示堆疊建立成功,且主交換機為成員ID為1的設備,即SwitchA。

8.配置雙主檢測。

配置端口10GE1/3/0/5、10GE1/4/0/5、10GE2/3/0/5、10GE2/4/0/5的直連方式的雙主檢測功能。

<SwitchA> system-view
[~SwitchA] interface 10ge 1/3/0/5
[~SwitchA-10GE1/3/0/5] dual-active detect mode direct
Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y
[*SwitchA-10GE1/3/0/5] quit
[*SwitchA] interface 10ge 1/4/0/5
[*SwitchA-10GE1/4/0/5] dual-active detect mode direct
Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y
[*SwitchA-10GE1/4/0/5] quit
[*SwitchA] interface 10ge 2/3/0/5
[*SwitchA-10GE2/3/0/5] dual-active detect mode direct
Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y
[*SwitchA-10GE2/3/0/5] quit
[*SwitchA] interface 10ge 2/4/0/5
[*SwitchA-10GE2/4/0/5] dual-active detect mode direct
Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]: y
[*SwitchA-10GE2/4/0/5] commit
[~SwitchA-10GE2/4/0/5] quit

9.配置堆疊成員端口延遲上報Down狀態。

建議配置端口延遲上報Down,防止因端口閃斷導致堆疊狀態不穩定。

[~SwitchA] port-group group-member 40ge 1/1/0/1 40ge 1/1/0/2 40ge 1/2/0/1 40ge 1/2/0/2 40ge 2/1/0/1 40ge 2/1/0/2 40ge 2/2/0/1 40ge 2/2/0/2
[~SwitchA-port-group] carrier down-hold-time 2000
[*SwitchA-port-group] commit
[~SwitchA-port-group] return

10.保存堆疊系統配置

在堆疊配置完成后,建議立即使用save命令保存堆疊系統配置。

<SwitchA> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y

堆疊系統的配置文件

#
sysname SwitchA
#
stack
 #
 stack mode
 #
 stack member 1 domain 10
 stack member 1 priority 150
 #
 stack member 2 domain 10
#
interface Stack-Port1/1
#
interface Stack-Port2/1
#
interface 10GE1/3/0/5
 dual-active detect mode direct
#
interface 10GE1/4/0/5
 dual-active detect mode direct
#
interface 10GE2/3/0/5
 dual-active detect mode direct
#
interface 10GE2/4/0/5
 dual-active detect mode direct
#
interface 40GE1/1/0/1
 port mode stack
 stack-port 1/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
interface 40GE1/1/0/2
 port mode stack
 stack-port 1/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
interface 40GE1/2/0/1
 port mode stack
 stack-port 1/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
interface 40GE1/2/0/2
 port mode stack
 stack-port 1/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
interface 40GE2/1/0/1
 port mode stack
 stack-port 2/1
 port crc-statistics trigger error-down
#
interface 40GE2/1/0/2
 port mode stack
 stack-port 2/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
interface 40GE2/2/0/1
 port mode stack
 stack-port 2/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
interface 40GE2/2/0/2
 port mode stack
 stack-port 2/1
 port crc-statistics trigger error-down
 carrier down-hold-time 2000
#
port-group group1
 group-member 40GE1/1/0/1
 group-member 40GE1/1/0/2
 group-member 40GE1/2/0/1
 group-member 40GE1/2/0/2
#
return

文章來源:https://support.huawei.com/enterprise/zh/doc/EDOC1000177341?section=j00m


免責聲明!

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



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