华为交换机LACP模式链路聚合配置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为交换机LACP模式链路聚合配置相关的知识,希望对你有一定的参考价值。
交换机A和交换机B之间通过3条GE以太网连接,活动链路为2,配置如下:- SwitchA配置
<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface eth-trunk 1 # 创建Eth-Trunk1
[SwitchA-Eth-Trunk1] mode lacp # 配置LACP模式
[SwitchA-Eth-Trunk1] trunkport gigabtiethernet 0/0/1 to 0/0/3 # 添加接口成员
[SwitchA-Eth-Trunk1] max active-linknumber 2 # 设置活动上限阀值
[SwitchA-Eth-Trunk1] quit
[SwitchA] lacp priority 100 # 配置系统优先级使其成为主控端
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] lacp priority 100 # 配置活动链路优先级
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] lacp priority 100 # 配置活动链路优先级
[SwitchA-GigabitEthernet0/0/2] quit
- SwitchB配置
<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] interface eth-trunk 1 # 创建Eth-Trunk1
[SwitchB-Eth-Trunk1] mode lacp # 配置LACP模式
[SwitchB-Eth-Trunk1] trunkport gigabtiethernet 0/0/1 to 0/0/3 # 添加接口成员
[SwitchB-Eth-Trunk1] max active-linknumber 2 # 设置活动上限阀值
[SwitchB-Eth-Trunk1] quit
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] lacp priority 100 # 配置活动链路优先级
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] lacp priority 100 # 配置活动链路优先级
[SwitchB-GigabitEthernet0/0/2] quit
说明: LACP优先级值越大,优先级越低,系统LACP优先级为32768
以上是关于华为交换机LACP模式链路聚合配置的主要内容,如果未能解决你的问题,请参考以下文章