堆叠:交换机和路由器都可以和堆叠,也就是把若干个物理设备虚拟为一个设备,增加了可靠性,呈现方式一般都是以链路聚合的方式。
实验要求:
实验拓扑:
交换机S1上配置
[S1]int Eth-Trunk 1 先创建链路聚合组
[S1]int e0/0/10 逐一加入要进入链路聚合组的端口
[S1-Ethernet0/0/10]eth-trunk 1
[S1-Ethernet0/0/10]int e0/0/15
[S1-Ethernet0/0/15]eth-trunk 1
[S1-Ethernet0/0/15]int e0/0/20
[S1-Ethernet0/0/20]eth-trunk 1
[S1-Ethernet0/0/20]
交换机S2上配置
[S2]int Eth-Trunk 1
[S2]int e0/0/10
[S2-Ethernet0/0/10]eth-trunk 1
[S2-Ethernet0/0/10]int e0/0/15
[S2-Ethernet0/0/15]eth-trunk 1
[S2-Ethernet0/0/15]int e0/0/20
[S2-Ethernet0/0/20]eth-trunk 1
[S2-Ethernet0/0/20]
查看链接聚合组情况[S1]dis int eth-trunk 1
[S2]dis int eth-trunk 1
小结:将拓扑中的三条链路进行了聚合,聚合后的名称为eth-trunk 1
如何实现相同vlan跨交换机通信vlan10 和vlan10中的终端通信,vlan20和vlan20中的终端通信。
解决方式,将eth-trunk 1配置为trunk链路
[S1]vlan b 10 20
Info: This operation may take a few seconds. Please wait for a moment…done.
[S1]int e0/0/1
[S1-Ethernet0/0/1]p l a
[S1-Ethernet0/0/1]p d v 10
[S1-Ethernet0/0/1]int e0/0/2
[S1-Ethernet0/0/2]p l a
[S1-Ethernet0/0/2]p d v 20
[S1-Ethernet0/0/2]
[S2]vlan b 10 20
Info: This operation may take a few seconds. Please wait for a moment…done.
[S2]int e0/0/1
[S2-Ethernet0/0/1]p l a
[S2-Ethernet0/0/1]p d v 10
[S2-Ethernet0/0/1]int e0/0/2
[S2-Ethernet0/0/2]p l a
[S2-Ethernet0/0/2]p d v 20
[S2-Ethernet0/0/2]
给聚合链路组配置trunk模式
[S1]int Eth-t
[S1]int Eth-Trunk 1
[S1-Eth-Trunk1]p l t
[S1-Eth-Trunk1]p t a v 10 20
[S1-Eth-Trunk1]
[S2]int Eth-Trunk 1
[S2-Eth-Trunk1]p l t
[S2-Eth-Trunk1]p t a v 10 20
[S2-Eth-Trunk1]
测试网络的连通性问题
测试链路可靠性
把交换机S1上的e0/0/10口宕掉
继续做可靠性验证,在S2上关闭e0/0/15口,如下图所示
测试网络联通(两条路都断了,但通信没有中断)
小结:通过链路聚合能够实现网络通信的安全性和可靠性。