· 掌握接口速率的配置方法

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

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

· 掌握在静态LACP模式下配置接口优先级的方法

图4.1 以太网链路聚合拓扑图

您是公司的网络管理员。现在公司购买了两台华为的S5700系列的交换机,为了提高交换机之间链路带宽以及可靠性,您需要在交换机上配置链路聚合功能。

步骤一 以太网交换机基础配置

华为交换机接口默认开启了自协商功能。

首先修改交换机的设备名称,然后查看SW1上G0/0/9和G0/0/10接口的详细信息。


<Huawei>system-view
[Huawei]sysname SW1
[SW1]

[SW1]display interface GigabitEthernet 0/0/9
GigabitEthernet0/0/9 current state : UP
Line protocol current state : UP
Description:
Switch Port, Link-type : trunk(negotiated),
PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d0d0-4ba6-aab0
Current system time: 2019-11-23 14:18:37
Port Mode: COMMON COPPER
Speed : 1000,   Loopback: NONE
Duplex: FULL,   Negotiation: ENABLE
Mdi   : AUTO,   Flow-control: DISABLE
Last 300 seconds input rate 256 bits/sec, 0 packets/sec
Last 300 seconds output rate 912 bits/sec, 0 packets/sec
Input peak rate 13976 bits/sec, Record time: 2019-11-22 14:59:12
Output peak rate 13976 bits/sec, Record time: 2019-11-22 14:59:12
……output omit……[SW1]display interface GigabitEthernet 0/0/10
GigabitEthernet0/0/10 current state : UP
Line protocol current state : UP
Description:
Switch Port, Link-type : trunk(negotiated),
PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is d0d0-4ba6-aab0
Current system time: 2019-11-23 14:22:22
Port Mode: COMMON COPPER
Speed : 1000,   Loopback: NONE
Duplex: FULL,   Negotiation: ENABLE
Mdi   : AUTO,   Flow-control: DISABLE
Last 300 seconds input rate 72 bits/sec, 0 packets/sec
Last 300 seconds output rate 1024 bits/sec, 0 packets/sec
Input peak rate 14032 bits/sec, Record time: 2019-11-22 14:59:12
Output peak rate 14032 bits/sec, Record time: 2019-11-22 14:59:12
……output omit……

步骤二 配置手动模式的链路聚合

在SW1和SW2上创建Eth-Trunk 1,然后将G0/0/9和G0/0/10接口加入Eth-Trunk 1(注意:将接口加入Eth-Trunk前需确认成员接口下没有任何配置)。


[SW1]interface Eth-Trunk 1
[SW1-Eth-Trunk1]quit
[SW1]interface GigabitEthernet 0/0/9
[SW1-GigabitEthernet0/0/9]eth-trunk 1
[SW1-GigabitEthernet0/0/9]quit
[SW1]interface GigabitEthernet 0/0/10
[SW1-GigabitEthernet0/0/10]eth-trunk 1[SW2]interface Eth-Trunk 1
[SW2-Eth-Trunk1]quit
[SW2]interface GigabitEthernet 0/0/9
[SW2-GigabitEthernet0/0/9]eth-trunk 1
[SW2-GigabitEthernet0/0/9]quit
[SW2]interface GigabitEthernet 0/0/10
[SW2-GigabitEthernet0/0/10]eth-trunk 1

验证Eth-Trunk的配置结果。


[SW1]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/9            Up             1
GigabitEthernet0/0/10           Up             1        [SW2]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/9            Up            1
GigabitEthernet0/0/10           Up            1    

回显信息中灰色阴影标注的部分表明Eth-Trunk工作正常,成员接口都已正确加入。

在SW1上查看接口聚合后带宽


[SW1]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-cc16-05ac
Current system time: 2020-03-15 15:33:56-08:00Input bandwidth utilization  :    0%Output bandwidth utilization :    0%
-------------------------------------------------------------------
PortName                      Status      Weight
-------------------------------------------------------------------
GigabitEthernet0/0/9             UP          1
GigabitEthernet0/0/10            UP          1
-------------------------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2在SW2上查看接口聚合后带宽
[SW2]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-cc78-50fb
Current system time: 2020-03-15 15:35:33-08:00Input bandwidth utilization  :    0%Output bandwidth utilization :    0%
-------------------------------------------------------------------
PortName                      Status      Weight
-------------------------------------------------------------------
GigabitEthernet0/0/9             UP          1
GigabitEthernet0/0/10            UP          1
-------------------------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2

步骤三 配置静态LACP模式的链路聚合

删除SW1和SW2上的G0/0/9和G0/0/10接口下的配置。


[SW1]interface GigabitEthernet 0/0/9
[SW1-GigabitEthernet0/0/9]undo eth-trunk
[SW1-GigabitEthernet0/0/9]quit
[SW1]interface GigabitEthernet 0/0/10
[SW1-GigabitEthernet0/0/10]undo eth-trunk[SW2]interface GigabitEthernet 0/0/9
[SW2-GigabitEthernet0/0/9]undo eth-trunk
[SW2-GigabitEthernet0/0/9]quit
[SW2]interface GigabitEthernet 0/0/10
[SW2-GigabitEthernet0/0/10]undo eth-trunk

创建Eth-Trunk 1并配置该Eth-Trunk为静态LACP模式。然后将G0/0/9和G0/0/10接口加入Eth-Trunk 1。


[SW1]interface Eth-Trunk 1
[SW1-Eth-Trunk1]mode lacp
[SW1-Eth-Trunk1]quit
[SW1]interface GigabitEthernet 0/0/9
[SW1-GigabitEthernet0/0/9]eth-trunk 1
[SW1-GigabitEthernet0/0/9]quit
[SW1]interface GigabitEthernet 0/0/10
[SW1-GigabitEthernet0/0/10]eth-trunk 1[SW2]interface Eth-Trunk 1
[SW2-Eth-Trunk1]mode lacp
[SW2-Eth-Trunk1]quit
[SW2]interface GigabitEthernet 0/0/9
[SW2-GigabitEthernet0/0/9]eth-trunk 1
[SW2-GigabitEthernet0/0/9]quit
[SW2]interface GigabitEthernet 0/0/10
[SW2-GigabitEthernet0/0/10]eth-trunk 1

查看交换机上Eth-Trunk的信息,查看链路是否协商成功。


[SW1]disp eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768      System ID: 4c1f-cc16-05ac
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/9   Selected   1GE      32768   10     305     10111100  1
GigabitEthernet0/0/10  Selected   1GE      32768   11     305     10111100  1     Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/9   32768    4c1f-cc78-50fb  32768   10     305     10111100
GigabitEthernet0/0/10  32768    4c1f-cc78-50fb  32768   11     305     10111100[SW2]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768      System ID: 4c1f-cc78-50fb
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/9   Selected   1GE      32768   10     305     10111100  1
GigabitEthernet0/0/10  Selected   1GE      32768   11     305     10111100  1     Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/9   32768    4c1f-cc16-05ac  32768   10     305     10111100
GigabitEthernet0/0/10  32768    4c1f-cc16-05ac  32768   11     305     10111100

在SW1上配置LACP的系统优先级为100,使其成为LACP主动端。

[SW1]lacp  priority 100

配置接口的优先级确定活动链路。


[SW1]interface GigabitEthernet 0/0/9
[SW1-GigabitEthernet0/0/9]lacp priority 100
[SW1-GigabitEthernet0/0/9]quit
[SW1]interface GigabitEthernet 0/0/10
[SW1-GigabitEthernet0/0/10]lacp priority 100

验证Eth-Trunk的配置结果。


[SW1]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP
System Priority: 100        System ID: 4c1f-cc16-05ac
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/9   Selected 1GE        100     10     305     10111100  1
GigabitEthernet0/0/10  Selected 1GE        100     11     305     10111100  1     Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/9   32768    4c1f-cc78-50fb  32768   10     305     10111100
GigabitEthernet0/0/10  32768    4c1f-cc78-50fb  32768   11     305     10111100[SW2]display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768      System ID: 4c1f-cc78-50fb
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: up          Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/9   Selected 1GE      32768   10     305     10111100  1
GigabitEthernet0/0/10  Selected 1GE      32768   11     305     10111100  1
Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey     PortState
GigabitEthernet0/0/9     100      4c1f-cc16-05ac    100     10     305     10111100
GigabitEthernet0/0/10    100      4c1f-cc16-05ac    100     11     305     10111100

配置文件


[SW1]display current-configuration
[SW2]display current-configuration 

end

欢迎关注微信公众号【厦门微思网络】。www.xmws.cn专业IT认证培训19周年
主要课程:思科、华为、红帽、ORACLE、VMware、CISP、PMP等认证培训及考试

给这台华为S5700交换机配一下链路聚合相关推荐

  1. 给华为S5700交换机配下链路聚合

    学习目标 · 掌握接口速率的配置方法 · 掌握使用手动模式配置链路聚合的方法 · 掌握使用静态LACP模式配置链路聚合的方法 · 掌握在静态LACP模式下配置接口优先级的方法 拓扑图 图4.1 以太网 ...

  2. S5700交换机如何配置链路聚合

    配置手工负载分担模式链路聚合示例 组网需求 如图1所示,SwitchA和SwitchB通过以太链路分别都连接VLAN10和VLAN20的网络,且SwitchA和SwitchB之间有较大的数据流量. 用 ...

  3. 华为S5700交换机配置 不同vlan 间通信---eNSP

    华为S5700交换机配置 不同vlan 间通信-eNSP 实验目的 实现不同交换机上不同vlan间的通信 要求 1.根据实验要求配置实验拓扑如下图所示(注意同一个vlanif 下的 不同交换机的网关地 ...

  4. 交换机忘记密码 华为S5700交换机修改恢复密码

    作为一名硬件侧工程师,我在工作过程中发现了一些特别好的学习素材,能够帮助同行和通信初学者更好的掌握网络通信产品的使用方法和基本原理.这些学习素材中,华为TN的质量和可用性都是较高的.因此我将以专栏的形 ...

  5. 华为S5700交换机初始化和配置SSH和TELNET远程登录方法

    华为S5700交换机初始化和配置TELNET远程登录方法: 1,交换机开启Telnet服务 <Huawei>system-view       #进入系统视图 [Huawei]telnet ...

  6. Linux 10GE端口,ES5D001VST00 2端口 万兆10GE SFP 华为 S5700交换机 光接口板

    ES5D001VST00 2端口 万兆10GE SFP 华为 S5700交换机 光接口板批发HUAWEI华为网络工业设备HUAWEI华为服务器HUAWEI华为磁盘阵列等整机及新老配件批发 ES5D00 ...

  7. PC通过IE浏览器对华为S5700交换机进行WEB管理

    1.PC和交换机通过网线连接,通过CONSOLE线缆连接华为S5700交换机,使用如下命令查看是否有web.7z文件 <Quidway>dir 2.新建VLAN和配置VLAN的IP < ...

  8. 华为S5700交换机的配置(上)

    Quidway 华为S5700交换机的使用 1. 了解华为交换机的外观和众多的接口的 2. 准备串口线(console线和com口转usb的线,在电脑有vga接口的情况下使用console线就可以)和 ...

  9. 网络运维python之NETCONF--协程gevent+ncclient,2分钟巡检几千台华为CE交换机

    作者:科技银狐 原文连接:https://zhuanlan.zhihu.com/p/378012466 01 场景介绍 本章节介绍大规模数据中心巡检任务跑批策略,之前的章节介绍过NETCONF这类AP ...

最新文章

  1. 圣诞节玩购目的地大比拼
  2. 备份MySQL数据库
  3. windows powershell实战指南_【安全研究】powershell在主机中是否存在安全隐患?
  4. 十八般武艺玩转GaussDB(DWS)性能调优:SQL改写
  5. 目录遍历漏洞和文件读取漏洞的区别
  6. css各种居中解决方法
  7. android - startActivity浅谈
  8. 【ERP】概念_UFO报表
  9. 模拟c语言的软件下载,c语言软件下载(C/C++模拟学习)
  10. 织梦dedecms百度快照劫持注入代码防范与清除
  11. FineReport_数据集关联
  12. HTML实现一个简单的图片自动显示特效
  13. Allegro如何复用软件设置参数Parameters
  14. 【Java】一次简单实验经历——社交网络图的简化实现
  15. 国内外火控计算机发展水平,基于国产软硬件平台的火控计算机
  16. DDR SDRAM随路时钟
  17. 支付宝账单、网易听歌报告刷屏:大数据面前没有隐私
  18. Unity-IOS证书和描述文件配置
  19. scrapy 组合多个页面的数据一并存储
  20. 美国一广播电视台遭网络攻击,网站、电话、应用程序离线

热门文章

  1. 2020-11-1(xml)
  2. 用ASM编写一个简单的Windows Shellcode思路总结
  3. 12.PDE与PTE
  4. Prometheus Targets动态配置
  5. 8、REVOKE:删除用户权限
  6. 1、user权限表详解
  7. Python爬虫学习获取腾讯新闻并存入Excel
  8. Spring boot的配置类
  9. python中输入提示_Python-Tkinter Text输入内容在界面显示的实例
  10. 关闭裁剪功能_4个图片裁剪技巧,瞬间看出Word大神与小白的差距!