华为交换机M-LAG配置 📅 2026/7/9 17:50:11 # 创建心跳专用VRF ip vpn-instance KeepAlive description For_DAD_KeepAlive ipv4-family route-distinguisher 3:1023 vpn-target 3:1023 both quit # STP防环配置桥MAC两台必须完全一致替换为实际统一MAC stp bridge-address {display system mac-address} stp mode rstp stp tc-protection stp bpdu-protection stp v-stp enable # 全局统一LACP系统参数两台必须完全一致保证下联设备LACP协商正常 lacp m-lag system-id 00e0-fc12-3456 lacp m-lag priority 100 主设备 dfs-group 1 priority 200 dual-active detection source ip 1.1.1.5 vpn-instance KeepAlive peer 1.1.1.6 m-lag up-delay 240 quit 备设备 dfs-group 1 priority 100 dual-active detection source ip 1.1.1.6 vpn-instance KeepAlive peer 1.1.1.5 m-lag up-delay 240 quit # 创建三层心跳聚合口 interface Eth-Trunk 1022 undo portswitch mode lacp-static lacp timeout fast ip binding vpn-instance KeepAlive ip address 1.1.1.5 255.255.255.252( # 【主备差异】主设备配1.1.1.5备设备配1.1.1.6) quit # 物理口加入聚合组 interface 40GE1/0/5 eth-trunk 1022 quit interface 40GE1/0/6 eth-trunk 1022 quit # interface 10ge1/0/47 eth-t 1023 quit interface 10ge1/0/48 eth-t 1023 quit # interface Eth-trunk 1023 mode lacp-static lacp timeout fast peer-link 1 port vlan exclude 1 # interface 10ge1/0/47 eth-t 1023 quit interface 10ge/0/48 eth-t 1023 quit 业务聚合口根据需求做即可display dfs-group 1 m-lag