华为配置静态LACP模式链路聚合示例组网需求如图所示,在两台Switch设备上配置静态LACP模式链路聚合组,提高两设备之间的带宽与可靠性,具体要求如下:2条活动链路具有负载分担的能力。两设备间的链路具有1条冗余备份链路,当活动链路出现故障链路时,备份链路替代故障链路,保持数据传输的可靠性。图配置静态LACP模式链路聚合组网图配置思路采用如下的思路配置静态LACP模式链路聚合:在Switch设备上创建Eth-Trunk,配置Eth-Trunk为静态LACP模式。将成员接口加入Eth-Trunk。配置系统优先级确定主动端。配置活动接口上限阈值。配置接口优先级确定活动链路。数据准备为完成此配置例,需准备如下的数据:两端Switch设备链路聚合组编号。SwitchA系统优先级。活动接口上限阈值。活动接口LACP优先级。操作步骤创建编号为1的Eth-Trunk,配置它的工作模式为静态LACP模式#配置SwitchA。Quidwaysystem-view[Quidway]sysnameSwitchA[SwitchA]interfaceeth-trunk1[SwitchA-Eth-Trunk1]bpduenable[SwitchA-Eth-Trunk1]modelacp-static[SwitchA-Eth-Trunk1]quit#配置SwitchB。Quidwaysystem-view[Quidway]sysnameSwitchB[SwitchB]interfaceeth-trunk1[SwitchB-Eth-Trunk1]bpduenable[SwitchB-Eth-Trunk1]modelacp-static[SwitchB-Eth-Trunk1]quit将成员接口加入Eth-Trunk#配置SwitchA。[SwitchA]interfaceethernet0/0/1[SwitchA-Ethernet0/0/1]eth-trunk1[SwitchA-Ethernet0/0/1]quit[SwitchA]interfaceethernet0/0/2[SwitchA-Ethernet0/0/2]eth-trunk1[SwitchA-Ethernet0/0/2]quit[SwitchA]interfaceethernet0/0/3[SwitchA-Ethernet0/0/3]eth-trunk1[SwitchA-Ethernet0/0/3]quit#配置SwitchB。[SwitchB]interfaceethernet0/0/1[SwitchB-Ethernet0/0/1]eth-trunk1[SwitchB-Ethernet0/0/1]quit[SwitchB]interfaceethernet0/0/2[SwitchB-Ethernet0/0/2]eth-trunk1[SwitchB-Ethernet0/0/2]quit[SwitchB]interfaceethernet0/0/3[SwitchB-Ethernet0/0/3]eth-trunk1[SwitchB-Ethernet0/0/3]quit在SwitchA上配置系统优先级为100,使其成为LACP主动端[SwitchA]lacppriority100在SwitchA上配置活动接口上限阈值为2[SwitchA]interfaceeth-trunk1[SwitchA-Eth-Trunk1]maxactive-linknumber2[SwitchA-Eth-Trunk1]quit在SwitchA上配置接口优先级确定活动链路[SwitchA]interfaceethernet0/0/1[SwitchA-Ethernet0/0/1]lacppriority100[SwitchA-Ethernet0/0/1]quit[SwitchA]interfaceethernet0/0/2[SwitchA-Ethernet0/0/2]lacppriority100[SwitchA-Ethernet0/0/2]quit验证配置结果#查看各Switch设备的Eth-Trunk信息,查看链路是否协商成功。[SwitchA]displayeth-trunk1Eth-Trunk1'sstateinformationis:Local:LAGID:1WorkingMode:STATICPreemptDelay:DisabledHasharithmetic:AccordingtoSA-XOR-DASystemPriority:100SystemID:00e0-fca8-0417LeastActive-linknumber:1MaxActive-linknumber:2Operatestatus:UpNumberOfUpPortInTrunk:2------------------------------------------------------------------------------ActorPortNameStatusPortTypePortPriPortNoPortKeyPortStateWeightEthernet0/0/1Selected1GE10061452865111111001Ethernet0/0/2Selected1GE10061462865111111001Ethernet0/0/3Unselect1GE3276861472865111000001Partner:------------------------------------------------------------------------------PartnerPortNameSysPriSystemIDPortPriPortNoPortKeyPortStateEthernet0/0/13276800e0-fca6-7f85327686145260911111100Ethernet0/0/23276800e0-fca6-7f85327686146260911111100Ethernet0/0/33276800e0-fca6-7f85327686147260911110000[SwitchB]displayeth-trunk1Eth-Trunk1'sstateinformationis:Local:LAGID:1WorkingMode:STATICPreemptDelay:DisabledHasharithmetic:AccordingtoSA-XOR-DASystemPriority:32768SystemID:00e0-fca6-7f85LeastActive-linknumber:1MaxActive-linknumber:8Operatestatus:UpNumberOfUpPortInTrunk:2------------------------------------------------------------------------------ActorPortNameStatusPortTypePortPriPortNoPortKeyPortStateWeightEthernet0/0/1Selected1GE3276861452609111111001Ethernet0/0/2Selected1GE3276861462609111111001Ethernet0/0/3Unselect1GE3276861472609111000001Partner:------------------------------------------------------------------------------PartnerPortNameSysPriSystemIDPortPriPortNoPortKeyPortStateEthernet0/0/110000e0-fca8-04171006145286511111100Ethernet0/0/210000e0-fca8-04171006146286511111100Ethernet0/0/310000e0-fca8-0417327686147286511110000通过以上显示信息可以看到,SwitchA的系统优先级为100,高于SwitchB的系统优先级。Eth-Trunk的成员接口中Ethernet0/0/1、Ethernet0/0/2成为活动接口,处于“Selected”状态,接口Ethernet0/0/3处于“Unselect”状态,同时实现M条链路的负载分担和N条链路的冗余备份功能。配置文件SwitchA的配置文件#sysnameSwitchA#lacppriority100#interfaceEth-Trunk1modelacp-staticmaxactive-linknumber2bpduenable#interfaceEthernet0/0/1eth-trunk1lacppriority100#interfaceEthernet0/0/2eth-trunk1lacppriority100#interfaceEthernet0/0/3eth-trunk1#returnSwitchB的配置文件#sysnameSwitchB#interfaceEth-Trunk1modelacp-staticbpduenable#interfaceEthernet0/0/1eth-trunk1#interfaceEthernet0/0/2eth-trunk1#interfaceEthernet0/0/3eth-trunk1#return