华为交换机M-LAG配置

基于M-LAG组成的双活系统提供了设备级的可靠性,将双归接入的两台设备在逻辑上虚拟成一台设备。M-LAG提供了一个没有环路的二层拓扑同时实现冗余备份。

多级M-LAG互联可以在保证可靠性、提供链路利用率的同时扩展双归接入的网络规模,满足客户的需求。

 

方法/步骤

1

第一步【需求分析】

DS1和DS2、AS1和AS2交换机组建了多级M-LAG,DS1和DS2之间Eth-Trunk链路配置Peer-Link,交互M-LAG同步报文。在M-LAG设备之间配置V-STP破除环路。同时,在DS和CS设备上配置OSPF实现三层互通。

M-LAG配置要点:

以AS1和AS2组建M-LAG为例,DS设备配置类似。

2

第二步、在AS1和AS2上配置主接口的IP地址,且保证能够三层互通,专门用于M-LAG主备设备间心跳报文的传输。

<AS1> system-view

[~AS1] interface meth 0/0/0

[~AS1-MEth0/0/0] ip address 10.1.1.1 24

[*AS1-MEth0/0/0] quit

---------------------------------------------

<AS2> system-view

[~AS2] interface meth 0/0/0

[~AS2-MEth0/0/0] ip address 10.1.1.2 24

[*AS2-MEth0/0/0] quit

3

第三步、在AS1和AS2上配置M-LAG的DFS Group。

[*AS1] dfs-group 1

[*AS1-dfs-group-1] source ip 10.1.1.1

[*AS1-dfs-group-1] priority 150

[*AS1-dfs-group-1] quit

--------------------------------------------

[*AS2] dfs-group 1

[*AS2-dfs-group-1] source ip 10.1.1.2

[*AS2-dfs-group-1] priority 120

[*AS2-dfs-group-1] quit

4

第四步、在AS1和AS2上配置M-LAG的Peer-Link

[*AS1] interface eth-trunk 0

[*AS1-Eth-Trunk0] trunkport 10ge 1/0/3

[*AS1-Eth-Trunk0] trunkport 10ge 1/0/4

[*AS1-Eth-Trunk0] mode lacp-static

[*AS1-Eth-Trunk0] peer-link 1

[*AS1-Eth-Trunk0] quit

--------------------------------------------------

[*AS2] interface eth-trunk 0

[*AS2-Eth-Trunk0] trunkport 10ge 1/0/3

[*AS2-Eth-Trunk0] trunkport 10ge 1/0/4

[*AS2-Eth-Trunk0] mode lacp-static

[*AS2-Eth-Trunk0] peer-link 1

[*AS2-Eth-Trunk0] quit

5

第五步、在AS1和AS2上配置M-LAG的成员口

[*AS1] vlan batch 11

[*AS1] interface eth-trunk 20

[*AS1-Eth-Trunk20] mode lacp-static

[*AS1-Eth-Trunk20] port link-type trunk

[*AS1-Eth-Trunk20] port trunk allow-pass vlan 11

[*AS1-Eth-Trunk20] trunkport 10ge 1/0/1 to 1/0/2

[*AS1-Eth-Trunk20] dfs-group 1 m-lag 1

[*AS1-Eth-Trunk20] quit

[*AS1] interface eth-trunk 30

[*AS1-Eth-Trunk30] mode lacp-static

[*AS1-Eth-Trunk30] port link-type trunk

[*AS1-Eth-Trunk30] port trunk allow-pass vlan 11

[*AS1-Eth-Trunk30] trunkport 10ge 1/0/5 to 1/0/6

[*AS1-Eth-Trunk30] dfs-group 1 m-lag 2

[*AS1-Eth-Trunk30] quit

[*AS1] commit

--------------------------------------------------------------------

[*AS2] vlan batch 11

[*AS2] interface eth-trunk 20

[*AS2-Eth-Trunk20] mode lacp-static

[*AS2-Eth-Trunk20] port link-type trunk

[*AS2-Eth-Trunk20] port trunk allow-pass vlan 11

[*AS2-Eth-Trunk20] trunkport 10ge 1/0/1 to 1/0/2

[*AS2-Eth-Trunk20] dfs-group 1 m-lag 1

[*AS2-Eth-Trunk20] quit

[*AS2] interface eth-trunk 30

[*AS2-Eth-Trunk30] mode lacp-static

[*AS2-Eth-Trunk30] port link-type trunk

[*AS2-Eth-Trunk30] port trunk allow-pass vlan 11

[*AS2-Eth-Trunk30] trunkport 10ge 1/0/5 to 1/0/6

[*AS2-Eth-Trunk30] dfs-group 1 m-lag 2

[*AS2-Eth-Trunk30] quit

[*AS2] commit

END

 

 

https://blog.csdn.net/Sevel7/article/details/125594853



作者:文强_bd3e
链接:https://www.jianshu.com/p/92f17e0e52a7
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted @   技术颜良  阅读(911)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
历史上的今天:
2022-04-04 网络架构拓扑
2022-04-04 ansible --help -k, --ask-pass ask for connection password
2022-04-04 从 time.Ticker 分析 go 的定时器
2022-04-04 maven更新包命令-U
2022-04-04 Go 的位操作
2018-04-04 split-brain 脑裂问题(Keepalived)
点击右上角即可分享
微信分享提示