概念
1.主交换机:主交换机(Master)负责管理整个堆叠。堆叠中只有一台主交换机。
2.备交换机:备交换机(Standby)是主交换机的备份交换机。当主交换机故障时,备交换机会接替原主交换机的所有业务。堆叠中只有一台备交换机。
3.从交换机:从交换机(Slave)主要用于业务转发,从交换机数量越多,堆叠系统的转发能力越强。除主交换机和备交换机外,堆叠中其他所有的成员交换机都是从交换机。
4.堆叠ID:堆叠ID,即成员交换机的槽位号(Slot ID),用来标识和管理成员交换机,堆叠中所有成员交换机的堆叠ID都是唯一的。
5.堆叠优先级:堆叠优先级是成员交换机的一个属性,主要用于角色选举过程中确定成员交换机的角色,优先级值越大表示优先级越高,优先级越高当选为主交换机的可能性越大。
配置实例
堆叠配置方法:
1.安装ES5D21VST000堆叠后插卡为SwitchA、SwitchB、SwitchC安装ES5D21VST000堆叠后插卡(下图中的堆叠卡就是ES5D21VST000堆叠卡)

交换机堆叠接线方法,需要交叉接线
2.配置堆叠ID和堆叠优先级
[RuigeA] stack slot 0 priority 200 //配置第一台交换机的堆叠优先级
Warning:Please do not frequently modify Priority, it will make the stack split, continue?[Y/N]:y
[RuigeB] stack slot 0 renumber 1 //修改交换机的slot ID默认都是1的,所以需要手动修改
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Please do not frequently modify slot ID, it will make the stack split. Continue?[Y/N]:y
Info: Stack configuration has been changed, and the device needs to restart to make the configuration effective.
//第二台交换机不需要配置堆叠优先级了,因为交换机默认的堆叠优先级是100

交换机的堆叠模块以及堆叠线
配置完成后,验证配置结果:
验证配置结果# 查看堆叠系统的基本信息。
display stack
Stack topology type: Ring
Stack system MAC: 0200-0000-01ab
MAC switch delay time: 10 min
Stack reserved vlan: 4093
Slot of the active management port: 0
Slot Role Mac address Priority Device type
-------------------------------------------------------------
0 Master xxx 200 S5720-36C-EI-AC
1 Standby xxx 100 S5720-36C-EI-AC

光模块和堆叠线缆
配置完成后,上架设备,连接好堆叠线,加电,然后设备就完成堆叠了。

今天的分享就到这里,大家都学会了吗?
欢迎关注我的头条号,私信交流,学习更多网络技术!