举例:配置动态LACP模式Eth-Trunk

举例:配置动态LACP模式Eth-Trunk

组网需求

图3-13所示,服务器A与DeviceA建立动态LACP模式链路聚合,两端设备将通过动态LACP协议报文进行链路聚合协商。

图3-13 动态LACP模式Eth-Trunk组网图

本例中interface1、interface2、interface3分别代表10GE1/0/1、10GE1/0/2、10GE1/0/3。


操作步骤

  1. 在DeviceA上创建动态LACP模式Eth-Trunk接口,并将以太网物理接口加入Eth-Trunk接口。

     

    <HUAWEI> system-view
    [HUAWEI] sysname DeviceA
    [DeviceA] interface eth-trunk 1
    [DeviceA-Eth-Trunk1] mode lacp-dynamic
    [DeviceA-Eth-Trunk1] quit
    [DeviceA] interface 10ge 1/0/1
    [DeviceA-10GE1/0/1] eth-trunk 1
    [DeviceA-10GE1/0/1] quit
    [DeviceA] interface 10ge 1/0/2
    [DeviceA-10GE1/0/2] eth-trunk 1
    [DeviceA-10GE1/0/2] quit
    [DeviceA] interface 10ge 1/0/3
    [DeviceA-10GE1/0/3] eth-trunk 1
    [DeviceA-10GE1/0/3] quit

     

  2. 在DeviceA上配置活动接口上限阈值为2。

     

    [DeviceA] interface eth-trunk 1
    [DeviceA-Eth-Trunk1] lacp max active-linknumber 2
    [DeviceA-Eth-Trunk1] quit

     

  3. 在DeviceA上配置接口优先级确定活动链路。

     

    [DeviceA] interface 10ge 1/0/1
    [DeviceA-10GE1/0/1] lacp priority 100
    [DeviceA-10GE1/0/1] quit
    [DeviceA] interface 10ge 1/0/2
    [DeviceA-10GE1/0/2] lacp priority 100
    [DeviceA-10GE1/0/2] quit

     

检查配置结果

# 在DeviceA上执行display eth-trunk命令查看Eth-Trunk信息。

[DeviceA] 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: xxxx-xxxx-xxxx                                                                           
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        xxxx-xxxx-xxxx 0       0      0       10100011                                                     
10GE1/0/2              0        xxxx-xxxx-xxxx 0       0      0       10100011                                                     
10GE1/0/3              0        xxxx-xxxx-xxxx 0       0      0       10100011

通过以上显示信息可以看到,Eth-Trunk的ID是1,Eth-Trunk的模式是动态LACP模式,Eth-Trunk的成员接口10GE1/0/110GE1/0/210GE1/0/3的状态都为Indep

# 当DeviceA能够收到服务器A的LACP协议报文,且两端通过LACP协议报文链路聚合协商成功,在DeviceA上执行display eth-trunk命令查看Eth-Trunk信息。

[DeviceA] 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: xxxx-xxxx-xxxx                                                                           
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    xxxx-xxxx-xxxx 32768   0      321     10111100                                                     
10GE1/0/2              32768    xxxx-xxxx-xxxx 32768   1      321     10111100                                                     
10GE1/0/3              32768    xxxx-xxxx-xxxx 32768   2      321     10100000

通过以上显示信息可以看到,Eth-Trunk的ID是1、Eth-Trunk的模式是动态LACP模式,Eth-Trunk的成员接口中10GE1/0/110GE1/0/2成为活动接口,处于Selected状态,接口10GE1/0/3处于Unselect状态。

配置脚本

DeviceA

#
sysname DeviceA
#
interface Eth-Trunk1
 mode lacp-dynamic
 lacp max active-linknumber 2
#
interface 10GE1/0/1
 eth-trunk 1
 lacp priority 100
#
interface 10GE1/0/2
 eth-trunk 1
 lacp priority 100
#
interface 10GE1/0/3
 eth-trunk 1
#
return
https://support.huawei.com/enterprise/zh/doc/EDOC1100278264/600b946f


posted @   技术颜良  阅读(201)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
历史上的今天:
2022-04-05 go切片的nil 切片、空切片与零切片(重要)
2022-04-05 如何优雅的在 Kubernetes 上实现资源配额(重要)
2022-04-05 TCP原理(三次握手四次挥手)(有这篇就够了,重要)
点击右上角即可分享
微信分享提示