华为M-LAG配置小实验

  1. 配置DeviceA、DeviceB、DeviceC建立M-LAG系统。
    配置DeviceB和DeviceC的V-STP。
    配置DeviceB和DeviceC的DFS Group并绑定管理网口的IP地址。
    配置DeviceB和DeviceC之间的peer-link链路。
    配置DeviceB和DeviceC的M-LAG成员接口,DeviceA的Eth-Trunk接口。
    配置DeviceB和DeviceC的Monitor Link功能。
    说明
    Monitor Link将上行接口和下行接口关联,避免因上行链路故障导致用户侧流量无法
    转发而丢弃。
    在华为 CloudEngine (CE) 数据中心交换机上配置 M-LAG(跨设备链路聚合),核心逻辑分为四个部分:心跳线 (Keepalive)、控制组 (DFS Group)、数据同步线 (Peer-link) 以及 下行成员接口 (M-LAG Interface)。

以下是一套标准的 M-LAG 配置步骤与完整命令。

步骤
步骤配置DeviceA、DeviceB、DeviceC建立M-LAG系统。
1.
配置DeviceB和DeviceC的V-STP。

配置DeviceB。DeviceC的配置与DeviceB类似,这里不再赘述。

<HUAWEI> system-view
\~HUAWEI sysname DeviceB
\*HUAWEI commit
\~DeviceBstp mode rstp
\*DeviceBstp v-stp enable
\*DeviceBcommit
2.
配置DeviceB和DeviceC的DFS Group并绑定管理网口的IP地址。
DeviceB和DeviceC管理网口需要保证能够三层互通。

配置DeviceB。DeviceC的配置与DeviceB类似,这里不再赘述。

\~DeviceB dfs-group 1
\*DeviceB-dfs-group-1 dual-active detection source ip 10.200.1.1 peer 10.200.2.1
\*DeviceB-dfs-group-1authentication-mode hmac-sha256 password YsHsjx_202206
\*DeviceB-dfs-group-1 quit
\*DeviceB commit
3.
配置DeviceB和DeviceC之间的peer-link链路。

配置DeviceB。DeviceC的配置与DeviceB类似,这里不再赘述。

\~DeviceB interface eth-trunk 1
\*DeviceB-Eth-Trunk1 mode lacp-static
\*DeviceB-Eth-Trunk1 trunkport 100ge 1/0/4
\*DeviceB-Eth-Trunk1 trunkport 100ge 1/0/5
\*DeviceB-Eth-Trunk1 peer-link 1
\*DeviceB-Eth-Trunk1 quit
\*DeviceB commit
4.
配置DeviceB和DeviceC的M-LAG成员接口,DeviceA的Eth-Trunk接口。

配置DeviceB。DeviceC的配置与DeviceB类似,这里不再赘述。

\~DeviceB interface eth-trunk 10
\*DeviceB-Eth-Trunk10 mode lacp-static
\*DeviceB-Eth-Trunk10 port link-type trunk
\*DeviceB-Eth-Trunk10 lacp mixed-rate link enable
\*DeviceB-Eth-Trunk10 trunkport 100ge 1/0/2
\*DeviceB-Eth-Trunk10 trunkport 100ge 1/0/3
\*DeviceB-Eth-Trunk10 dfs-group 1 m-lag 1
\*DeviceB-Eth-Trunk10 quit
\*DeviceB commit

配置DeviceA。

<HUAWEI> system-view
\~HUAWEI sysname DeviceA
\*HUAWEI commit
\~DeviceA interface eth-trunk 10
\*DeviceA-Eth-Trunk10 mode lacp-static
\*DeviceA-Eth-Trunk10 port link-type trunk
\*DeviceA-Eth-Trunk10 trunkport 100ge 1/0/1 to 1/0/4
\*DeviceA-Eth-Trunk10 quit
\*DeviceA commit
5.
配置DeviceB和DeviceC的Monitor Link功能。

配置DeviceB。DeviceC的配置与DeviceB类似,这里不再赘述。

\~DeviceB monitor-link group 1
\*DeviceB-mtlk-group1 port 100ge 1/0/1 uplink
\*DeviceB-mtlk-group1 port eth-trunk 10 downlink 1
\*DeviceB-mtlk-group1 quit
\*DeviceB commit
tip:

  • 在真实数据中心环境(尤其是二层网络)中,为了防止 M-LAG 分裂引发二层环路,还需要配置 V-STP (虚拟生成树) 或将全局 MAC 地址设置一致。

  • 对接下端设备(服务器或接入交换机)时,下端设备只需将接口配置为普通的 LACP 动态链路聚合即可,它会认为自己连接的是同一台交换机。

相关推荐
物联网软硬件开发-轨物科技10 小时前
【轨物洞见】什么是产品碳足迹(PCF)?ISO 14067 计算方法与应用场景深度解读
大数据·网络·人工智能
姜鱼问生13 小时前
docker exec 排查容器问题:从日志到进程
运维·网络·数据库·docker·容器
qq_5434478213 小时前
DNS解析怎么排查?故障处理与运维实用手册
运维·服务器·网络·php
威胁猎人15 小时前
网络水军产业风险研究报告
网络
独钓寒江雨15 小时前
路由器单MAC多IP支持功能未开启致业务异常
网络·数通·故障·中兴·m6000·单mac多ip
桀人15 小时前
USART帧格式
网络·stm32·单片机·嵌入式硬件
2301_7779983416 小时前
TCP粘包问题:原理、解决方法与UDP为什么没有粘包
网络
马六六i16 小时前
市面上专业的IP驱动产业新场景新工具哪家好
网络·人工智能·python·tcp/ip
星恒讯工业路由器16 小时前
工信部调整超宽带设备频段:7-9GHz为5G/6G腾频谱,工业UWB设备面临合规升级
网络·物联网·5g·无线通信·5g专网·超宽带uwb·频谱管理