华为 您所在的位置:网站首页 华为交换机堆叠失效怎么处理 华为

华为

2023-06-14 21:09| 来源: 网络整理| 查看: 265

一、组网图形

图1 配置两台交换机堆叠组网图

在这里插入图片描述

二、组网需求

在一个新建的企业网络中,要求接入设备具有充足的端口数目,并且希望网络结构简单,易于配置和管理。 如图1所示,接入交换机SwitchA和SwitchB组成堆叠系统。

三、配置思路

采用如下的思路配置:

提前规划好堆叠方案。按照前期的规划,完成各台交换机的堆叠配置,包括堆叠成员ID、堆叠优先级、堆叠域编号、堆叠端口等。完成后保存配置并将交换机下电。连接交换机之间的堆叠线缆,然后将交换机上电。检查堆叠组建是否成功。 四、操作步骤

1. 提前规划堆叠方案。 (1)规划SwitchA的堆叠成员ID为1,SwitchB的成员ID为2。 (2)规划SwitchA作为主交换机,其堆叠优先级最高,为150。SwitchB的堆叠优先级为120。 (3) 规划堆叠域编号(Domain ID)为10,不与网络中其他堆叠系统的域编号冲突。 (4) 规划SwitchA和SwitchB用于堆叠连接的端口为10GE1/0/1~10GE1/0/4。

2. 配置堆叠属性。 配置SwitchA的堆叠优先级为150,Domain ID为10。缺省情况下,设备的堆叠成员ID为1。此处默认SwitchA的堆叠成员ID为1,无需配置。

system-view #进入系统视图 [~HUAWEI] sysname SwitchA #交换机命名为SwitchA [*HUAWEI] commit #提交配置 [~SwitchA] stack #进入堆叠管理视图 [~SwitchA-stack] stack member 1 priority 150 #配置堆叠成员设备的堆叠成员ID为1(默认为0),优先级为150(默认为100) [*SwitchA-stack] stack member 1 domain 10 #配置堆叠域为10 [*SwitchA-stack] quit #退出堆叠管理视图 [*SwitchA] commit

配置SwitchB的堆叠成员ID为2,优先级为120,Domain ID为10。

system-view [~HUAWEI] sysname SwitchB [*HUAWEI] commit [~SwitchB] stack [~SwitchB-stack] stack member 1 priority 120 [*SwitchB-stack] stack member 1 domain 10 [*SwitchB-stack] stack member 1 renumber 2 inherit-config Warning: The stack configuration of member ID 1 will be inherited to member ID 2 after the device resets. Continue? [Y/N]: y [*SwitchB-stack] quit [*SwitchB] commit 说明: 因SwitchB尚未重启,当前堆叠成员ID还是1,所以此时仍使用member 1来进行堆叠配置。 因为修改堆叠成员ID时指定了inherit-config参数,所以SwitchB重启后会继承member 1的堆叠配置;如果不指定inherit-config参数,那么SwitchB重启后不会继承member 1的堆叠配置,需要使用member 2重新进行堆叠配置。

3. 配置堆叠端口。 将SwitchA的业务口10GE1/0/1~10GE1/0/4加入堆叠端口1/1。

[~SwitchA] interface stack-port 1/1 #创建堆叠端口 [*SwitchA-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/4 #向堆叠端口中添加成员端口。 Warning: The interface(s) (10GE1/0/1-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. After the configuration is complete, these interfaces may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces. [Y/N]: y [*SwitchA-Stack-Port1/1] commit [~SwitchA-Stack-Port1/1] return 被配置为堆叠物理成员端口后,端口下会自动配置port crc-statistics trigger error-down。

将SwitchB的业务口10GE1/0/1~10GE1/0/4加入堆叠端口1/1。

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

4. 检查堆叠配置信息。 上述配置完成后,执行命令display stack configuration查看配置是否与规划的一致,如果不一致,需要修改配置。以查看SwitchA为例。

<SwitchA> display stack configuration 在这里插入图片描述

5. 保存配置后将设备下电。 保存SwitchA和SwitchB的配置,然后将设备下电。SwitchB的配置与SwitchA相同,略。

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

6. 按照前期规划及配置,连接堆叠线缆,线缆连接建议交叉连接,比如A交换机的1端口2端口分别对应B交换机的2端口1端口。线缆连接完成后将设备上电。 建议先将高优先级设备上电,以使其先完成启动,优先竞争为主交换机。

7. 验证配置结果。 通过Console口或管理网口登录堆叠系统,使用命令display stack查看堆叠是否组建成功。当通过管理网口登录时,需要使用主交换机的IP地址。

<SwitchA> display stack 在这里插入图片描述

如上所示,显示两台交换机的信息,表示堆叠建立成功,且主交换机为成员ID为1的设备,即SwitchA。

查看堆叠系统拓扑信息。 <SwitchA> display stack topology 在这里插入图片描述

8. 保存堆叠系统配置。 说明: 在检查堆叠已成功建立后,建议用户立即使用save命令保存堆叠系统配置。 save Warning: The current configuration will be written to the device. Continue? [Y/N]: y

转载于:https://www.cnblogs.com/pipci/p/8040327.html



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有