MZ520配置端口bonding,使用LACP模式
Bonding配置参MZ520网卡模块配置端口bonding中NIC Team配置部分,各个MZ520的配置如下。
MZ520(1):
Port 0和Port 1配置NIC Team,模式为LACP
NIC Team端口的IP地址为:192.168.10.10/24,属于VLAN 10。
MZ520(2):
Port 0和Port 1配置NIC Team,模式为LACP
NIC Team端口的IP地址为:192.168.20.10/24,属于VLAN 20。
MZ520(3):
Port 0和Port 1配置NIC Team,模式为LACP
NIC Team端口的IP地址为:192.168.10.30/24,属于VLAN 10。
MZ520(4):
Port 0和Port 1配置NIC Team,模式为LACP
NIC Team端口的IP地址为:192.168.20.40/24,属于VLAN 20。
Bonding的模式设置为LACP,即遵循IEEE802.3ad规范定义的LACP方式,要求对端设备(CX320)的端口也要配置LACP。由于链路聚合两端的设备都必须是同一设备,所以CX320(1)和CX320(2),CX320(3)和CX320(4)必须配置为堆叠模式。连接同1个MZ520的2个端口配置为链路聚合,使用LACP方式,CX320互连的2个上行端口也要配置为链路聚合,使用LACP方式,如图5-20所示。
CX320的具体配置如下。
堆叠配置与MZ520配置端口bonding,使用802.3ad模式相同,连接MZ520的端口需要配置为LACP模式,如下。
[HUAWEI]interface Eth-Trunk 1 [HUAWEI-Eth-Trunk1]trunkport 10GE2/1/1 [HUAWEI-Eth-Trunk1]trunkport 10GE3/1/1 [HUAWEI-Eth-Trunk1]mode lacp-static [HUAWEI-Eth-Trunk1]undo local-preference disable [HUAWEI-Eth-Trunk1]port link-type access [HUAWEI]interface Eth-Trunk 2 [HUAWEI-Eth-Trunk2]trunkport 10GE2/2/1 [HUAWEI-Eth-Trunk2]trunkport 10GE3/2/1 [HUAWEI-Eth-Trunk2]mode lacp-static [HUAWEI-Eth-Trunk2]undo local-preference disable [HUAWEI-Eth-Trunk2]port link-type access [HUAWEI]vlan 10 [HUAWEI-vlan10]port Eth-Trunk 1 [HUAWEI]vlan 20 [HUAWEI-vlan20]port Eth-Trunk 2 [HUAWEI]interface Eth-Trunk 3 [HUAWEI-Eth-Trunk3]trunkport 10GE2/17/1 [HUAWEI-Eth-Trunk3]trunkport 10GE3/17/1 [HUAWEI-Eth-Trunk3]mode lacp-static [HUAWEI-Eth-Trunk3]undo local-preference disable [HUAWEI-Eth-Trunk3]port link-type trunk [HUAWEI-Eth-Trunk3]port trunk allow-pass vlan 10 [HUAWEI-Eth-Trunk3]port trunk allow-pass vlan 20
链路聚合的效果与802.3ad模式是相当的。