3.3 实验三:以太网链路聚合实验

一、实验介绍:

链路聚的作用:
1、增加带宽
2、提高可靠性
3、负载分担

特点:

  1. 默认最多支持8接接口和最少1接口。可以修改 。整数形式,板载GE交换平面取值范围是18,缺省值为8;10GE交换平面取值范围是116,缺省值为16。
  2. 不支持嵌套
  3. 对方的速率、带宽、双工方式必须相同。

二、实验拓扑:

在这里插入图片描述

三、实验目的:

 掌握使用手动模式配置链路聚合的方法
 掌握使用静态 LACP 模式配置链路聚合的方法
 掌握控制静态 LACP 模式下控制活动链路的方法
 掌握静态 LACP 的部分特性的配置

四、配置步骤:

步骤 1 掌握使用手动模式配置链路聚合的方法

[Huawei]interface  Eth-Trunk 1
[Huawei-Eth-Trunk1]mode  manual  load-balance 
[Huawei-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3
[Huawei-Eth-Trunk1]display  eth-trunk  1
Eth-Trunk1's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP         
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 3                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
GigabitEthernet0/0/1          Up          1      
GigabitEthernet0/0/2          Up          1      
GigabitEthernet0/0/3          Up          1     

步骤 2 掌握使用静态 LACP 模式配置链路聚合的方法

[Huawei]interface  Eth-Trunk 1
[Huawei-Eth-Trunk1]mode lacp-static

[Huawei-Eth-Trunk1]
[Huawei-Eth-Trunk1]display int Eth-Trunk 1
Eth-Trunk1 current state : UP
Line protocol current state : UP 
Description: #可以根描述
Switch Port, PVID :    1, #vlan 1
Hash arithmetic : According to SIP-XOR-DIP, #负载分担默认基于源ip异或目的IP。
max bandwidth-affected-linknumber : 2, #stp计算cost时,按照2个接口的带宽来算,也就是2G。
Maximal BW: 3G,  #最答带宽3G
Current BW: 1G, #当前带宽1G
The Maximum Frame Length is 9216 #最答的帧长度为9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, #II型以太帧封装
Hardware address is 4c1f-cc88-5d27 #MAC地址
Current system time: 2024-01-27 22:11:15-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          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 3
The Number of UP Ports in Trunk : 1

步骤 3 掌握控制静态 LACP 模式下控制活动链路的方法

lacp的优先级数字越小越优,取值0-65535,如果相同则比较MAC地址小的优。
默认最多支持8接接口和最少1接口。可以修改 。
默认不抢占,preempt disable。默认的抢占延时为30秒,接口状态发送改变30s后才开始抢占动作。

[Huawei]lacp  priority ?
  INTEGER<0-65535>  Priority value, the default value is 32768
[Huawei]lacp  priority 32767

[S1]interface Eth-Trunk 1
[S1-Eth-Trunk1]lacp preempt enable 激活抢占

[S1]interface Eth-Trunk 1
[S1-Eth-Trunk1]max active-linknumber 2 最对激活2个接口,其他成员接口处于等待。
[S1-Eth-Trunk1]least active-linknumber 2 最少激活2个接口,否则链路关闭。
[S1-Eth-Trunk1] max bandwidth-affected-linknumber 5 影响链路聚合带宽接口数目的上限阈值主要用于STP计算。

步骤 4 掌握静态 LACP 的部分特性的配置(负载分担模式)

可以基于:源目地址,或者单个源目地址。可以?出来。如下:

[Huawei-Eth-Trunk1]load-balance ?
  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 xxx

五、结果验证

六、配置参考

略。

七、 思考题与附加内容

  1. 配置 least active-linknumber 和 max active-linknumber 时,对两个参数大小有什么要求?

答: least active-linknumber最小为1,而且不能大于 max active-linknumber。 max active-linknumber最大为8,不能小于 least active-linknumber。

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

吕世亮被占用

你的鼓励将是我创造的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值