鏈路聚合

注意事項

  1. 只能刪除不包含任何成員接口的聚合端口。

  2. 二層聚合口成員必須為二層口,三層聚合口成員必須為三層口。

  3. 最多可以加入8個成員端口。

  4. 加入到聚合口的接口必須是hybrid接口類型。

  5. 不能嵌套使用聚合。

  6. 另一個Eth-Trunk口,必須先把該以太接口從當(dāng)前所屬的Eth-Trunk口中刪除。

  7. 一個Eth-Trunk口的成員口類型必須相同。例如,一個快速以太口(FE口)和一個千兆以太口(GE口)不能加入同一個Eth-Trunk。

  8. 位于不同接口板(LPU)上的以太口可以加入同一個Eth-Trunk口。如果一個對端接口直接和本端Eth-Trunk口的一個成員口相連,該對端接口也必須加入一個Eth-Trunk口。否則兩端無法通信。

  9. 如果成員口的速率不同,速率較低的接口可能會擁塞,報文可能會被丟棄。

  10. 接口加入Eth-Trunk口后,Eth-Trunk口學(xué)習(xí)MAC地址,成員口不再學(xué)習(xí)。

手工負(fù)載分擔(dān)方式

手工負(fù)載分擔(dān)方式下全部活動接口都參與數(shù)據(jù)轉(zhuǎn)發(fā),分擔(dān)負(fù)載流量,某條鏈路故障,剩余鏈路自動進(jìn)行負(fù)載分擔(dān)。

華為設(shè)備系統(tǒng)默認(rèn)使用手工負(fù)載分擔(dān)方式(mode manual load-balance)。

二層鏈路聚合
TIM截圖20181119153531.jpg

在S1上面配置DHCP

[S1]dhcp enable
[S1]interface Vlanif 1
[S1-Vlanif1]ip address 192.168.100.1 24
[S1-Vlanif1]dhcp select interface
[S1-Vlanif1]dhcp server dns-list 192.168.100.100
[S1-Vlanif1]dhcp server excluded-ip-address 192.168.100.100 192.168.100.254

pc1 獲取到的ip地址為192.168.100.99

PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe35:2667
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.100.99
Subnet mask.......................: 255.255.255.0
Gateway...........................: 192.168.100.1
Physical address..................: 54-89-98-35-26-67
DNS server........................: 192.168.100.100

配置鏈路聚合
在S1配置

[S1]interface Eth-Trunk 1
[S1-Eth-Trunk1]qu
[S1]interface GigabitEthernet 0/0/1
[S1-GigabitEthernet0/0/1]eth-trunk 1
[S1-GigabitEthernet0/0/1]qu
[S1]interface GigabitEthernet 0/0/2
[S1-GigabitEthernet0/0/2]eth-trunk 1
[S1-GigabitEthernet0/0/2]qu
[S1]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 2G, Current BW: 2G, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc6b-54ea
Current system time: 2018-11-19 15:46:11-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/1          UP          1
GigabitEthernet0/0/2          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2

在S2配置

[R2]interface Eth-Trunk 1
[R2-Eth-Trunk1]qu
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]et 
[R2-GigabitEthernet0/0/1]eth-trunk 1
[R2-GigabitEthernet0/0/1]qu  
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/2]eth-trunk 1
[R2-GigabitEthernet0/0/2]qu
[R2]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 2G, Current BW: 2G, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc2a-6cd0
Current system time: 2018-11-19 15:55:46-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/1          UP          1
GigabitEthernet0/0/2          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2
三層鏈路聚合
TIM截圖20181119162347.jpg

在R1上配置

[R1]interface Eth-Trunk 1
[R1-Eth-Trunk1]undo portswitch
[R1-Eth-Trunk1]ip address 192.168.100.1 24
[R1-Eth-Trunk1]qu
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]eth-trunk 1
[R1-GigabitEthernet0/0/0]qu
[R1]interface GigabitEthernet 0/0/1 
[R1-GigabitEthernet0/0/1]eth-trunk 1
[R1-GigabitEthernet0/0/1]qu
[R1]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2018-11-19 16:29:06 UTC-08:00
Description:HUAWEI, AR Series, Eth-Trunk1 Interface
Route Port,Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW
: 2G, The Maximum Transmit Unit is 1500
Internet Address is 192.168.100.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc48-7d06
Current system time: 2018-11-19 16:29:29-08:00
Input: 0 packets, 0 bytes
  Unicast:                  0,  Multicast:                0
  Broadcast:                0,  Discard:                  0
  Total Error:              0

Output: 1 packets, 60 bytes
  Unicast:                  0,  Multicast:                0
  Broadcast:                1,  Discard:                  0
  Total Error:              0

    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/0          UP          1
GigabitEthernet0/0/1          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2

在R2上配置

[R2]interface Eth-Trunk 1
[R2-Eth-Trunk1]undo portswitch 
[R2-Eth-Trunk1]ip address 192.168.100.2 24
[R2-Eth-Trunk1]qu
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]eth-trunk 1
[R2-GigabitEthernet0/0/0]qu
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]eth-trunk 1
[R2-GigabitEthernet0/0/1]qu
[R2]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : DOWN
Description:HUAWEI, AR Series, Eth-Trunk1 Interface
Route Port,Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW
: 2G, The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fcfb-0258
Current system time: 2018-11-19 16:32:06-08:00
Input: 0 packets, 0 bytes
  Unicast:                  0,  Multicast:                0
  Broadcast:                0,  Discard:                  0
  Total Error:              0

Output: 0 packets, 0 bytes
  Unicast:                  0,  Multicast:                0
  Broadcast:                0,  Discard:                  0
  Total Error:              0

    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/0          UP          1
GigabitEthernet0/0/1          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2

LACP 模式

lacp模式支持鏈路備份

二層鏈路聚合

在SW3上配置

[SW3]interface Eth-Trunk 1
[SW3-Eth-Trunk1]mode lacp-static 
[SW3-Eth-Trunk1]qu
[SW3-GigabitEthernet0/0/1]eth-trunk 1
[SW3-GigabitEthernet0/0/1]qu
[SW3]interface GigabitEthernet 0/0/1
[SW3-GigabitEthernet0/0/1]eth-trunk 1
[SW3-GigabitEthernet0/0/1]qu
[SW3]interface GigabitEthernet 0/0/2
[SW3-GigabitEthernet0/0/2]eth-trunk 1
[SW3-GigabitEthernet0/0/2]qu
[SW3]interface GigabitEthernet 0/0/3
[SW3-GigabitEthernet0/0/3]eth-trunk 1
[SW3-GigabitEthernet0/0/3]qu
[SW3]display interface Eth-Trunk 1
Eth-Trunk1 current state : DOWN
Line protocol current state : DOWN
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 3G, Current BW: 0M, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc7e-07a4
Current system time: 2018-11-19 17:19:02-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/1          DOWN        1
GigabitEthernet0/0/2          DOWN        1
GigabitEthernet0/0/3          DOWN        1
-----------------------------------------------------
The Number of Ports in Trunk : 3
The Number of UP Ports in Trunk : 0

在SW4上面配置

[SW4]interface Eth-Trunk 1
[SW4-Eth-Trunk1]mode lacp-static 
[SW4-Eth-Trunk1]qu
[SW4]interface GigabitEthernet 0/0/1
[SW4-GigabitEthernet0/0/1]eth-trunk 1
[SW4-GigabitEthernet0/0/1]qu
[SW4]interface GigabitEthernet 0/0/2
[SW4-GigabitEthernet0/0/2]eth-trunk 1
[SW4-GigabitEthernet0/0/2]qu
[SW4]interface GigabitEthernet 0/0/3
[SW4-GigabitEthernet0/0/3]eth-trunk 1
[SW4-GigabitEthernet0/0/3]qu
[SW4]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 3G, Current BW: 3G, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc0a-74cd
Current system time: 2018-11-19 17:20:57-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/1          UP          1
GigabitEthernet0/0/2          UP          1
GigabitEthernet0/0/3          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 3
The Number of UP Ports in Trunk : 3

設(shè)置優(yōu)先級,配置期望的活動鏈路數(shù)量

[SW3]lacp priority 100   #設(shè)置系統(tǒng)lacp權(quán)重
[SW3]interface Eth-Trunk 1
[SW3-Eth-Trunk1]max active-linknumber 2   #設(shè)置期望的活動鏈路
[SW3-Eth-Trunk1]qu
[SW3]interface GigabitEthernet 0/0/1
[SW3-GigabitEthernet0/0/1]lacp priority 100  #設(shè)置端口的lacp優(yōu)先級
[SW3-GigabitEthernet0/0/1]qu
[SW3]interface GigabitEthernet 0/0/2
[SW3-GigabitEthernet0/0/2]lacp priority 100  #設(shè)置端口的lacp優(yōu)先級
[SW3-GigabitEthernet0/0/2]qu
[SW3]display interface Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 3G, Current BW: 2G, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc7e-07a4
Current system time: 2018-11-19 17:35:30-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/1          UP          1
GigabitEthernet0/0/2          UP          1
GigabitEthernet0/0/3          DOWN        1
-----------------------------------------------------
The Number of Ports in Trunk : 3
The Number of UP Ports in Trunk : 2

三層鏈路聚合
TIM截圖20181120103907.jpg

在R3上面配置

[R3]interface Eth-Trunk 1
[R3-Eth-Trunk1]undo portswitch
[R3-Eth-Trunk1]ip address 192.168.100.1 24
[R3-Eth-Trunk1]mode lacp-static
[R3-Eth-Trunk1]max active-linknumber 1
[R3-Eth-Trunk1]qu
[R3]lacp priority 100
[R3]interface GigabitEthernet 0/0/0 
[R3-GigabitEthernet0/0/0]eth-trunk 1
[R3-GigabitEthernet0/0/0]lacp priority 100
[R3-GigabitEthernet0/0/0]qu
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]eth-trunk 1
[R3-GigabitEthernet0/0/1]lacp priority 100
[R3-GigabitEthernet0/0/1]qu

在R4上面配置

[R4]interface Eth-Trunk 1
[R4-Eth-Trunk1]undo portswitch
[R4-Eth-Trunk1]ip address 192.168.100.4 24
[R4-Eth-Trunk1]mode lacp-static
[R4-Eth-Trunk1]qu
[R4]interface GigabitEthernet 0/0/0 
[R4-GigabitEthernet0/0/0]eth-trunk 1
[R4-GigabitEthernet0/0/0]qu
[R4]interface GigabitEthernet 0/0/1
[R4-GigabitEthernet0/0/1]eth-trunk 1
[R4-GigabitEthernet0/0/1]qu
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 鏈路聚合,是將多個物理二層鏈路捆綁為一個邏輯二層鏈路的技術(shù)。不同的廠商有不同的叫法: Zte:Smartgroup...
    kummerwu閱讀 21,288評論 0 12
  • ? 鏈路聚合是在兩個設(shè)備間使用多個物理鏈路創(chuàng)建一個邏輯鏈路的功能。這種方式允許物理鏈路間共享負(fù)載。交換機(jī)網(wǎng)絡(luò)中使用...
    殺破魂閱讀 691評論 0 0
  • 最近碰到的一個詭異的案例,讓我對鏈路聚合有了更深入的理解,可能對你也會有所啟發(fā)。 問題 需要從多臺相機(jī)采集圖片傳給...
    蘿卜頭實(shí)驗室閱讀 3,838評論 1 3
  • 駕馭習(xí)慣 《學(xué)習(xí)之道》--(美)芭芭拉.奧克利 習(xí)慣有好有壞,他可以幫我們節(jié)省力氣,為我們的大腦騰出空間進(jìn)...
    看今朝001閱讀 294評論 2 1
  • 效率,系統(tǒng) 1.復(fù)習(xí) 三小時 ! 2.Net日常工作 8小時! *今天遇到最大的一個問題就是效率的問題,從中午兩...
    橘子俠閱讀 176評論 0 0

友情鏈接更多精彩內(nèi)容