華為12800系列交換機堆疊配置


<<華為12804配置堆疊手冊.pdf>>

   

個別詞匯說明:

1commit命令:是華為CE設備的配置命令完成后,使用commit使得配置命令生效。

#查看未commit生效配置的命令: display configuration candidate 

#清空未commit配置可以用這個命令: clear configuration candidate

2、堆疊端口:這里的堆疊端口指的是邏輯的兩台設備連接的端口,需要將物理的端口加入到堆疊端口中。

   

   

1、配置思路

1、連接堆疊線纜,最好使用華為原廠的堆疊線,比較有安全保證。

2SwitchASwitchB上分別配置相同的堆疊域和堆疊的連接方式。分別配置不同的堆疊成員編號和堆疊成員優先級。

3、在SwitchASwitchB上分別創建堆疊端口,並將要堆疊的物理端口加入到堆疊端口中。

4、在SwitchASwitchB保存配置,使用堆疊功能。

2、配置命令

1、連接堆疊線纜:

連接SwitchASwitchB間的堆疊線纜。如果選擇的堆疊連接方式為主控板直連方式,則需要連接主控板上的SIP口和業務板上的堆疊物理成員端口;如果為業務板直連方式,則無需連接SIP口。

2、 配置SwitchASwitchB的堆疊屬性:

# 配置SwitchA的堆疊成員ID1,優先級為150Domain ID10,堆疊連接方式為業務板連接方式。

<HUAWEI> system-view

[~HUAWEI] sysname SwitchA

[*HUAWEI] commit *CE設備配置生效的命令

[~SwitchA] stack

[~SwitchA-stack] stack member 1 *堆疊成員為1

[~SwitchA-stack] stack priority 150 *堆疊成員優先級,越大越優先,成為master

[*SwitchA-stack] stack domain 10 *堆疊域為10,域必須一樣

[*SwitchA-stack] stack link-type linecard-direct *堆疊連接方式,使用業務板堆疊

[*SwitchA-stack] quit

[*SwitchA]commit *上述配置命令生效

# 配置SwitchB的堆疊成員ID2,優先級為100Domain ID10,堆疊連接方式為主控板直連方式。

<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 priority 100

[*SwitchB-stack] stack domain 10

[*SwitchB-stack] stack link-type linecard-direct

[*SwitchB-stack] quit

[*SwitchB] commit

   

3、配置堆疊端口

# SwitchA上創建堆疊端口,並將端口10GE3/0/010GE3/0/3加入堆疊端口。

# SwitchB上創建堆疊端口,並將端口10GE3/0/010GE3/0/3加入堆疊端口。

SwitchB的配置與SwitchA類似,配置過程略。

[~SwitchA] port-group group1 *創建物理端口組1

[*SwitchA-port-group-group1] group-member 10GE 3/0/0 to 10GE 3/0/3 *添加要堆疊的4個物理端口

[*SwitchA-port-group-group1] shutdown *加入堆疊端口之前先關閉物理端口

[*SwitchA-port-group-group1] quit

[*SwitchA] commit

[~SwitchA] interface stack-port 1 *進入堆疊端口

[*SwitchA-Stack-Port1] port member-group interface 10GE 3/0/0 to 10GE 3/0/3

[*SwitchA-Stack-Port1] quit

[*SwitchA] commit

[~SwitchA] port-group group1

[~SwitchA-port-group-group1] undo shutdown *加入堆疊端口后,開啟物理端口

[*SwitchA-port-group-group1] quit

[*SwitchA] commit

[~SwitchA] quit

4、檢查堆疊配置信息

# 上述配置完成后,建議用戶執行命令display stack configuration查看以上配置信息是否與預期的一致。以查看SwitchA為例。

<SwitchA> display stack configuration

Oper : Operation

Conf : Configuration

* : 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(LC) Disable *括號中重啟生效

---------------------------------------------------------------

   

Stack-Port Configuration:

--------------------------------------------------------------------------------

Stack-Port Member Ports

--------------------------------------------------------------------------------

Stack-Port1 10GE3/0/0 10GE3/0/1 10GE3/0/2 10GE3/0/3

--------------------------------------------------------------------------------

   

5、保存配置並使能設備堆疊功能

# 保存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 ente

rs the stack mode.

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 ente

rs the stack mode.

Current configuration will be converted to the next startup saved-configuration file of stack mode.

System will reboot. Continue? [Y/N]: y

   

6、驗證

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

<SwitchA> display stack

--------------------------------------------------------------------------------

MemberID Role MAC Priority DeviceType Description

--------------------------------------------------------------------------------

1 Master 006d-8835-2b00 150 CE12804

2 Standby 006d-8835-2c00 100 CE12804

--------------------------------------------------------------------------------

說明:

在檢查堆疊已成功建立后,建議用戶立即使用save命令保存堆疊系統配置。

<SwitchA> save

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


免責聲明!

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



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