问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

华为交换机堆叠的各项数值

创作时间:
作者:
@小白创作中心

华为交换机堆叠的各项数值

引用
搜狐
1.
https://m.sohu.com/a/795916855_99906077/?pvid=000115_3w_a

华为交换机堆叠技术通过将多台交换机组合成一个逻辑单元,可以实现更高的性能和可靠性。这种技术广泛应用于企业网络、数据中心等场景,能够提供更强大的数据处理能力和故障恢复能力。本文将详细介绍华为交换机堆叠的各项配置参数和具体操作步骤。

华为交换机堆叠的相关数值会根据具体的交换机型号、堆叠方式以及网络规划的不同而有所差异。以下是一些常见的数值和配置示例,供你参考:

示例一

假设使用两台华为交换机(如 S5735)进行堆叠,使用 xg0/0/1 和 xg0/0/2 口,配置如下:

SW1(switcha)堆叠配置:

  • 将物理接口加入到相应的逻辑接口:
(sw1)interface stack-port 0/1
(sw1-stack-port 0/1)port interface xgigabitethernet 0/0/1 enable
(sw1)interface stack-port 0/2
(sw1-stack-port 0/1)port interface xgigabitethernet 0/0/2 enable
  • 配置 sw1 的堆叠优先级为 200(最大 1-255,默认 100,越大越优先):
(sw1)stack slot 0 priority 200

SW2(switchb)堆叠配置:

  • 将物理接口加入到相应的逻辑接口:
(sw2)interface stack-port 0/1
(sw2-stack-port 0/1)port interface xgigabitethernet 0/0/1 enable
(sw2)interface stack-port 0/2
(sw2-stack-port 0/1)port interface xgigabitethernet 0/0/2 enable
  • 配置 sw2 的堆叠 id 为 1(数值为 0-8,所以此堆叠最多支持 9 台设备同时堆叠):
(sw2)stack slot 0 renumber 1

示例二

使用两台交换机(如 S6863),通过 10GE 业务口 1/0/5 和 1/0/6 进行堆叠,堆叠成员 id 规划为 switcha 是 1、switchb 是 2,堆叠优先级规划为 switcha 是 150、switchb 是 120,堆叠域编号(domain id)为 10,配置步骤如下:

配置 switcha 的堆叠优先级为 150,domain id 为 10。缺省情况下,设备的堆叠成员 id 为 1,此处无需配置堆叠成员 id。

<hw>system-view
(~hw)sysname switcha
(*hw)commit
(~switcha)stack
(*switcha-stack)stack member 1 priority 150
info:the operation will take effect after reboot.
(*switcha-stack)stack member 1 domain 10
info:the operation takes effect only after the save command is executed.
the device with a lower priority then will be reset in the stack merging scenario.
(*switcha-stack)quit
(*switcha)commit

配置 switchb 的堆叠成员 id 为 2,优先级为 120,domain id 为 10。由于 switchb 尚未重启,当前堆叠成员 id 为 1,需使用 member 1 来进行堆叠配置。

<hw>system-view
(~hw)sysname switchb
(*hw)commit
(~switchb)stack
(~switchb-stack)stack member 1 priority 120
info:the operation will take effect after reboot.
(~switchb-stack)stack member 1 domain 10
info:the operation takes effect only after the save command is executed.
the device with a lower priority then will be reset in the stack merging scenario.
(~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

将 switcha 的业务口 10ge1/0/5~10ge1/0/6 加入堆叠端口 1/1。

(~switcha)interface stack-port 1/1
(*switcha-stack-port 1/1)port member-group interface 10ge1/0/5 to 1/0/6
warning:after the configuration is complete,
1.the interface(s)(10ge1/0/5-1/0/6) 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-port 1/1)commit
(~switcha-stack-port 1/1)return

将 switchb 的业务口 10ge1/0/5~10ge1/0/6 加入堆叠端口 1/1。

(~switchb)interface stack-port 1/1
(*switchb-stack-port 1/1)port member-group interface 10ge1/0/5 to 1/0/6
warning:after the configuration is complete,
1.the interface(s)(10ge1/0/5-1/0/6) 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
(*switchb-stack-port 1/1)commit
(~switchb-stack-port 1/1)return

配置注意事项

在实际配置中,你需要注意以下几点:

  • 堆叠的成员交换机数量:一个堆叠系统最多可以包括 9 台交换机,但具体数量可能受到交换机型号和性能的限制,可参考相应型号的手册了解建议的堆叠台数。
  • 堆叠成员 id:取值范围通常为 0-8,用于标识堆叠中的各个交换机。
  • 堆叠优先级:数值范围一般为 1-255,默认值为 100,数值越大,交换机在选举主交换机时越具有优势。
  • 堆叠域编号(domain id):用于区分不同的堆叠系统,需确保不与网络中其他堆叠系统的域编号冲突。
  • 堆叠端口:根据交换机型号和业务需求,选择合适的业务口作为堆叠端口,并按照要求进行连线。

此外,不同型号的华为交换机在堆叠配置上可能会有一些细微差别,具体的数值和配置方法还需参考相应交换机的产品文档和手册。

在进行堆叠配置前,建议仔细阅读相关文档,并根据实际网络需求进行规划和配置。同时,确保交换机的软件版本一致,以避免堆叠失败。如果可能,在进行重要配置更改之前,先备份交换机的配置文件,以防万一出现问题可以进行恢复。

© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号