华为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

猜你喜欢

转载自www.cnblogs.com/dsl146/p/10320114.html