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

news/2024/11/15 1:50:42/

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

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

· 掌握使用静态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等认证培训及考试

 

 


http://www.ppmy.cn/news/166455.html

相关文章

华为s5700交换机使用配置

文章目录 说明结论同网段直接接入不同网段直接接入 说明 这次要做的是不做任何配置&#xff0c;将设备接到交换机上&#xff0c;测试会发生什么交换机默认在配置模式下输入命令(即登录设备后执行system-view命令) 结论 如果华为s5700交换机没做任何配置 No说明1将同网段设备…

华为交换机初始化_华为S5700交换机初始化配置举例

基础设置: 配置登陆IP地址 system-view //进入系统配置模式 [Quidway]interface Vlanif 1 //进入三层 vlanif 接口 [Quidway-Vlanif1]ip address 19…

华为eNsp S5700组网配置

文章目录 网络拓扑网络规划网络配置Core交换机Telnet配置ACC1 配置CORE配置VLAN互通CORE ACC1配置DHCP服务器关闭接口的生成树协议配置连接终端设备的交换机接口为边缘端口Core配置静态路由出口路由器 配置ACC1 配置DHCP Snooping和IPSG保存配置 网络拓扑 在小型园区中&#xf…

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

华为S5700交换机初始化和配置TELNET远程登录方法&#xff1a; 1,交换机开启Telnet服务 <Huawei>system-view #进入系统视图 [Huawei]telnet server &#xff1f; #查看有enable还是disable选项&#xff0c;选择对应的开启方式。 [Huawei]tel…

华为S5700EI固件升级

华为S5700EI固件升级 首先准备以下工具&#xff1a;1条com口线&#xff0c;1条网线&#xff0c;SecureCRT软件&#xff0c;3CDaemon&#xff0c;需要升级的固件文件&#xff08;在官网上找对应的固件包下载&#xff0c;https://support.huawei.com/enterprise/zh/index.html&a…

华为S5700交换机开启WEB配置

近来很多朋友问关于S5700开启WEB不成功的问题,现整理出具体步骤和命令。 提示:华为交换机配置时,输入命令前几个字母,按TAB可以自动补全命令,比如在系统视图下输入sh按下TAB会自动把命令补充成show。 1、登录交换机后首先查看交换机文件,然后加载WEB文件。执行命…

华为模拟器配置S5700交换机OSPF案例

华为模拟器配置S5700交换机OSPF测试案例 测试目的及拓扑图交换机配置配置SwitchA1.配置各接口所属的VLAN2.配置各VLANIF接口的IP地址3.配置OSPF基本功能 配置SwitchB。1.配置各接口所属的VLAN2.配置各VLANIF接口的IP地址3.配置OSPF基本功能 配置SwitchC。1.配置各接口所属的VLA…

华为S5700交换机登录认证配置学习笔记

以华为S5700-28C-HI交换机为例,配置登录认证学习笔记一: (一)、无需任何密码通过控制端口登录 [switchA]user-interface con 0 [switchA-ui-console0]authentication-mode none[switchA-ui-console0]disp this#user-interface con 0 set authentication password simple 1…