首页/网络/网络设备配置速查/LACP 成员口优先级(决定谁被选中)
接口与链路73 条

LACP 成员口优先级(决定谁被选中)

成员口多于最大可选中数时,优先级决定哪些口被选中:优先级数值小的优先;调整优先级可以指定主用/备用链路。

网络设备配置速查网络更新于 2026-10-12
场景成员数超限、主备链路指定
适用LACP 聚合
命令族lacp priority(接口)/ lacp port-priority / lacp priority(接口)

华为 VRP

华为 VRP
[Huawei-GigabitEthernet0/0/1] lacp priority 100   ! 数值小优先选中(默认 32768)
<Huawei> display eth-trunk 1 verbose
! 结合 max active-linknumber 控制选中数量

思科 IOS

思科 IOS
SW-A(config-if)# lacp port-priority 100   ! 数值小优先(默认 32768)
SW-A# show lacp neighbor
SW-A# show etherchannel 1 detail   ! 看各口 LACP 状态

H3C Comware

H3C Comware
[H3C-GigabitEthernet1/0/1] lacp priority 100   ! 默认 32768,小者优先
<H3C> display link-aggregation verbose
! 结合 selected-port maximum 限制选中数
三厂都是“数值小者优先”,默认 32768;华为/H3C 命令名同叫 lacp priority,思科叫 lacp port-priority。该优先级在成员数超过上限/下限时决定取舍。

易错点

  • 改优先级后成员重选会触发流量重哈希(短丢包),避开业务高峰
  • 两端都配了端口的优先级(错位场景)时,以主动端的协商结果为准,别只看单端

数据来源与参考

  • 华为 lacp priority
  • Cisco lacp port-priority
  • H3C lacp priority

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌