基於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
來源:簡書
著作權歸作者所有。商業轉載請聯絡作者獲得授權,非商業轉載請註明出處。