Стек из коммутаторов Catalyst C3750 Печать
Добавил(а) microsin   

Коммутаторы C3750 можно объединять в стек, при этом они работают как физически единый коммутатор. Стек на C3750 особенно удобен тем, что можно с наращивать количество портов стекового коммутатора, не перезагружая уже работающее оборудование - функциональность сети никак при этом не страдает.

Процедура организации стека довольно проста. На задней стенке есть 2 разъема (Cisco StackWise ports), промаркированные как STACK1 и STACK2. Чтобы соединить в стек 2 коммутатора, достаточно одного стекового кабеля, при этом не имеет значения, в какой из разъемов его втыкать. Я соединил разъем STACK1 на старом коммутаторе (который находится в рабочем режиме) с разъемом STACK2 на новом коммутаторе (который добавляется в стек).

Процесс по шагам (на примере подключения к работающему коммутатору Master3750 нового C3750-new):

1. Нужно убедиться, что версии IOS на обоих коммутаторах одинаковые, иначе при соединении коммутаторов стек не получится:
Master3750#show logging
...
000178: Aug 26 14:00:15: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 1 has changed to state UP
000179: Aug 26 14:00:20: %STACKMGR-4-SWITCH_ADDED_VM: Switch 2 has been ADDED to the stack (VERSION_MISMATCH)
000181: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_COPY_SW_INITIATED: Auto-copy-software process initiated for switch number(s) 2
000182: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_COPY_SW:
000183: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_COPY_SW: Searching for stack member to act
000184: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_COPY_SW: as software donor...
000185: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_COPY_SW: Software was not copied
000186: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW_INITIATED: Auto-advise-software process initiated for switch number(s) 2
000187: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW:
000188: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW:
000189: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: Systems with incompatible software
000190: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: have been added to the stack.  The
000191: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: software running on all of the stack
000192: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: members has been scanned, and it has
000193: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: been determined that the stack can be
000194: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: repaired by issuing the following
000195: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: command(s):
000196: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW:
000197: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW:     archive copy-sw /force-reload /overwrite /dest 1 2
000198: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW:
000199: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: Note that this operation
000200: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: will temporarily interrupt
000201: Aug 26 14:02:20: %IMAGEMGR-6-AUTO_ADVISE_SW: network operation.
Master3750#show switch
Switch/Stack Mac Address : 0019.2f52.b980
                                           H/W   Current
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
*1       Master 0019.2f52.b980     10     0       Ready              
 2       Member 0013.7fc1.2300     1      2       Version Mismatch

Если Вы соединили коммутаторы в стек кабелем, но стек не собрался, есть возможность обращаться к флешам каждого коммутатора, входящего в стек - чтобы сменить IOS на одном из коммутаторов и добиться совпадения версий:
Master3750#show flash:

Directory of flash:/

    2  -rwx         796   Jun 3 2008 11:11:45 +04:00  vlan.dat
    3  -rwx       12647  Aug 26 2008 17:14:17 +04:00  config.text
    4  -rwx        1934  Aug 26 2008 17:14:17 +04:00  private-config.text
    5  drwx         192   Mar 1 1993 03:06:11 +03:00  c3750-ipbase-mz.122-25.SEB4
  363  -rwx     8754202   Mar 1 1993 04:02:09 +03:00  c3750-advipservicesk9-mz.122-35.SE.bin
  364  -rwx        2072  Aug 26 2008 17:14:17 +04:00  multiple-fs
  365  -rwx         616   Mar 1 1993 03:07:52 +03:00  vlan-static.dat
  367  -rwx        7406   Jan 7 2007 19:26:54 +03:00  running.cfg
  368  -rwx    10761792  Aug 25 2008 22:25:02 +04:00  c3750-advipservicesk9-mz.122-44.SE2.bin

32514048 bytes total (5861888 bytes free)
Master3750#show flash1:

Directory of flash:/

    2  -rwx         796   Jun 3 2008 11:11:45 +04:00  vlan.dat
    3  -rwx       12647  Aug 26 2008 17:14:17 +04:00  config.text
    4  -rwx        1934  Aug 26 2008 17:14:17 +04:00  private-config.text
    5  drwx         192   Mar 1 1993 03:06:11 +03:00  c3750-ipbase-mz.122-25.SEB4
  363  -rwx     8754202   Mar 1 1993 04:02:09 +03:00  c3750-advipservicesk9-mz.122-35.SE.bin
  364  -rwx        2072  Aug 26 2008 17:14:17 +04:00  multiple-fs
  365  -rwx         616   Mar 1 1993 03:07:52 +03:00  vlan-static.dat
  367  -rwx        7406   Jan 7 2007 19:26:54 +03:00  running.cfg
  368  -rwx    10761792  Aug 25 2008 22:25:02 +04:00  c3750-advipservicesk9-mz.122-44.SE2.bin

32514048 bytes total (5861888 bytes free)
Master3750#show flash2:

Directory of flash2:/

    2  drwx         128   Mar 1 1993 03:14:35 +03:00  c3750-ipbase-mz.122-25.SEE3
  455  -rwx         105   Mar 1 1993 03:08:07 +03:00  info
  456  -rwx       12647  Aug 26 2008 17:14:18 +04:00  config.text
    5  -rwx        1934  Aug 26 2008 17:14:18 +04:00  private-config.text
    3  -rwx    10761792   Mar 1 1993 03:08:13 +03:00  c3750-advipservicesk9-mz.122-44.SE2.bin
    6  -rwx         796   Mar 1 1993 03:01:08 +03:00  vlan.dat
    7  -rwx        2072  Aug 26 2008 14:17:05 +04:00  multiple-fs

15998976 bytes total (5165568 bytes free)
Master3750#show flash3:
                             ^
% Invalid input detected at '^' marker.

Очевидно, что flash: и flash1: указывают на одну и ту же память. Нас интересует flash2: которая ссылается на IOS добавляемого коммутатора - именно на нем мы можем безболезненно сменить IOS, не теряя работоспособности сети. Внимание - flash2: почему-то не поддерживает проверку файлов IOS (команда verify).
Master3750#show flash2:

Directory of flash2:/

    2  drwx         128   Mar 1 1993 03:14:35 +03:00  c3750-ipbase-mz.122-25.SEE3
  455  -rwx         105   Mar 1 1993 03:08:07 +03:00  info
  456  -rwx        1398   Mar 1 1993 03:02:31 +03:00  config.text
  457  -rwx           5   Mar 1 1993 03:02:31 +03:00  private-config.text
    3  -rwx     8764425   Mar 1 1993 03:29:21 +03:00  c3750-advipservicesk9-mz.122-35.SE5.bin

15998976 bytes total (7179264 bytes free)
Master3750#del flash2:c3750-advipservicesk9-mz.122-35.SE5.bin
Delete filename [c3750-advipservicesk9-mz.122-35.SE5.bin]?
Delete flash2:c3750-advipservicesk9-mz.122-35.SE5.bin? [confirm]
Master3750#copy tftp:c3750-advipservicesk9-mz.122-44.SE2.bin flash2:
Address or name of remote host []? 10.51.2.212
Destination filename [c3750-advipservicesk9-mz.122-44.SE2.bin]?
Accessing tftp://10.51.2.212/c3750-advipservicesk9-mz.122-44.SE2.bin...
Loading c3750-advipservicesk9-mz.122-44.SE2.bin from 10.51.2.212 (via Vlan51): !OO!OO!OO!OO!OO!OO!OO!OO!OOO!OO!O!OO!OO!OO!OO!OO!OOO!OO!OO!OO!OO!O!OO!OO!OOO!OO!OO!OO!OO!OO!OO!O!OOO!OO!OO!OO!OO!OO!OO!OO!OO!OO!
[OK - 10761792 bytes]

10761792 bytes copied in 249.578 secs (43120 bytes/sec)
Master3750#verify flash2:c3750-advipservicesk9-mz.122-44.SE2.bin
%Filesystem does not support verify operations

2. Очищаем конфигурацию нового коммутатора, который добавляем в стек. Эта операция влияет на выбор "мастера стека" - того коммутатора, чья текущая конфигурация выбирается за основу. Всего существует 6 правил для выбора мастера (см. http://www.cisco.com/en/US/products/hw/switches/ps5023/products_configuration_example09186a00807811ad.shtml#election ), и одно из этих правил (№3) связано с фактом - настроены ли как нибудь интерфейсы в конфигурации. Когда к уже работающему коммутатору подключается новый (как в нашем примере) эти правила не действуют, но все-таки перестраховаться не помешает:
C3750-new#erase startup-config
C3750-new#write

3. Новый коммутатор обесточиваем, подключаем стековым кабелем к старому, уже работающему коммутатору. Включаем питание. Ждем, когда новый коммутатор загрузится.
Base ethernet MAC Address: 00:13:7f:c1:23:00
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 7 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 10817024
flashfs[0]: Bytes available: 5181952
flashfs[0]: flashfs fsck took 9 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs) installed, fsid: 3
done.
Loading "flash:/c3750-ipbase-mz.122-25.SEE3/c3750-ipbase-mz.122-25.SEE3.bin"...flash:/c3750-ipbase-mz.122-25.SEE3/c3750-ipbase-mz.122-25.SEE3.bin: no such file or directory

Error loading "flash:/c3750-ipbase-mz.122-25.SEE3/c3750-ipbase-mz.122-25.SEE3.bin"

Interrupt within 5 seconds to abort boot process.
Loading "flash:/c3750-advipservicesk9-mz.122-44.SE2.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
...
@@@@@@@@@@@@@@@@@@
File "flash:/c3750-advipservicesk9-mz.122-44.SE2.bin" uncompressed and installed, entry point: 0x3000
executing...

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

Cisco IOS Software, C3750 Software (C3750-ADVIPSERVICESK9-M), Version 12.2(44)SE2, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Thu 01-May-08 15:42 by antonino
Image text-base: 0x00003000, data-base: 0x01840000

Initializing flashfs...

flashfs[1]: 7 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 15998976
flashfs[1]: Bytes used: 10817024
flashfs[1]: Bytes available: 5181952
flashfs[1]: flashfs fsck took 2 seconds.
flashfs[1]: Initialization complete....done Initializing flashfs.

POST: CPU MIC register Tests : Begin
POST: CPU MIC register Tests : End, Status Passed

POST: PortASIC Memory Tests : Begin
POST: PortASIC Memory Tests : End, Status Passed

POST: CPU MIC interface Loopback Tests : Begin
POST: CPU MIC interface Loopback Tests : End, Status Passed

POST: PortASIC RingLoopback Tests : Begin
POST: PortASIC RingLoopback Tests : End, Status Passed

SM: Detected stack cables at PORT2

Waiting for Stack Master Election...
POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End, Status Passed

POST: No Cable found on stack port 1

POST: PortASIC Stack Port Loopback Tests : Begin
POST: Found Stack port 1 Down
POST: PortASIC Stack Port Loopback Tests : End, Status Passed

POST: PortASIC Port Loopback Tests : Begin
POST: PortASIC Port Loopback Tests : End, Status Passed

Election Complete
Switch 2 booting as Member, Switch 1 elected Master
HCOMP: Compatibility check PASSED
Waiting for feature sync....
Waiting for Port download...Complete
Stack Master is ready

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

cisco WS-C3750G-24TS (PowerPC405) processor (revision H0) with 0K/12280K bytes of memory.
Processor board ID CAT0909X1J4
Last reset from power-on
56 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 00:13:7F:C1:23:00
Motherboard assembly number     : 73-7058-13
Power supply part number        : 341-0045-01
Motherboard serial number       : CAT091004PX
Power supply serial number      : LIT0907010X
Model revision number           : H0
Motherboard revision number     : A0
Model number                    : WS-C3750G-24TS-S
System serial number            : CAT0909X1J4
Hardware Board Revision Number  : 0x09

Press RETURN to get started!

Когда стек установлен, это соответственно отображается в логе:
Master3750#show logging
...
000207: Aug 26 14:15:54: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 1 has changed to state UP
000208: Aug 26 14:16:54: %STACKMGR-4-SWITCH_ADDED: Switch 2 has been ADDED to the stack
000209: Aug 26 14:17:00: %STACKMGR-5-SWITCH_READY: Switch 2 is READY
...

Существуют еще команды для проверки стека:
show switch
show platform stack-manager all
show switch stack-ports
show switch neighbors