手工聚合的配置:
LSW1的配置::
[LSW1] interface Eth-Trunk 1
[SW1-Eth-Trunk1]mode lacp-static //开启手工聚合模式
[SW1-Eth-Trunk1] load-balance dst-mac //设置负载分担的模式,基于目的MAC地址进行负载分担。
配置的负载分担方式:
src-ip:配置Eth-Trunk接口基于源IP地址进行负载分担。
dst-ip :配置Eth-Trunk接口基于目的IP地址进行负载分担。
src-mac:配置Eth-Trunk接口基于源MAC地址进行负载分担。
dst-mac:配置Eth-Trunk接口基于目的MAC地址进行负载分担。
src-dst-mac:配置Eth-Trunk接口基于源IP地址与目的IP地址进行负载分担。
src-dst-mac:配置Eth-Trunk接口基于源MAC地址与目的MAC地址进行负载分担。
[SW1-Eth-Trunk1] port link-type trunk //设置聚合口的端口类型为Trunk
[SW1-Eth-Trunk1] port trunk allow-pass vlan 10 20 //允许透传的VLAN
[SW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1
[SW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/2
LSW2的配置::
[LSW2] interface Eth-Trunk 1
[SW2-Eth-Trunk1]mode lacp-static
[SW2-Eth-Trunk1] load-balance dst-mac
[SW2-Eth-Trunk1] port link-type trunk
[SW2-Eth-Trunk1] port trunk allow-pass vlan 10 20
[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1
[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/2
dis trunkmembership eth-trunk 1 //查看聚合口状态
LACP模式的配置:
[LSW2] interface Eth-Trunk 1
[LSW2-Eth-Trunk1]mode lacp-static //开启LACP模式
[LSW2-Eth-Trunk1] lacp preempt enable //开启抢占模式
[LSW2-Eth-Trunk1] lacp preempt delay 10 //抢占时间为10S
[LSW2-Eth-Trunk1] trunkport GigabitEthernet 0/0/1
[LSW2-Eth-Trunk1] trunkport GigabitEthernet 0/0/2
[LSW2-Eth-Trunk1] trunkport GigabitEthernet 0/0/3
[LSW2] lacp priority 0 //设置LACP的优先级为0,为主动段
[LSW3] interface Eth-Trunk 1
[LSW3-Eth-Trunk1]mode lacp-static
[LSW3-Eth-Trunk1] trunkport GigabitEthernet 0/0/1
[LSW3-Eth-Trunk1] trunkport GigabitEthernet 0/0/2
[LSW3-Eth-Trunk1] trunkport GigabitEthernet 0/0/3
dis trunkmembership eth-trunk 1 //查看聚合口状态