交换机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
原文地址:https://blog.51cto.com/huanghai/2370286
时间: 2024-10-08 10:06:56