L00030109 实验6 配置链路聚合
- 格式:ppt
- 大小:651.50 KB
- 文档页数:1


链路聚合实验版本V1.0密级☑开放☐内部☐机密类型☐讨论版☐测试版☑正式版链路聚合简介:链路聚合是将两个或更多数据信道结合成一个单个的信道,该信道以一个单个的更高带宽的逻辑链路出现。
链路聚合一般用来连接一个或多个带宽需求大的设备,例如连接骨干网络的服务器或服务器群。
链路聚合有如下优点:1、增加网络带宽链路聚合可以将多个链路捆绑成为一个逻辑链路,捆绑后的链路带宽是每个独立链路的带宽总和。
2、提高网络连接的可靠性链路聚合中的多个链路互为备份,当有一条链路断开,流量会自动在剩下链路间重新分配。
链路聚合的方式主要有以下两种:1、静态Trunk静态Trunk将多个物理链路直接加入Trunk组,形成一条逻辑链路。
2、动态LACPLACP(Link Aggregation Control Protocol,链路聚合控制协议)是一种实现链路动态汇聚的协议。
LACP协议通过LACPDU(Link Aggregation Control Protocol Data Unit,链路聚合控制协议数据单元)与对端交互信息。
激活某端口的LACP协议后,该端口将通过发送LACPDU向对端通告自己的系统优先级、系统MAC地址、端口优先级和端口号。
对端接收到这些信息后,将这些信息与自己的属性比较,选择能够聚合的端口,从而双方可以对端口加入或退出某个动态聚合组达成一致。
链路聚合往往用在两个重要节点或繁忙节点之间,既能增加互联带宽,又提供了连接的可靠性。
1实验拓扑2IP地址规划pc-1 ip:10.0.0.1 255.255.255.0pc-2 ip:20.0.0.1 255.255.255.0pc-3 ip:10.0.0.2 255.255.255.0pc-4 ip:20.0.0.2 255.255.255.0Sw1-vlan 10 ip 10.0.0.11 255.255.255.0Sw1-vlan 20 ip 20.0.0.11 255.255.255.0Sw2-vlan 10 ip 10.0.0.22 255.255.255.0Sw2-vlan 20 ip 20.0.0.22 255.255.255.03实验需求1.按IP地址规划配置好各个接口的IP地址2.如图把pc按图所示加入相应的vlan,并且交换机和pc相连接的是access3.两交换机使用的是三层交换机,在交换机上的vlan配置相应的地址4.在两台Switch设备上配置静态LACP模式链路聚合组,提高两设备之间的带宽与可靠性,5.两设备间的链路具有1条冗余备份链路,当活动链路出现故障链路时,备份链路替代故障链路,保持数据传输的可靠性。
【实验】静态LACP的链路聚合静态LACP模式也称为M∶N模式。
这种⽅式同时可以实现链路负载分担和链路冗余备份的双重功能。
在链路聚合组中M条链路处于活动状态,这些链路负责转发数据并进⾏负载分担,另外N条链路处于⾮活动状态作为备份链路,不转发数据。
当M条链路中有链路出现故障时,系统会从N条备份链路中选择优先级最⾼的接替出现故障的链路,同时这条替换故障链路的备份链路状态变为活动状态开始转发数据。
静态LACP模式与⼿⼯负载分担模式的主要区别为:静态LACP模式有备份链路,⽽⼿⼯负载分担模式所有成员接⼝均处于转发状态,分担负载流量【配置】interface Eth-Trunk10mode lacp-static //配置lacp⽅式的链路聚合trunkport GigabitEthernet 0/0/1 to 0/0/4 //加⼊物理成员接⼝least active-linknumber link-number,配置链路聚合活动接⼝数下限阈值。
//保证最少要有⼏个成员接⼝存活缺省情况下,活动接⼝数下限阈值为1[sw4-Eth-Trunk10]max active-linknumber 3 //配置活动接⼝数⽬上限阀值实际接⼝数量多于阀值时多出来的就是备份链路//抢占延迟是为了链路稳定后才开始真正的抢占[sw4-Eth-Trunk10]dis eth-trunk 10Eth-Trunk10's state information is:Local:LAG ID: 10 WorkingMode: STATICPreempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIPSystem Priority: 32768 System ID: 4c1f-ccbf-59f7Least Active-linknumber: 2 Max Active-linknumber: 3Operate status: up Number Of Up Port In Trunk: 3 //最⼤三个--------------------------------------------------------------------------------ActorPortName Status PortType PortPri PortNo PortKey PortState WeightGigabitEthernet0/0/1 Selected 1GE 32768 2 2609 10111100 1GigabitEthernet0/0/2 Selected 1GE 32768 3 2609 10111100 1GigabitEthernet0/0/3 Selected 1GE 32768 4 2609 10111100 1GigabitEthernet0/0/4 Unselect 1GE 32768 5 2609 10100000 1 //那么有⼀个就作为备份了Partner:--------------------------------------------------------------------------------ActorPortName SysPri SystemID PortPri PortNo PortKey PortStateGigabitEthernet0/0/1 32768 4c1f-ccca-6c8c 32768 2 2609 10111100GigabitEthernet0/0/2 32768 4c1f-ccca-6c8c 32768 3 2609 10111100GigabitEthernet0/0/3 32768 4c1f-ccca-6c8c 32768 4 2609 10111100GigabitEthernet0/0/4 32768 4c1f-ccca-6c8c 32768 5 2609 10110000[sw4]lacp priority 0配置lacp的系统优先级主要是为了区别谁作为链路聚合的主动端优先级默认32768 如果优先级⼀致⽐较系统MAC MAC地址⼩的优先[sw4]interface GigabitEthernet 0/0/3[sw4-GigabitEthernet0/0/3]lacp priority 4096 //配置接⼝优先级链路起来的时候它会优先选择到eth-trunk【交换机两边都需要配置】[sw4]int Eth-Trunk 10[sw4-Eth-Trunk10]lacp preempt enable //开启抢占[sw4-Eth-Trunk10]lacp preempt delay 10 //延迟10s 默认30s当再次开启接⼝抢占成功。
链路聚合的应用场景链路聚合一般部署在核心结点,以便提升整个网络的数据吞吐量链路聚合链路聚合能够提高链路带宽,增强网络可用性,支持负载分担可以是路由器、可以是交换机、可以一端是交换机一端是路由器链路聚合模式手工负载分担模式下所有活动接口都参与数据的转发,分担负载流量LACP模式支持链路备份数据流控制Eth-Trunk链路两端相连的物理接口的数量、速率、双工方式、流控方式The device is running!<Huawei><Huawei>sy<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]sysn[Huawei]sysname lsw1[lsw1]Feb 28 2020 16:45:20-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 4, thechange loop count is 0, and the maximum number of records is 4095.[lsw1]in[lsw1]int[lsw1]interface eth-tr[lsw1]interface Eth-Trunk 1[lsw1-Eth-Trunk1]q[lsw1]int[lsw1]interface g0/0/1[lsw1-GigabitEthernet0/0/1]eth-tr[lsw1-GigabitEthernet0/0/1]eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-GigabitEthernet0/0/1]Feb 28 2020 16:48:38-08:00lsw1 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1has turned into UP state.Feb 28 2020 16:48:40-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 5, thechange loop count is 0, and the maximum number of records is 4095.[lsw1-GigabitEthernet0/0/1]q[lsw1]int g[lsw1]int GigabitEthernet 0/0/2[lsw1-GigabitEthernet0/0/2]eth[lsw1-GigabitEthernet0/0/2]eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-GigabitEthernet0/0/2]Feb 28 2020 16:49:30-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 6, thechange loop count is 0, and the maximum numberof records is 4095.[lsw1-GigabitEthernet0/0/2]q[lsw1]dis eth-tr[lsw1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw1]dis eth-trunk 1The device is running!<Huawei>sy<Huawei>system-viewEnter system view, return user view withCtrl+Z.[Huawei]sysn[Huawei]sysname lsw2[lsw2]Feb 28 2020 16:45:40-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 4, thechange loop count is 0, and the maximum number of records is 4095.[lsw2]int[lsw2]interface eth[lsw2]interface Eth-Trunk 1[lsw2-Eth-Trunk1]tru[lsw2-Eth-Trunk1]trunkport g0/0/1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-Eth-Trunk1]Feb 28 2020 16:51:48-08:00lsw2 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1has turned into UP state.Feb 28 2020 16:51:50-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 5, thechange loop count is 0, and the maximum number of records is 4095.[lsw2-Eth-Trunk1]tru[lsw2-Eth-Trunk1]trunkport g0/0/2Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-Eth-Trunk1]dis eth[lsw2-Eth-Trunk1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw2-Eth-Trunk1]Feb 28 2020 16:52:10-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 6, thechange loop count is 0, and the maximum number of records is 4095.[lsw2-Eth-Trunk1]The device is running!<Huawei><Huawei>sy<Huawei>system-viewEnter system view, return user view withCtrl+Z.[Huawei]sysn[Huawei]sysname lsw1[lsw1]Feb 28 2020 16:45:20-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 4, thechange loop count is 0, and the maximum number of records is 4095.[lsw1]in[lsw1]int[lsw1]interface eth-tr[lsw1]interface Eth-Trunk 1[lsw1-Eth-Trunk1]q[lsw1]int[lsw1]interface g0/0/1[lsw1-GigabitEthernet0/0/1]eth-tr[lsw1-GigabitEthernet0/0/1]eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-GigabitEthernet0/0/1]Feb 28 2020 16:48:38-08:00lsw1 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1has turned into UP state.Feb 28 2020 16:48:40-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 5, thechange loop count is 0, and the maximum number of records is 4095.[lsw1-GigabitEthernet0/0/1]q[lsw1]int g[lsw1]int GigabitEthernet 0/0/2[lsw1-GigabitEthernet0/0/2]eth[lsw1-GigabitEthernet0/0/2]eth-trunk 1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-GigabitEthernet0/0/2]Feb 28 2020 16:49:30-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 6, thechange loop count is 0, and the maximum number of records is 4095.[lsw1-GigabitEthernet0/0/2]q[lsw1]dis eth-tr[lsw1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw1]int[lsw1]interface g0/0/1[lsw1-GigabitEthernet0/0/1]dis thi[lsw1-GigabitEthernet0/0/1]dis this#interface GigabitEthernet0/0/1eth-trunk 1#return[lsw1-GigabitEthernet0/0/1]undo[lsw1-GigabitEthernet0/0/1]undo eth[lsw1-GigabitEthernet0/0/1]undo eth-trunk 1 ^Error:Too many parameters found at '^' position.[lsw1-GigabitEthernet0/0/1]undo eth-trunk Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-GigabitEthernet0/0/1]Feb 28 2020 17:07:31-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed.The current change number is 7, thechange loop count is 0, and the maximum number of records is 4095.[lsw1-GigabitEthernet0/0/1]dis this#interface GigabitEthernet0/0/1#return[lsw1-GigabitEthernet0/0/1]q[lsw1]int g0/0/2[lsw1-GigabitEthernet0/0/2]undo eth[lsw1-GigabitEthernet0/0/2]undo eth-trunk Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-GigabitEthernet0/0/2]Feb 28 2020 17:07:52-08:00lsw1 %%01IFNET/4/IF_STATE(l)[1]:Interface Eth-Trunk1has turned into DOWN state.[lsw1-GigabitEthernet0/0/2]Feb 28 2020 17:08:01-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 8, thechange loop count is 0, and the maximum number of records is 4095.[lsw1-GigabitEthernet0/0/2]dis this#interface GigabitEthernet0/0/2#return[lsw1-GigabitEthernet0/0/2]mod[lsw1-GigabitEthernet0/0/2]mode[lsw1-GigabitEthernet0/0/2][lsw1-GigabitEthernet0/0/2]q[lsw1]et[lsw1]int[lsw1]interface et[lsw1]interface Eth-Trunk 1[lsw1-Eth-Trunk1]mod[lsw1-Eth-Trunk1]mode m[lsw1-Eth-Trunk1]mode manual ?load-balance Load balance working mode[lsw1-Eth-Trunk1]mode manual lo[lsw1-Eth-Trunk1]mode manual load-balance [lsw1-Eth-Trunk1]dis this#interface Eth-Trunk1#return[lsw1-Eth-Trunk1]mode l[lsw1-Eth-Trunk1]mode lacp-static[lsw1-Eth-Trunk1]Feb 28 2020 17:10:01-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 9, thechange loop count is 0, and the maximum number of records is 4095.[lsw1-Eth-Trunk1]tru[lsw1-Eth-Trunk1]trunkport g0/0/1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw1-Eth-Trunk1]tru[lsw1-Eth-Trunk1]trunkport g0/0/2Info: This operation may take a few seconds.Please wait for a moment...Feb 28 2020 17:10:30-08:00lsw1 %%01IFNET/4/IF_STATE(l)[2]:InterfaceVlanif1 hasturned into DOWN state.done.[lsw1-Eth-Trunk1]Feb 28 2020 17:10:31-08:00 lsw1DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed.The current change number is 11, thechange loop count is 0, and the maximum numberof records is 4095.[lsw1-Eth-Trunk1]q[lsw1]dis et[lsw1]dis eth-trunk 1Eth-Trunk1's state information is:Local:LAG ID: 1 WorkingMode: STATICPreempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIPSystem Priority: 32768 System ID:4c1f-ccf6-5ab0Least Active-linknumber: 1 MaxActive-linknumber: 8 Operate status: down Number Of Up Port In Trunk: 0-------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/1 Unselect 1GE 32768 2 305 10100010 1 GigabitEthernet0/0/2 Unselect 1GE 32768 3 305 10100010 1Partner:-------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortStateGigabitEthernet0/0/1 00000-0000-0000 0 0 0 10100011GigabitEthernet0/0/2 00000-0000-0000 0 0 0 10100011[lsw1]Feb 28 2020 17:12:40-08:00lsw1 %%01IFNET/4/IF_STATE(l)[3]:Interface Vlanif1 hasturned into UP state.Feb 28 2020 17:12:40-08:00lsw1 %%01IFNET/4/IF_STATE(l)[4]:Interface Eth-Trunk1has turned into UP state.dis eth-trunk 1 The device is running!<Huawei>sy<Huawei>system-viewEnter system view, return user view withCtrl+Z.[Huawei]sysn[Huawei]sysname lsw2[lsw2]Feb 28 2020 16:45:40-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 4, thechange loop count is 0, and the maximum number of records is 4095.[lsw2]int[lsw2]interface eth[lsw2]interface Eth-Trunk 1[lsw2-Eth-Trunk1]tru[lsw2-Eth-Trunk1]trunkport g0/0/1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-Eth-Trunk1]Feb 28 2020 16:51:48-08:00lsw2 %%01IFNET/4/IF_STATE(l)[0]:InterfaceEth-Trunk1has turned into UP state.Feb 28 2020 16:51:50-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 5, thechange loop count is 0, and the maximum number of records is 4095.[lsw2-Eth-Trunk1]tru[lsw2-Eth-Trunk1]trunkport g0/0/2Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-Eth-Trunk1]dis eth[lsw2-Eth-Trunk1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw2-Eth-Trunk1]Feb 28 2020 16:52:10-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 6, thechange loop count is 0, and the maximum number of records is 4095.[lsw2-Eth-Trunk1]dis et[lsw2-Eth-Trunk1]dis eth-trunkEth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw2-Eth-Trunk1]in[lsw2-Eth-Trunk1]dis[lsw2-Eth-Trunk1]display int[lsw2-Eth-Trunk1]display interface et[lsw2-Eth-Trunk1]display interface Eth-tr [lsw2-Eth-Trunk1]display interface Eth-Trunk Eth-Trunk1 current state : UPLine protocol current state : UPDescription:Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:2G, Current BW: 2G, The Maximum Frame Length is 9216IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc17-7262Current system time: 2020-02-2816:54:43-08:00Input bandwidth utilization : 0%Output bandwidth utilization : 0%-----------------------------------------------------PortName StatusWeight-----------------------------------------------------GigabitEthernet0/0/1 UP 1 GigabitEthernet0/0/2 UP 1-----------------------------------------------------The Number of Ports in Trunk : 2The Number of UP Ports in Trunk : 2[lsw2-Eth-Trunk1]mode[lsw2-Eth-Trunk1]mode ?lacp-static Static working modemanual Manual working mode[lsw2-Eth-Trunk1]mode la[lsw2-Eth-Trunk1]mode lacp-staticError: Error in changing trunk working mode. There is(are) port(s) in the trunk.[lsw2-Eth-Trunk1]mode[lsw2-Eth-Trunk1]mode m[lsw2-Eth-Trunk1]mode manual la[lsw2-Eth-Trunk1]mode manual lac[lsw2-Eth-Trunk1]mode manual lo[lsw2-Eth-Trunk1]mode manual load-balance [lsw2-Eth-Trunk1]mode[lsw2-Eth-Trunk1]mode m[lsw2-Eth-Trunk1]mode manual ?load-balance Load balance working mode[lsw2-Eth-Trunk1]dis et[lsw2-Eth-Trunk1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic:According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2-------------------------------------------------------------------------------- PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw2-Eth-Trunk1]dis eth-trunk 1Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 MaxBandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 2--------------------------------------------------------------------------------PortName StatusWeightGigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1[lsw2-Eth-Trunk1]q[lsw2]int g0/0/1[lsw2-GigabitEthernet0/0/1]undo etr[lsw2-GigabitEthernet0/0/1]undo eth[lsw2-GigabitEthernet0/0/1]undo eth-trunk Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-GigabitEthernet0/0/1]Feb 28 2020 17:11:51-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 7, thechange loop count is 0, and the maximum number of records is 4095.q[lsw2]int g0/0/2[lsw2-GigabitEthernet0/0/2]undo eth[lsw2-GigabitEthernet0/0/2]undo eth-trunk Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-GigabitEthernet0/0/2]Feb 28 2020 17:12:03-08:00lsw2 %%01IFNET/4/IF_STATE(l)[1]:Interface Eth-Trunk1has turned into DOWN state.[lsw2-GigabitEthernet0/0/2]q[lsw2]Feb 28 2020 17:12:11-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 8, thechange loop count is 0, and the maximum number of records is 4095.[lsw2]int eth[lsw2]int Eth-Trunk 1[lsw2-Eth-Trunk1]mode l[lsw2-Eth-Trunk1]mode lacp-static[lsw2-Eth-Trunk1]tr[lsw2-Eth-Trunk1]trunkportFeb 28 2020 17:12:31-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 9, thechange loop count is 0, and the maximum number of records is 4095.^Error:Incomplete command found at '^' position.[lsw2-Eth-Trunk1]trunkport g0/0/1Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-Eth-Trunk1]Feb 28 2020 17:12:40-08:00lsw2 %%01IFNET/4/IF_STATE(l)[2]:Interface Eth-Trunk1has turned into UP state.Feb 28 2020 17:12:41-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 10, thechange loop count is 0, and the maximum number of records is 4095.[lsw2-Eth-Trunk1]trunkport g0/0/2Info: This operation may take a few seconds. Please wait for a moment...done.[lsw2-Eth-Trunk1]Feb 28 2020 17:12:51-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 11, thechange loop count is 0, and the maximum number of records is 4095.[lsw2-Eth-Trunk1]dis this#interface Eth-Trunk1mode lacp-static#return[lsw2-Eth-Trunk1]q[lsw2]dis eth[lsw2]dis eth-trunk 1Eth-Trunk1's state information is:Local:LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic:According to SIP-XOR-DIPSystem Priority: 32768 System ID:4c1f-cc17-7262Least Active-linknumber: 1 MaxActive-linknumber: 8Operate status: up Number Of Up PortIn Trunk: 2--------------------------------------------------------------------------------ActorPortName Status PortTypePortPri PortNo PortKey PortState WeightGigabitEthernet0/0/1 Selected 1GE32768 2 305 10111100 1GigabitEthernet0/0/2 Selected 1GE32768 3 305 10111100 1Partner:-------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/0/1 327684c1f-ccf6-5ab0 32768 2 305 10111100GigabitEthernet0/0/2 327684c1f-ccf6-5ab0 32768 3 305 10111100[lsw2]lo[lsw2]loopback-detect^Error:Incomplete command found at '^' position.[lsw2]loa[lsw2]load-balance ?flow Load balance per flowpacket Load balance per packet[lsw2]load-balance int eth[lsw2]int[lsw2]interface eth[lsw2]interface Eth-Trunk 1[lsw2-Eth-Trunk1]loa[lsw2-Eth-Trunk1]load-balance^Error:Incomplete command found at '^' position.[lsw2-Eth-Trunk1]load-balance ?dst-ip According to destination IP hash arithmeticdst-mac According to destination MAC hash arithmeticsrc-dst-ip According tosource/destination IP hash arithmeticsrc-dst-mac According tosource/destination MAC hash arithmeticsrc-ip According to source IP hash arithmeticsrc-mac According to source MAC hash arithmetic[lsw2-Eth-Trunk1]load-balanceThe device is running!<Huawei>syEnter system view, return user view with Ctrl+Z.[Huawei]sysn[Huawei]sysname^Error:Incomplete command found at '^' position.[Huawei]sysname ar1[ar1]in[ar1]int[ar1]interface eth[ar1]interface Eth-Trunk 1[ar1-Eth-Trunk1]und[ar1-Eth-Trunk1]undo por[ar1-Eth-Trunk1]undo ports[ar1-Eth-Trunk1]undo portswitch[ar1-Eth-Trunk1]ip ad[ar1-Eth-Trunk1]ip address 10.1.34.1 24[ar1-Eth-Trunk1]por[ar1-Eth-Trunk1]porttr[ar1-Eth-Trunk1]tru[ar1-Eth-Trunk1]trunkport g0/0/0Info: This operation may take a few seconds. Please wait for a moment...done.[ar1-Eth-Trunk1]Feb 28 2020 17:20:58-08:00ar1 %%01IFNET/4/IF_STATE(l)[0]:InterfaceEth-Trunk1 has turned into UP state.[ar1-Eth-Trunk1]Feb 28 2020 17:20:58-08:00ar1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IPon the interface Eth-Trunk1 has entered the UP state.[ar1-Eth-Trunk1]trunkport g0/0/1Info: This operation may take a few seconds.Please wait for a moment...done.[ar1-Eth-Trunk1]Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log onThe device is running!<Huawei>syEnter system view, return user view withCtrl+Z.[Huawei]sysn[Huawei]sysname ar1[ar1]sysname ar2[ar2]int[ar2]interface eth[ar2]interface Eth-Trunk 1[ar2-Eth-Trunk1]und[ar2-Eth-Trunk1]undo sw[ar2-Eth-Trunk1]undo swi[ar2-Eth-Trunk1]undo ?am Port isolatearp <Group> arp command grouparp-fake ARP fake entryarp-limit Limit the number of learnt ARPbandwidth Specify mib-referenced bandwidth of the interfacedescription Specify interface descriptiondhcp Dynamic host configure protocoldhcpv6 Dynamic host configure protocol for IPv6enable Enable functiongarp Generic Attribute Registration Protocolgvrp Generic VLAN Registration Protocolicmp Specify ICMP configuration informationigmp-snooping Specify parameters for IGMP-Snoopingip IP packetl2-multicast Specify parameters for Layer 2 multicastleast Least active-linknumber configurationmac-address MAC addressmac-limit MAC limitmax Set trunk maxbandwidth-affected-linknumbermirror Specify Mirror featuremld-snooping Specify parameters forMLD-Snoopingmode Specify configuration mode informationport Switch portport-isolate Port isolateport-security Port securityportswitch Switch port between router and switch modeqos QoS configurationset <Group> set command groupshutdown Shutdown the specified interfacestp Specify Spanning Tree Protocol (STP) configuration informationtraffic-policy Apply specific traffic policytrunkport Add port to trunkvoice-vlan Voice VLAN[ar2-Eth-Trunk1]undo por[ar2-Eth-Trunk1]undo ports[ar2-Eth-Trunk1]undo portswitch[ar2-Eth-Trunk1]ip ad[ar2-Eth-Trunk1]ip address 10.1.34.2 24[ar2-Eth-Trunk1]tr[ar2-Eth-Trunk1]tru[ar2-Eth-Trunk1]trunkport g0/0/0Info: This operation may take a few seconds. Please wait for a moment...done.[ar2-Eth-Trunk1]Feb 28 2020 17:22:41-08:00ar2 %%01IFNET/4/IF_STATE(l)[0]:InterfaceEth-Trunk1 has turned into UP state.[ar2-Eth-Trunk1]Feb 28 2020 17:22:41-08:00ar2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IPon the interface Eth-Trunk1 has entered the UP state.[ar2-Eth-Trunk1]trunkport g0/0/1Info: This operation may take a few seconds. Please wait for a moment...done.[ar2-Eth-Trunk1]dis this[V200R003C00]#interface Eth-Trunk1undo portswitchip address 10.1.34.2 255.255.255.0#return[ar2-Eth-Trunk1]q[ar2]dis int[ar2]dis interface eth[ar2]dis interface Eth-TrunkEth-Trunk1 current state : UPLine protocol current state : UPLast line protocol up time : 2020-02-2817:22:41 UTC-08:00Description:HUAWEI, AR Series, Eth-Trunk1InterfaceRoute Port,Hash arithmetic : According toSIP-XOR-DIP,Maximal BW: 2G, Current BW: 2G, The Maximum Transmit Unit is 1500Internet Address is 10.1.34.2/24IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fcb2-5010Current system time: 2020-02-2817:23:32-08:00Input: 0 packets, 0 bytesUnicast: 0, Multicast: 0Broadcast: 0, Discard: 0Total Error: 0Output: 1 packets, 60 bytesUnicast: 0, Multicast: 0Broadcast: 1, Discard: 0Total Error: 0Input bandwidth utilization : 0%Output bandwidth utilization : 0%-----------------------------------------------------PortName StatusWeight-----------------------------------------------------GigabitEthernet0/0/0 UP 1 GigabitEthernet0/0/1 UP 1-----------------------------------------------------The Number of Ports in Trunk : 2The Number of UP Ports in Trunk : 2[ar2]dis interface Eth-Trunk 1Eth-Trunk1 current state : UPLine protocol current state : UPLast line protocol up time : 2020-02-2817:22:41 UTC-08:00Description:HUAWEI, AR Series, Eth-Trunk1InterfaceRoute Port,Hash arithmetic : According toSIP-XOR-DIP,Maximal BW: 2G, Current BW: 2G, The Maximum Transmit Unit is 1500Internet Address is 10.1.34.2/24IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fcb2-5010Current system time: 2020-02-2817:23:39-08:00Input: 0 packets, 0 bytesUnicast: 0, Multicast: 0Broadcast: 0, Discard: 0Total Error: 0Output: 1 packets, 60 bytesUnicast: 0, Multicast: 0Broadcast: 1, Discard: 0Total Error: 0Input bandwidth utilization : 0%Output bandwidth utilization : 0%-----------------------------------------------------PortName StatusWeight-----------------------------------------------------GigabitEthernet0/0/0 UP 1 GigabitEthernet0/0/1 UP 1-----------------------------------------------------The Number of Ports in Trunk : 2The Number of UP Ports in Trunk : 2[ar2]dis ip int b[ar2]dis ip int brief*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physicalis 2The number of interface that is DOWN inPhysical is 1The number of interface that is UP in Protocolis 2The number of interface that is DOWN inProtocol is 1Interface IPAddress/Mask Physical ProtocolEth-Trunk1 10.1.34.2/24 up upGigabitEthernet0/0/2 unassigned down downNULL0 unassignedup up(s)[ar2]备份<lsw2>sysEnter system view, return user view withCtrl+Z.[lsw2]int[lsw2]interface et[lsw2]interface Eth-Trunk 1[lsw2-Eth-Trunk1]max[lsw2-Eth-Trunk1]max ac[lsw2-Eth-Trunk1]max active-linknumber 2 [lsw2-Eth-Trunk1]Feb 28 2020 20:08:15-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 12, thechange loop count is 0, and the maximum numberof records is 4095.[lsw2-Eth-Trunk1]tr[lsw2-Eth-Trunk1]trunkport g0/0/3Info: This operation may take a few seconds.Please wait for a moment...done.[lsw2-Eth-Trunk1]Feb 28 2020 20:08:35-08:00 lsw2DS/4/DATASYNC_CFGCHANGE:OID1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed.The current change number is 13, thechange loop count is 0, and the maximum numberof records is 4095.[lsw2-Eth-Trunk1]q[lsw2]dis eth[lsw2]dis eth-trunk 1Eth-Trunk1's state information is:Local:LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic:According to SIP-XOR-DIPSystem Priority: 32768 System ID:。
链路聚合技术文档目录1.以太网链路聚合作用 (1)2.链路聚合的基本概念 (1)2.1聚合接口 (1)2.2聚合组 (1)2.3成员端口 (1)2.4操作Key (2)2.5配置分类 (2)2.6参考端口 (2)2.7LACP协议 (2)3.聚合模式 (3)3.1静态聚合模式 (4)3.2动态聚合模式 (5)4.聚合负载分担类型 (7)1. 以太网链路聚合作用链路聚合是将多个物理以太网端口聚合在一起形成一个逻辑上的聚合组,使用链路聚合服务的上层实体把同一聚合组内的多条物理链路视为一条逻辑链路。
链路聚合可以实现出/入负荷在聚合组中各个成员端口之间分担,以增加带宽。
同时,同一聚合组的各个成员端口之间彼此动态备份,提高了连接可靠性。
如图1所示,Device A与Device B之间通过三条以太网物理链路相连,将这三条链路捆绑在一起,就成为了一条逻辑链路Link aggregation 1,这条逻辑链路的带宽等于原先三条以太网物理链路的带宽总和,从而达到了增加链路带宽的目的;同时,这三条以太网物理链路相互备份,有效地提高了链路的可靠性。
图1 链路聚合示意图2. 链路聚合的基本概念2.1 聚合接口聚合接口是一个逻辑接口,它可以分为二层聚合接口和三层聚合接口。
2.2 聚合组聚合组是一组以太网接口的集合。
聚合组是随着聚合接口的创建而自动生成的,其编号与聚合接口编号相同。
每个聚合组唯一对应着一个逻辑接口,我们称之为聚合接口。
聚合组/聚合接口可以分为以下两种类型:(1)二层聚合组/二层聚合接口:二层聚合组的成员端口全部为二层以太网接口,其对应的聚合接口称为二层聚合接口(Bridge-aggregation Interface,BAGG)。
(2)三层聚合组/三层聚合接口:三层聚合组的成员端口全部为三层以太网接口,其对应的聚合接口称为三层聚合接口(Route-aggregation Interface,RAGG)。
2.3 成员端口聚合组中的以太网接口就称为该聚合组的成员端口,成员端口的状态具有以下两种状态:(1)选中(Selected)状态:此状态下的成员端口可以参与用户数据的转发,处于此状态的成员端口简称为“选中端口”。