跨设备链路聚合_路由与交换技术(华为设备)第五讲---链路聚合
前言:
隨著網(wǎng)絡(luò)規(guī)模不斷擴(kuò)大,用戶對(duì)骨干鏈路的帶寬和可靠性提出了越來越高的要求。在傳統(tǒng)技術(shù)中,常用更換高速率的接口板或更換支持高速率接口板的設(shè)備的方式來增加帶寬,但這種方案需要付出高額的費(fèi)用,而且不夠靈活。
采用鏈路聚合技術(shù)可以在不進(jìn)行硬件升級(jí)的條件下,通過將多個(gè)物理接口捆綁為一個(gè)邏輯接口,來達(dá)到增加鏈路帶寬的目的。在實(shí)現(xiàn)增大帶寬目的的同時(shí),鏈路聚合采用備份鏈路的機(jī)制,可以有效的提高設(shè)備之間鏈路的可靠性。
鏈路聚合概述:
鏈路聚合又稱以太網(wǎng)端口聚合(Aggregate-Port),是指在兩臺(tái)交換機(jī)之間,物理上將多個(gè)端口連接起來形成一個(gè)簡單的邏輯端口,將多條鏈路聚合成一條邏輯鏈路。其中,這個(gè)邏輯端口被稱為聚合端口(簡稱AP),可以增大鏈路帶寬,解決交換網(wǎng)絡(luò)中因帶寬引起的網(wǎng)絡(luò)瓶頸問題。多條物理鏈路之間能夠相互冗余備份,其中任意一條鏈路斷開,不會(huì)影響到其他鏈路正常轉(zhuǎn)發(fā)數(shù)據(jù)。
鏈路聚合技術(shù)優(yōu)點(diǎn):
(1)帶寬增加
(2)增加冗余
(3)負(fù)載均衡
(4)實(shí)現(xiàn)聚合端口流量平衡
數(shù)據(jù)流控制:
Eth-Trunk鏈路兩端相連的物理接口的數(shù)量、速率、雙工方式、流控方式必須一致。
實(shí)驗(yàn):
LSW1配置:(LSW1,LSW2配置一樣。)
sys
[Huawei]undo in e
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]undo negotiation auto--關(guān)閉自動(dòng)協(xié)商
[Huawei-Ethernet0/0/1]duplex full---配置全雙工方式
[Huawei-Ethernet0/0/1]speed 100---速率
Huawei-Ethernet0/0/1]q
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]undo negotiation auto
[Huawei-Ethernet0/0/2]duplex full
[Huawei-Ethernet0/0/2]speed 100
Huawei-Ethernet0/0/2]q
[Huawei]int eth-trunk 1
[Huawei-Eth-Trunk1]int e0/0/1
[Huawei-Ethernet0/0/1]eth-trunk 1
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]eth-trunk 1
[Huawei-Ethernet0/0/2]q
[Huawei]int eth-trunk 1
[Huawei-Eth-Trunk1]load-balance ?---查看負(fù)載均衡的策略
dst-ip According to destination IP hash arithmetic
dst-mac According to destination MAC hash arithmetic
src-dst-ip According to source/destination IP hash arithmetic
src-dst-mac According to source/destination MAC hash arithmetic
src-ip According to source IP hash arithmetic
src-mac According to source MAC hash arithmetic
[Huawei-Eth-Trunk1]load-balance src-ip---設(shè)置負(fù)載均衡的策略,默認(rèn)是S/D IP,LSW1和LSW2負(fù)載均衡策略一樣
[Huawei-Eth-Trunk1]dis eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
Ethernet0/0/1 Up 1
Ethernet0/0/2 Up 1
測試:PC1pingPC2
任意斷開一條鏈路:
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]shut
再次PC1pingPC2
可以看到仍然可以通信
總結(jié)
以上是生活随笔為你收集整理的跨设备链路聚合_路由与交换技术(华为设备)第五讲---链路聚合的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 析构函数_C++与Java的区
- 下一篇: arduino读取水位传感器的数据显示在