基于M-LAG組成的雙活系統(tǒng)提供了設(shè)備級的可靠性嘶是,將雙歸接入的兩臺設(shè)備在邏輯上虛擬成一臺設(shè)備。M-LAG提供了一個沒有環(huán)路的二層拓?fù)渫瑫r實現(xiàn)冗余備份囱晴。
多級M-LAG互聯(lián)可以在保證可靠性雀摘、提供鏈路利用率的同時擴(kuò)展雙歸接入的網(wǎng)絡(luò)規(guī)模,滿足客戶的需求噪径。
1
第一步【需求分析】
DS1和DS2、AS1和AS2交換機(jī)組建了多級M-LAG数初,DS1和DS2之間Eth-Trunk鏈路配置Peer-Link找爱,交互M-LAG同步報文。在M-LAG設(shè)備之間配置V-STP破除環(huán)路泡孩。同時车摄,在DS和CS設(shè)備上配置OSPF實現(xiàn)三層互通。
M-LAG配置要點:
以AS1和AS2組建M-LAG為例仑鸥,DS設(shè)備配置類似吮播。
2
第二步、在AS1和AS2上配置主接口的IP地址眼俊,且保證能夠三層互通意狠,專門用于M-LAG主備設(shè)備間心跳報文的傳輸。
<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
原作者:Ricky