cisco交換機堆疊


堆疊交換機配置

一、注意

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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章