• 2.3.1 交换机的链路聚合技术



    一、任务描述

    某公司的局域网已经投入使用,在功能上完全满足公司的办公和业务需求。但有时会出现上网高峰期访问服务器或外网时速度降低,影响办公效率的情况。网络管理员需要想办法增加骨干交换机之间的带宽。

    二、任务分析

    链路聚合技术可以将交换机与核心交换机之间的多个接口并行连接,多条链路聚合成一条链路,从而增加链路带宽,解决交换网络中因带宽引起的网络瓶颈问题,其中任意一条链路断开,都不会影响其他链路正常转发数据。

    三、实验拓扑

    在这里插入图片描述

    四、任务实施

    1.交换机SWA的配置。

    (1)修改交换机名称,关闭配置时的干扰信息。

    <Huawei>sys
    Enter system view, return user view with Ctrl+Z.
    [Huawei]sys SWA
    [SWA]un in e
    Info: Information center is disabled.
    [SWA]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    (2)创建ID为1的Eth-Trunk接口,并退出Eth-Trunk 1接口视图。

    [SWA]int Eth-Trunk 1
    [SWA-Eth-Trunk1]quit
    [SWA]
    
    • 1
    • 2
    • 3

    (3)进入GE 0/0/1和GE 0/0/2接口视图,加入Eth-Trunk 1聚合接口,并退出接口视图。

    [SWA]int g0/0/1
    [SWA-GigabitEthernet0/0/1]eth-trunk 1
    Info: This operation may take a few seconds. Please wait for a moment...done.
    [SWA-GigabitEthernet0/0/1]int g0/0/2
    [SWA-GigabitEthernet0/0/2]eth-trunk 1
    Info: This operation may take a few seconds. Please wait for a moment...done.
    [SWA-GigabitEthernet0/0/2]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    (4)进入Eth-Trunk 1聚合接口,设置接口链路类型为Trunk模式,并退出入Eth-Trunk1
    接口视图。

    [SWA-Eth-Trunk1]port link-type trunk
    [SWA-Eth-Trunk1]quit
    [SWA]
    
    • 1
    • 2
    • 3

    2.交换机SWB的配置。

    (1)修改交换机名称,关闭干扰信息。

    <Huawei>sys
    Enter system view, return user view with Ctrl+Z.
    [Huawei]sys SWB
    [SWB]un in e
    Info: Information center is disabled.
    [SWB]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    (2)创建ID为1的Eth-Trunk接口,将GE 0/0/1和GE 0/0/2接口接入Eth-Trunk1,并设置聚合接口链路类型为Trunk,然后退出Eth-Trunk1接口视图。

    [SWB]int Eth-Trunk 1
    [SWB-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/2
    Info: This operation may take a few seconds. Please wait for a moment...done.
    [SWB-Eth-Trunk1]port link-type trunk
    [SWB-Eth-Trunk1]quit
    [SWB]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    这里SWB使用的是将成员接口批量加入聚合组的方法。

    3.在SWA上查看链路聚合组1的信息。

    [SWA]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: 2                     
    --------------------------------------------------------------------------------
    PortName                      Status      Weight 
    GigabitEthernet0/0/1          Up          1      
    GigabitEthernet0/0/2          Up          1      
      
    [SWA]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11

    4.在SWB上查看链路聚合组1的信息。

    [SWB]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: 2                     
    --------------------------------------------------------------------------------
    PortName                      Status      Weight 
    GigabitEthernet0/0/1          Up          1      
    GigabitEthernet0/0/2          Up          1      
      
    [SWB]
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11

    由SWA和SWB交换机上链路聚合组1的信息可知,Eth-Trunk工作状态正常,成员接口都已经被正确加入。

    五、任务验收

    1.测试计算机的连通性,PC1 ping PC2是连通的。
    在这里插入图片描述

    2.改变拓扑重新测试。
    把聚合口的连线去掉一根(将其所在接口关闭 即可),重新测试连通性。可以发现,去掉一根连线,计算机的连通性没有受到影响。
    (1)通过ping 192.168.1.12 -t一直ping。
    在这里插入图片描述

    (2)紧接着第一步关闭g0/0/1接口。

    <Huawei>sys
    [SWA]int g0/0/1
    [SWA-GigabitEthernet0/0/1]shutdown 
    [SWA-GigabitEthernet0/0/1]
    
    • 1
    • 2
    • 3
    • 4

    关闭g0/0/1接口后的拓扑图。
    在这里插入图片描述

    (3)观察发现请求超时。
    在这里插入图片描述

    (4)如果一直显示请求超时,则配置有问题;如果再次ping通,那么配置正确。(这里需要注意:在模拟器中有点慢,这里不要着急)。
    在这里插入图片描述

    这里再次连接上,说明配置没有问题。

    六、任务小结

    (1)在设置交换机的接口汇聚时既可以将每个接口依次加入,也可以将成员批量加入聚合组。
    (2)选择的接口必须是连续的。
    (3)因为接口汇聚组一般和VLAN联合使用,所以应设置成Trunk模式。


    注:此为记录笔记,如有不足,还望海涵,可留言斧正

  • 相关阅读:
    记一次ThreadLocal引发的线上故障
    TPC-C 、TPC-H、TPC-DS和SSB测试基准(Benchmark)介绍
    400企业热线电话
    堆专题1 向下调整构建大顶堆
    社交媒体&社交商务提升策略,看这一篇就够!
    【Linux---02】CentOS操作系统的说明「简单使用 | 文件目录 | 常用命令」
    第4章 请求与响应
    Java中stream是什么?有什么作用?如何使用?
    小程序常见操作
    漏洞复现--安恒明御安全网关文件上传
  • 原文地址:https://blog.csdn.net/w1911026171/article/details/134056694