百度解释
链路聚合(英语:Link Aggregation)是一个计算机网络术语,指将多个物理端口汇聚在一起,形成一个逻辑端口,以实现出/入流量吞吐量在各成员端口的负荷分担,交换机根据用户配置的端口负荷分担策略决定网络封包从哪个成员端口发送到对端的交换机。当交换机检测到其中一个成员端口的链路发生故障时,就停止在此端口上发送封包,并根据负荷分担策略在剩下的链路中重新计算报文的发送端口,故障端口恢复后再次担任收发端口。链路聚合在增加链路带宽、实现链路传输弹性和工程冗余等方面是一项很重要的技术。
简介:
链路聚合(英语:Link Aggregation)是一个
计算机网络术语,指将多个物理端口汇聚在一起,形成一个逻辑端口,以实现出/入流量
吞吐量在各成员端口的负荷分担,交换机根据用户配置的端口负荷分担策略决定
网络封包从哪个成员端口发送到对端的交换机。当交换机检测到其中一个成员端口的链路发生故障时,就停止在此端口上发送封包,并根据负荷分担策略在剩下的链路中重新计算报文的发送端口,故障端口恢复后再次担任收发端口。链路聚合在增加链路带宽、实现链路传输弹性和工程冗余等方面是一项很重要的技术。
进一步用来描述该方法的总括术语还包括port trunking,link bundling,以太网/网络/ NIC绑定(Ethernet/network/NIC bonding)或网卡绑定(NIC teaming)。这些总括术语不仅包括与供应商无关的标准,如定义于IEEE 802.1ax和
IEEE 802.3ad用于
以太网的链路聚合控制协议(LACP),或以前的
IEEE 802.3ad定义,也包括各种有专利的解决方案。
[1]
单vlan配置链路聚合
拓扑图:
1 The device is running! 3 <Huawei> 4 <Huawei>undo ter m #关闭日志回显 5 Info: Current terminal monitor is off. 6 <Huawei>sys 7 Enter system view, return user view with Ctrl+Z. 8 [Huawei]int eth 9 [Huawei]int Ethernet 10 [Huawei]int Eth-Trunk 1 #创建链路聚合端口 11 [Huawei-Eth-Trunk1]trun 12 [Huawei-Eth-Trunk1]trunkport e 0/0/2 to 0/0/3 #将e0/0/2和e0/0/3接口加入到聚合端口中 13 Info: This operation may take a few seconds. Please wait for a moment...done. 14 [Huawei-Eth-Trunk1]port link tr 15 [Huawei-Eth-Trunk1]port link trunk #配置聚合端口的模式 16 [Huawei-Eth-Trunk1]port tr all vlan 10 #配置放行vlan10 17 [Huawei-Eth-Trunk1]q 18 [Huawei]vlan 10 #创建vlan10 19 [Huawei-vlan10]int vlan 10 20 [Huawei-Vlanif10]q 21 [Huawei]int e0/0/1 #配置接口模式 22 [Huawei-Ethernet0/0/1]port link acc 23 [Huawei-Ethernet0/0/1]port def vlan 10 24 [Huawei-Ethernet0/0/1]
1 The device is running! 2 3 <Huawei>undo ter m 4 Info: Current terminal monitor is off. 5 <Huawei>sys 6 Enter system view, return user view with Ctrl+Z. 7 [Huawei]vlan 10 8 [Huawei-vlan10]int eth-trunk 1 9 [Huawei-Eth-Trunk1]trunk e 0/0/2 to 0/0/3 10 Info: This operation may take a few seconds. Please wait for a moment...done. 11 [Huawei-Eth-Trunk1]port link tr 12 [Huawei-Eth-Trunk1]port tr all vlan 10 13 [Huawei-Eth-Trunk1]q 14 [Huawei]int e0/0/1 15 [Huawei-Ethernet0/0/1]port link acc 16 [Huawei-Ethernet0/0/1]port def vlan 10 17 [Huawei-Ethernet0/0/1]
结果:配置需要时间生效
跨vlan配置链路聚合
拓扑图:
1 The device is running! 2 3 <Huawei> 4 <Huawei>undo ter m 5 Info: Current terminal monitor is off. 6 <Huawei>sys 7 Enter system view, return user view with Ctrl+Z. 8 [Huawei]int vlan 2 9 Error: The VLAN does not exist. 10 [Huawei]vlan 2 11 [Huawei-vlan2]int vlan 2 12 [Huawei-Vlanif2]ip add 192.168.2.254 24 13 [Huawei-Vlanif2]int vlan 3 14 Error: The VLAN does not exist. 15 [Huawei]vlan 3 16 [Huawei-vlan3]int vlan 3 17 [Huawei-Vlanif3]ip add 192.168.3.2 24 18 [Huawei-Vlanif3]int e0/0/1 19 [Huawei-Ethernet0/0/1]port link acc 20 [Huawei-Ethernet0/0/1]port def vlan 2 21 [Huawei-Ethernet0/0/1]int eth-trunk 23 22 [Huawei-Eth-Trunk23]tu 23 [Huawei-Eth-Trunk23]trun 24 [Huawei-Eth-Trunk23]trunkport e 0/0/2 to 0/0/3 25 Info: This operation may take a few seconds. Please wait for a moment...done. 26 [Huawei-Eth-Trunk23]port link trunk 27 [Huawei-Eth-Trunk23]port trunk all vlan 2 3 28 [Huawei-Eth-Trunk23]q 29 [Huawei]ip route-static 192.168.3.0 24 192.168.2.3 30 [Huawei]
1 The device is running! 2 3 <Huawei>undo ter m 4 Info: Current terminal monitor is off. 5 <Huawei>sys 6 Enter system view, return user view with Ctrl+Z. 7 [Huawei]vlan b 2 3 8 Info: This operation may take a few seconds. Please wait for a moment...done. 9 [Huawei]int vlan 2 10 [Huawei-Vlanif2]ip add 192.168.2.3 24 11 [Huawei-Vlanif2]int vlan 3 12 [Huawei-Vlanif3]ip add 192.168.3.254 24 13 [Huawei-Vlanif3]int e0/0/1 14 [Huawei-Ethernet0/0/1]port link acc 15 [Huawei-Ethernet0/0/1]port def vlan 3 16 [Huawei-Ethernet0/0/1]int eth-trunk 23 17 [Huawei-Eth-Trunk23]trunk e 0/0/2 to 0/0/3 18 Info: This operation may take a few seconds. Please wait for a moment...done. 19 [Huawei-Eth-Trunk23]port link trunk 20 [Huawei-Eth-Trunk23]port trunk all vlan 2 3 21 [Huawei-Eth-Trunk23]q 22 [Huawei]ip route-static 192.168.2.0 24 192.168.3.2 23 [Huawei]
结果: