堆叠交换机配置

一、注意

1.交换机支持堆叠

2.注意交换机型号(型号可不一致,具体看官方文档)ios版本必须都保持一致。

3.堆叠线(线有0.5m,3m,具体接法参看官方文档

4.不同型号的交换机支持堆叠数量不一样(2960-S 支持4台,3750支持9) 

二.配置命令

switch 1 provision ws-c3750g-24ts   指定设备型号

switch 1 priority 15  更改设备优先级((默认为1)同时开机的话,大的优先级为master

switch 2 provision ws-c3750g-24ts

switch 2 priority 14

2960S(config)#switch 1 renumber 2  //将交换机原来默认的序号1改为2

2960S#reload slot 2  //更改必须重启才能生效(序号2生效)

三.检测命令

show version 最后几行可显示堆叠信息

show platform stack-manager all 显示所有交换堆叠的信息
show switch
显示堆叠交换机的汇总信息
show switch 1
显示一号交换机的信息
show switch detail
显示堆叠成员明细的信息
show switch neighbors
显示堆叠邻居的完整信息
show switch stack-ports
显示堆叠交换机的完整端口信息

 

四.区分masterslave

1.观察灯,master灯亮的就是  2.show switch也可以看到

.IOS交换机中的全带宽和半带宽堆叠连接

     Cisco IOS交换机的StackWise堆叠连接中,依据其堆叠性能和可冗余特性划分为两种连接类型,那就是我们常用的全带宽连接(full bandwidth connections)和半带宽连接(half bandwidth connections)。

1. 全带宽连接

所谓全带宽(2*32 Gb/s=64 Gb/s)连接,就是堆叠成员交换机中所有StackWise端口都参与了连接,充分利用了各堆叠端口的带宽性能(相当于全双工模式),即使其中任何一条电缆(假设上图figure83m电缆)连接中断了,堆叠中的三台交换机仍可以实现相互通信,只不过此时它只能实现半带宽连接,而且不能提供连接冗余特性

 

六.Master/slave择规则

Stack Election Rules

When multiple physical members are present in the stack, one of the members will be elected as the stack master. There can only be one master and up to three backups 1:3.

The election rules used by FlexStack in choosing a master are applied in this order:

1. Switch that is the current master

2. Switch with higher priority

3. Switch that has configuration file

4. Switch with highest uptime

5. Switch with lowest MAC address block

When new switches join an existing stack, then rules 1 and 2 will be applied.

When new switches join an existing stack, then rules 1 and 2 will be applied.

When two standalone switches are joined together, having no switch priority configured, and both having existing

configuration files, then the switch with the longest uptime will be chosen.

To have a specific member elected as master, two methods can be used.

1. Set the priority of the desired member to be higher than all other members. This is rule 2 above.

a. Example of configuring member 1 to have priority 14:

C2960S-48(config)#switch 1 priority 14

b. A reboot of the current master will be required after this to change the active master. Just configuring the

priority will not by itself change the active master. Save the configuration before rebooting.

2. When the switches boot, and after they have completed power-on self-test (POST), there is a delay of approximately 2 minutes while the switches wait for all switches that could be in the stack to boot. This 2-minute delay is called the election window. Network administrators can take advantage of this window by first powering up only the desired master switch. Once the election window closes, this switch will become the master of a

stack of one. Any subsequent switches that boot after the first switch will become members of the existing stack.The switch with the lowest MAC address is used to break the tie in those scenarios in which the other rules cannot be applied.

It is desirable for network administrators to make a specific switch in the stack the master. This could be the topmost switch or the bottommost switch. For switch identification purposes knowing how the members are connected is an advantage. If a switch needs to be replaced, then it is very convenient to know where that switch is located in relation to the other stack members.