链路聚合

注意事项

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

  2. 二层聚合口成员必须为二层口,三层聚合口成员必须为三层口。

  3. 最多可以加入8个成员端口。

  4. 加入到聚合口的接口必须是hybrid接口类型。

  5. 不能嵌套使用聚合。

  6. 另一个Eth-Trunk口,必须先把该以太接口从当前所属的Eth-Trunk口中删除。

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

  8. 位于不同接口板(LPU)上的以太口可以加入同一个Eth-Trunk口。如果一个对端接口直接和本端Eth-Trunk口的一个成员口相连,该对端接口也必须加入一个Eth-Trunk口。否则两端无法通信。

  9. 如果成员口的速率不同,速率较低的接口可能会拥塞,报文可能会被丢弃。

  10. 接口加入Eth-Trunk口后,Eth-Trunk口学习MAC地址,成员口不再学习。

手工负载分担方式

手工负载分担方式下全部活动接口都参与数据转发,分担负载流量,某条链路故障,剩余链路自动进行负载分担。

华为设备系统默认使用手工负载分担方式(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

设置优先级,配置期望的活动链路数量

[SW3]lacp priority 100   #设置系统lacp权重
[SW3]interface Eth-Trunk 1
[SW3-Eth-Trunk1]max active-linknumber 2   #设置期望的活动链路
[SW3-Eth-Trunk1]qu
[SW3]interface GigabitEthernet 0/0/1
[SW3-GigabitEthernet0/0/1]lacp priority 100  #设置端口的lacp优先级
[SW3-GigabitEthernet0/0/1]qu
[SW3]interface GigabitEthernet 0/0/2
[SW3-GigabitEthernet0/0/2]lacp priority 100  #设置端口的lacp优先级
[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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 199,175评论 5 466
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 83,674评论 2 376
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 146,151评论 0 328
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,597评论 1 269
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,505评论 5 359
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 47,969评论 1 275
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,455评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,118评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,227评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,213评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,214评论 1 328
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,928评论 3 316
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,512评论 3 302
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,616评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,848评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,228评论 2 344
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,772评论 2 339

推荐阅读更多精彩内容

  • 链路聚合,是将多个物理二层链路捆绑为一个逻辑二层链路的技术。不同的厂商有不同的叫法: Zte:Smartgroup...
    kummerwu阅读 20,848评论 0 12
  • ​ 链路聚合是在两个设备间使用多个物理链路创建一个逻辑链路的功能。这种方式允许物理链路间共享负载。交换机网络中使用...
    杀破魂阅读 627评论 0 0
  • 最近碰到的一个诡异的案例,让我对链路聚合有了更深入的理解,可能对你也会有所启发。 问题 需要从多台相机采集图片传给...
    萝卜头实验室阅读 3,633评论 1 3
  • 驾驭习惯 《学习之道》--(美)芭芭拉.奥克利 习惯有好有坏,他可以帮我们节省力气,为我们的大脑腾出空间进...
    看今朝001阅读 269评论 2 1
  • 效率,系统 1.复习 三小时 ! 2.Net日常工作 8小时! *今天遇到最大的一个问题就是效率的问题,从中午两...
    橘子侠阅读 135评论 0 0