转载至:玩转华为数据中心交换机系列 | 配置动态LACP模式的链路聚合示例_COCOgsta的博客-CSDN博客_华为lacp动态聚合
素材来源:华为数据中心交换机配置指南
一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:玩转华为数据中心交换机系列 | 汇总_COCOgsta的博客-CSDN博客
组网需求
如图1所示,SwitchA与服务器A通过静态LACP模式Eth-Trunk接口相连,文件服务器B保存服务器A网卡的配置。当服务器A重启,配置丢失,需要从远端文件服务器B上重新获取自己的配置。此时,由于服务器A上的LACP模式Eth-Trunk配置已经丢失,SwitchA无法和服务器A进行LACP协商,Eth-Trunk接口的状态无法Up,也就无法转发数据。
可在SwitchA上配置动态LACP模式Eth-Trunk接口,这样在LACP协商失败的情况下,SwitchA也能够通过成员口进行二层转发,进而保证服务器A能够成功从文件服务器B上获取到配置信息。当服务器A获取到配置信息后,建立LACP模式的Eth-Trunk接口,两端设备将通过LACP协议报文进行链路聚合协商。
配置思路
采用如下的思路配置动态LACP模式链路聚合:
1、在SwitchA上创建动态LACP模式Eth-Trunk接口,并将以太网物理接口加入Eth-Trunk接口,实现链路聚合功能。
2、配置活动接口上限阈值,保证带宽的情况下提高网络的可靠性。
3、配置接口优先级确定活动链路,接口优先级高的接口将被选作活动接口。
操作步骤
- 在SwitchA上创建动态LACP模式Eth-Trunk接口,并将以太网物理接口加入Eth-Trunk接口
<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] interface eth-trunk 1
[*SwitchA-Eth-Trunk1] mode lacp-dynamic
[*SwitchA-Eth-Trunk1] quit
[*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
2.在SwitchA上配置活动接口上限阈值为2
[~SwitchA] interface eth-trunk 1
[~SwitchA-Eth-Trunk1] lacp max active-linknumber 2
[*SwitchA-Eth-Trunk1] quit
[*SwitchA] commit
3.在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
4.验证配置结果
# 在SwitchA上执行display eth-trunk命令查看Eth-Trunk信息,可看到Eth-Trunk的ID是1,Eth-Trunk的模式是动态LACP模式,Eth-Trunk的成员接口10GE1/0/1、10GE1/0/2、10GE1/0/3的状态都为Indep。
[~SwitchA] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 Working Mode: Dynamic
Preempt Delay: Disabled Hash Arithmetic: profile default
System Priority: 32768 System ID: 0025-9e95-7c11
Least Active-linknumber: 1 Max Active-linknumber: 2
Operating Status: up Number Of Up Ports In Trunk: 0
Timeout Period: Slow
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
10GE1/0/1 Indep 10GE 100 0 321 10100010 1
10GE1/0/2 Indep 10GE 100 1 321 10100010 1
10GE1/0/3 Indep 10GE 32768 2 321 10100010 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
10GE1/0/1 0 0000-0000-0000 0 0 0 10100011
10GE1/0/2 0 0000-0000-0000 0 0 0 10100011
10GE1/0/3 0 0000-0000-0000 0 0 0 10100011
# 当SwitchA能够收到服务器A的LACP协议报文,且两端通过LACP协议报文链路聚合协商成功,在SwitchA上执行display eth-trunk命令查看Eth-Trunk信息,可看到Eth-Trunk的ID是1、Eth-Trunk的模式是动态LACP模式,Eth-Trunk的成员接口中10GE1/0/1、10GE1/0/2成为活动接口,处于Selected状态,接口10GE1/0/3处于Unselect状态。
[~SwitchA] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 Working Mode: Dynamic
Preempt Delay: Disabled: Hash Arithmetic: profile default
System Priority: 32768 System ID: 0025-9e95-7c11
Least Active-linknumber: 1 Max Active-linknumber: 2
Operating Status: up Number Of Up Ports In Trunk: 2
Timeout Period: Slow
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
10GE1/0/1 Selected 10GE 100 0 321 10111100 1
10GE1/0/2 Selected 10GE 100 1 321 10111100 1
10GE1/0/3 Unselect 10GE 32768 2 321 10100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
10GE1/0/1 32768 0025-9e95-7c31 32768 0 321 10111100
10GE1/0/2 32768 0025-9e95-7c31 32768 1 321 10111100
10GE1/0/3 32768 0025-9e95-7c31 32768 2 321 10100000
转载至:玩转华为数据中心交换机系列 | 配置动态LACP模式的链路聚合示例_COCOgsta的博客-CSDN博客_华为lacp动态聚合
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)