1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 玩转华为数据中心交换机系列 | 配置LACP模式的链路聚合示例

玩转华为数据中心交换机系列 | 配置LACP模式的链路聚合示例

时间:2021-08-02 05:08:10

相关推荐

玩转华为数据中心交换机系列 | 配置LACP模式的链路聚合示例

素材来源:华为数据中心交换机配置指南

一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:玩转华为数据中心交换机系列 | 汇总_COCOgsta的博客-CSDN博客

组网需求

如图1所示,在两台Switch设备上配置LACP模式链路聚合组,提高两设备之间的带宽与可靠性,具体要求如下:

两条活动链路具有负载分担的能力。两设备间的链路具有1条冗余备份链路,当活动链路出现故障链路时,备份链路替代故障链路,保持数据传输的可靠性。

配置思路

采用如下的思路配置LACP模式链路聚合:

创建Eth-Trunk,配置Eth-Trunk为LACP模式,实现链路聚合功能。将成员接口加入Eth-Trunk。配置系统优先级,确定主动端,按照主动端设备的接口选择活动接口。配置活动接口上限阈值,实现保证带宽的情况下提高网络的可靠性。配置接口优先级,确定活动链路接口,优先级高的接口将被选作活动接口。

操作步骤

在SwitchA上创建Eth-Trunk1并配置为LACP模式。SwitchB的配置与SwitchA类似,不再赘述

<HUAWEI> system-view[~HUAWEI] sysname SwitchA[*HUAWEI] commit[~SwitchA] interface eth-trunk 1[*SwitchA-Eth-Trunk1] mode lacp-static[*SwitchA-Eth-Trunk1] commit[~SwitchA-Eth-Trunk1] quit

配置SwitchA上的成员接口加入Eth-Trunk。SwitchB的配置与SwitchA类似,不再赘述

[~SwitchA] interface 10ge 1/0/1[~SwitchA-10GE1/0/1] eth-trunk 1[*SwitchA-10GE1/0/1] quit[*SwitchA] interface 10ge 1/0/2[*SwitchA-10GE1/0/2] eth-trunk 1[*SwitchA-10GE1/0/2] quit[*SwitchA] interface 10ge 1/0/3[*SwitchA-10GE1/0/3] eth-trunk 1[*SwitchA-10GE1/0/3] quit[*SwitchA] commit

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

[~SwitchA] lacp priority 100[*SwitchA] commit

在SwitchA上配置活动接口上限阈值为2

[~SwitchA] interface eth-trunk 1[~SwitchA-Eth-Trunk1] lacp max active-linknumber 2[*SwitchA-Eth-Trunk1] commit[~SwitchA-Eth-Trunk1] quit

在SwitchA上配置接口优先级确定活动链路

[~SwitchA] interface 10ge 1/0/1[~SwitchA-10GE1/0/1] lacp priority 100[*SwitchA-10GE1/0/1] quit[*SwitchA] interface 10ge 1/0/2[*SwitchA-10GE1/0/2] lacp priority 100[*SwitchA-10GE1/0/2] quit[*SwitchA] commit

验证配置结果

# 查看各Switch设备的Eth-Trunk信息,查看链路是否协商成功。

[~SwitchA] display eth-trunk 1Eth-Trunk1's state information is:Local:LAG ID: 1 Working Mode: StaticPreempt Delay: Disabled Hash Arithmetic: profile defaultSystem Priority: 100 System ID: 0025-9e95-7c31Least Active-linknumber: 1Max Active-linknumber: 2Operating Status: up Number Of Up Ports In Trunk: 2Timeout Period: Slow--------------------------------------------------------------------------------ActorPortNameStatus PortType PortPri PortNo PortKey PortState Weight10GE1/0/1 Selected 10GE100120289 10111100 110GE1/0/2 Selected 10GE100220289 10111100 110GE1/0/3 Unselect 10GE32768 320289 10100000 1Partner:--------------------------------------------------------------------------------ActorPortNameSysPri SystemID PortPri PortNo PortKey PortState10GE1/0/1 32768 0025-9e95-7c11 32768 420289 1011110010GE1/0/2 32768 0025-9e95-7c11 32768 520289 1011110010GE1/0/3 32768 0025-9e95-7c11 32768 620289 10100000

[~SwitchB] display eth-trunk 1Eth-Trunk1's state information is:Local:LAG ID: 1 Working Mode: StaticPreempt Delay: Disabled Hash Arithmetic: profile defaultSystem Priority: 32768System ID: 0025-9e95-7c11Least Active-linknumber: 1Max Active-linknumber: 16Operating Status: up Number Of Up Ports In Trunk: 2Timeout Period: Slow--------------------------------------------------------------------------------ActorPortNameStatus PortType PortPri PortNo PortKey PortState Weight10GE1/0/1 Selected 10GE32768 420289 10111100 110GE1/0/2 Selected 10GE32768 520289 10111100 110GE1/0/3 Unselect 10GE32768 620289 10100000 1Partner:--------------------------------------------------------------------------------ActorPortNameSysPri SystemID PortPri PortNo PortKey PortState10GE1/0/1 1000025-9e95-7c31 100120289 1011110010GE1/0/2 1000025-9e95-7c31 100220289 1011110010GE1/0/3 1000025-9e95-7c31 32768 320289 10100000

通过以上显示信息可以看到,SwitchA的系统优先级为100,高于SwitchB的系统优先级。Eth-Trunk的成员接口中10GE1/0/1、10GE1/0/2成为活动接口,处于“Selected”状态,接口10GE1/0/3处于“Unselect”状态,同时实现M条链路的负载分担和N条链路的冗余备份功能。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。