以下是根据您的要求重新绘制的华为/华三交换机堆叠拓扑图,使用标准的Mermaid语法确保正确显示:
graph LR
subgraph 堆叠逻辑设备(单一管理实体)
direction LR
A[Master] -->|堆叠链路| B(Slave 1)
A -->|堆叠链路| C(Slave 2)
B -->|堆叠链路| C
end
A --- D[接入设备1]
B --- E[接入设备2]
C --- F[接入设备3]
classDef master fill:#9f9,stroke:#333;
classDef slave fill:#eaeaea,stroke:#333;
classDef access fill:#aaf,stroke:#333;
class A master;
class B,C slave;
class D,E,F access;
物理连接(实线箭头):
逻辑表现(虚线方框):
对外连接(虚线箭头):
Eth-Trunk 1
包含Master和Slave的物理端口)设备角色:
Master
(绿色):主控设备,处理所有管理流量Slave
(灰色):备用设备,实时同步主设备配置接入设备
(蓝色):服务器/AP/PC等终端设备环形拓扑优势:
当任意一条堆叠链路故障(如A→B
断开)时,数据仍可通过A→C→B
路径传输,保障业务不中断。
说明:
Stack-Port
/ 华三:IRF-Port
)。Eth-Trunk
/AggregatePort
)。步骤1:硬件连接
SwitchA
⇄ SwitchB
⇄ SwitchC
⇄ SwitchA
(环形)步骤2:配置堆叠参数(以SwitchA为例)
# 启用堆叠功能
<SwitchA> system-view
[SwitchA] stack enable # 全局启用堆叠
# 配置堆叠端口(物理端口绑定逻辑堆叠口)
[SwitchA] interface stack-port 0/1 # 创建逻辑堆叠口1
[SwitchA-stack-port0/1] port member-group interface 10ge 1/0/1 # 绑定物理端口
[SwitchA-stack-port0/1] quit
[SwitchA] interface stack-port 0/2
[SwitchA-stack-port0/2] port member-group interface 10ge 1/0/2
[SwitchA-stack-port0/2] quit
# 设置堆叠成员参数
[SwitchA] stack slot 0 # 进入堆叠视图(每台需配置)
[SwitchA-stack] stack member 1 priority 200 # 设置优先级(主设备建议>150)
[SwitchA-stack] stack member 1 domain 10 # 堆叠域ID(组内一致)
[SwitchA-stack] quit
# 保存配置并重启
[SwitchA] save
[SwitchA] reboot # 所有成员重启后自动组堆叠
# 创建逻辑堆叠口并绑定业务口(以10G端口为例)
[SwitchA] interface stack-port 0/1
[SwitchA-stack-port0/1] port member-group interface 10ge 1/0/50 to 1/0/51 # 绑定两个端口做聚合
[SwitchA-stack-port0/1] quit
[SwitchA] display stack # 查看成员状态
MemberID Role MAC Priority Status
1 Master 00xx-xxxx-1111 200 Online
2 Standby 00xx-xxxx-2222 100 Online
3 Standby 00xx-xxxx-3333 100 Online
[SwitchA] display stack topology # 检查物理连接拓扑
步骤1:物理连接
SwitchA
⇄ SwitchB
⇄ SwitchC
⇄ SwitchA
(环形)步骤2:配置IRF参数(以SwitchA为例)
# 配置成员编号(必须重启生效)
<SwitchA> system-view
[SwitchA] irf member 1 renumber 1 # 设置成员编号为1
[SwitchA] save
[SwitchA] reboot # 重启生效编号
# 绑定物理端口到IRF逻辑口
[SwitchA] irf-port 1/1 # 创建IRF端口1/1(格式:成员ID/端口号)
[SwitchA-irf-port1/1] port group interface ten-gigabitethernet 1/0/1 # 绑定物理端口
[SwitchA-irf-port1/1] quit
[SwitchA] irf-port 1/2
[SwitchA-irf-port1/2] port group interface ten-gigabitethernet 1/0/2
[SwitchA-irf-port1/2] quit
# 设置优先级(主设备选举)
[SwitchA] irf member 1 priority 32 # 优先级范围1~32(默认1,值大优先)
# 激活IRF配置
[SwitchA] irf-port-configuration active # 关键!使配置生效
# 将业务口加入IRF逻辑口(绑定两个端口做聚合)
[SwitchA] irf-port 1/1
[SwitchA-irf-port1/1] port group interface ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50
[SwitchA-irf-port1/1] quit
[SwitchA] display irf # 查看成员状态
MemberID Role Priority MAC Status
1 Master 32 xxxx-xxxx-1111 Active
2 Standby 1 xxxx-xxxx-2222 Active
3 Standby 1 xxxx-xxxx-3333 Active
[SwitchA] display irf topology # 检查物理连接
华为配置:
# 使用直连检测(推荐独立链路)
[SwitchA] interface vlanif 10
[SwitchA-Vlanif10] mad detect mode direct # 启用直连MAD
[SwitchA-Vlanif10] quit
华三配置:
# 启用LACP MAD检测
[SwitchA] irf mad enable mode lacp
reset mad detect
(华为)或 irf mad restore
(华三)。项目 | 华为Stack | 华三IRF |
---|---|---|
版本一致性 | 所有成员必须同版本 | 同版本且兼容IRF版本 |
拓扑限制 | 环形≤9台,链形≤8台 | 环形≤4台,链形≤2台(型号相关) |
MAD检测链路 | 独立三层链路或Eth-Trunk | 独立链路或聚合口 |
升级策略 | 先备机后主机,stack upgrade 命令 |
irf update 统一升级 |
堆叠带宽 | 专用卡≥480Gbps,业务口依赖端口数 | 专用卡≥640Gbps,业务口聚合容量 |
✅ 操作铁律:
- 配置前拔掉堆叠线,待所有设备配置完成后再连接(防脑裂)。
- 首次部署后使用
display stack/irf
验证状态,确保仅 1台Master。- 业务口堆叠时,禁用该端口的其他业务配置(如VLAN/STP)。
通过以上配置,可快速构建高可靠堆叠系统。实际部署时请结合型号文档(如华为CE系列与华三S6850配置略有差异)。