ensp-----链路聚合实验

一.实验原理

  • 以太网链路聚合:Eth-Trunk简称链路聚合,它通过将多条以太网物理链路捆绑在一起成为一条逻辑链路,从而实现增加链路带宽的母的。此外,这些捆绑在一起的链路通过相互的动态备份,有效的提高了链路的可靠性
  • 链路聚合分为手工模式和LACP模式
  • LACP模式需要有链路聚合控制协议LACP的参与。当需要在两个直连设备间提供一个较大的链路带宽而设备支持LACP协议时,建议使用LACP模式。LACP模式不仅可以实现增加带宽、提高可靠性、负载分担的目的,而且可以提高Eth-Trunk的容错性、提供备份功能
  • LACP模式下,部分是活动链路,所有活动链路均参与数据转发。如果某条活动链路故障,链路聚合组自动在非活动链路中选择一条链路作为活动链路,参与数据转发的链路数目不变
  • 链路捆绑有二层设备之间的链路捆绑,三层设备之间的捆绑,二层设备和三层设备之间的捆绑

二.链路聚合混合实验

  • 实验拓补图

  • 配置R1
<Huawei>sys
[Huawei]sys R1
[R1]int Eth-Trunk 1	
[R1-Eth-Trunk1]trunkport g 0/0/1
[R1-Eth-Trunk1]trunkport g 0/0/3
[R1-Eth-Trunk1]ip add 12.0.0.1 30
[R1-Eth-Trunk1]int Eth-Trunk 2
[R1-Eth-Trunk2]trunkport g 0/0/0 
[R1-Eth-Trunk2]trunkport g 0/0/2
[R1-Eth-Trunk2]ip add 192.168.10.1 24
[R1-Eth-Trunk2]q
[R1]ip route	
[R1]ip route-static 192.168.20.0 24 12.0.0.2
[R1]int Eth-Trunk 2
[R1-Eth-Trunk2]dis this
#
interface Eth-Trunk2
 ip address 192.168.10.1 255.255.255.0
#
  • 配置R2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]un in en

Info: Information center is disabled.

[R2]int Eth-Trunk 1

[R2-Eth-Trunk1]trunkport g 0/0/0
[R2-Eth-Trunk1]trunkport g 0/0/3
[R2-Eth-Trunk1]ip add 12.0.0.2 30
[R2-Eth-Trunk1]int Eth-Trunk 2
[R2-Eth-Trunk2]trunkport g 0/0/1 to 0/0/2
[R2-Eth-Trunk2]ip add 192.168.20.1 24
[R2-Eth-Trunk2]q
	
[R2]ip route-static 192.168.10.0 24 12.0.0.1
  • 配置sw1
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw1
[sw1]un in en
Info: Information center is disabled.
[sw1]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.

[sw1]int Eth-Trunk 2

[sw1-Eth-Trunk2]trunkport g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw1-Eth-Trunk2]p l a
[sw1-Eth-Trunk2]p d v 10
[sw1-Eth-Trunk2]un sh
Info: Interface Eth-Trunk2 is not shutdown.
[sw1-Eth-Trunk2]int Eth-Trunk 1
[sw1-Eth-Trunk1]trunkport e 0/0/3 to 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw1-Eth-Trunk1]p l t 
[sw1-Eth-Trunk1]p t a v a
[sw1-Eth-Trunk1]un sh
Info: Interface Eth-Trunk1 is not shutdown.
[sw1-Eth-Trunk1]int e0/0/1
[sw1-Ethernet0/0/1]p l a
[sw1-Ethernet0/0/1]p d v 10
[sw1-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]p l a
[sw1-Ethernet0/0/2]p d v 20
[sw1-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
  • 配置sw2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw2
[sw2]un in en
Info: Information center is disabled.

[sw2]int Eth-Trunk 2
[sw2-Eth-Trunk2]q
[sw2]v b 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw2]int Eth-Trunk 2	
[sw2-Eth-Trunk2]trunkport g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw2-Eth-Trunk2]p l a
[sw2-Eth-Trunk2]p d v 20
[sw2-Eth-Trunk2]un sh
Info: Interface Eth-Trunk2 is not shutdown.
[sw2-Eth-Trunk2]int Eth-Trunk 1
[sw2-Eth-Trunk1]tr	
[sw2-Eth-Trunk1]trunkport e 0/0/3 to 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw2-Eth-Trunk1]p l t
[sw2-Eth-Trunk1]p t a v a
[sw2-Eth-Trunk1]un sh
Info: Interface Eth-Trunk1 is not shutdown.
[sw2-Eth-Trunk1]int e0/0/1
[sw2-Ethernet0/0/1]p l a
[sw2-Ethernet0/0/1]p d v 10
[sw2-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw2-Ethernet0/0/1]int e0/0/2
[sw2-Ethernet0/0/2]p l a
[sw2-Ethernet0/0/2]p d v 20
[sw2-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
  • PC机的配置与ping通图

发布了121 篇原创文章 · 获赞 136 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_42761527/article/details/102986123