Friday, September 20, 2024

Cách nâng cấp firmware Cisco khi Join Stack

-

Nói qua một chút về phiên bản firmware. Với switch chạy IPBASE thì tính năng policy base routing sẽ không có hoặc nếu có thì phải lisense mới sử dụng được còn IPSERVICESK9 thì đã có sẵn tính năng policy base routing rồi nên sẽ cho phép sử dụng bình thường.

Nếu hệ thống bạn đang sử dụng tính năng policy base routing mà có cụm stack thì các thiết bị của bạn phải dùng IPSERVICES mới có thể sử dụng được, với trường hợp của mình cũng có 1 cụm stack nhưng mà 2 switch khác version nên nếu như switch làm master chạy IPSERVICES thì tính năng policy base routing vẫn sử dụng được nhưng nếu vì 1 lý do nào đó switch chạy firmware IPSERVICES bị khởi động lại thì lúc này switch 1 chạy IPBASE sẽ dành quyền làm master, mà switch làm master thì cả cụm stack sẽ mất luôn tính năng policy base routing. Điều này sẽ dẫn đến hệ thống của bạn sẽ bị downtime. Cách giải quyết là bạn phải flash switch 1 từ IPBASE thành IPSERVICES giống như firmware switch 2 đang chạy.

Nếu flash firmware cho 1 switch thì quá đơn giản, tuy nhiên nếu làm cho switch ở trong cụm stack thì phức tạp hơn 1 chút.

Hãy show version ta thấy cụm Stack có 2 thiết bị nhưng lại khác firmware, switch 1 đang chạy firmware C3750-IPBASEK9-M và switch 2 đang chạy firmware C3750-IPSERVICESK9-M.

l3-stackwise# show version
Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
     1 52    WS-C3750G-48TS     15.0(2)SE11           C3750-IPBASEK9-M
*    2 52    WS-C3750G-48TS     15.0(2)SE10a          C3750-IPSERVICESK9-M

Cụm stack đang lấy switch 2 với firmware C3750-IPSERVICESK9-M làm master.

l3-stackwise# show switch
Switch/Stack Mac Address : 0019.309d.6880
                                           H/W   Current
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
 1       Member 0023.5d1c.7580     9      0       Ready
*2       Master 0019.309d.6880     10     0       Ready

Để phân biệt nơi lưu trữ trên switch có cụm stack các bạn phân biệt bằng chữ flash<id_switch>. Ví dụ switch 1 là flash1 và swithc 2 là flash2.

Hãy show flash1 ta thấy các tập tin của switch 1, để ý chúng ta thấy thư mục chứa flash là c3750-ipbasek9-mz.150-2.SE11

l3-stackwise# show flash1:

Directory of flash1:/

    2  -rwx         573   Mar 1 1993 01:25:53 +00:00  express_setup.debug
    3  -rwx       11722  Apr 17 1993 22:10:45 +00:00  config.text
    4  -rwx        3171  Apr 17 1993 22:10:46 +00:00  private-config.text
    5  -rwx        1156   Mar 1 1993 00:04:13 +00:00  vlan.dat
    6  drwx         192  Oct 19 2017 14:20:31 +00:00  c3750-ipbasek9-mz.150-2.SE11
  534  drwx          64  Oct 19 2017 14:28:41 +00:00  dc_profile_dir
  532  -rwx        4120  Apr 17 1993 21:39:09 +00:00  multiple-fs
  533  -rwx       11704  Apr 17 1993 22:04:18 +00:00  config.text.backup
  535  -rwx        3171  Apr 17 1993 22:04:18 +00:00  private-config.text.backup
  536  -rwx        3824   Apr 2 1993 07:39:41 +00:00  private-config.text.renamed
  537  -rwx        8267   Apr 2 1993 07:39:41 +00:00  config.text.renamed

32514048 bytes total (11148800 bytes free)

Hãy show flash2 ta thấy các tập tin của switch 1, tương tự ta có file c3750-ipservicesk9-mz.150-2.SE10a.bin chính là file flash của switch 2

l3-stackwise#show flash2:

Directory of flash:/

    2  -rwx    18284544   Mar 1 1993 00:29:16 +00:00  c3750-ipservicesk9-mz.150-2.SE10a.bin
    3  -rwx        1156   Mar 1 1993 00:04:13 +00:00  vlan.dat
    4  -rwx        3171  Apr 17 1993 22:10:45 +00:00  private-config.text
    5  -rwx        6208   Mar 1 1993 00:15:40 +00:00  config.text.renamed
  459  -rwx         468   Mar 1 1993 00:17:13 +00:00  express_setup.debug
  460  -rwx       13940   Mar 1 1993 02:33:14 +00:00  config-old.text
  461  -rwx        1912   Mar 1 1993 00:15:40 +00:00  private-config.text.renamed
  462  -rwx       11966  Apr 16 1993 04:22:03 +00:00  config.text.backup
  464  -rwx        4120  Apr 17 1993 22:10:45 +00:00  multiple-fs
  465  -rwx        3171  Apr 16 1993 04:22:03 +00:00  private-config.text.backup
  466  -rwx       11722  Apr 17 1993 22:10:45 +00:00  config.text

32514048 bytes total (5378560 bytes free)

Hãy copy file c3750-ipservicesk9-mz.150-2.SE10a.bin từ switch 2 vào 1 nơi nào đó để lát ta copy flash này vào cho switch 1.

Ở đây mình sẽ dùng scp để copy sang 1 server linux theo cú pháp dưới

l3-stackwise# copy flash2: scp:/home/c3750-ipservicesk9-mz.150-2.SE10a.bin
Source filename [c3750-ipservicesk9-mz.150-2.SE10a.bin]?
Address or name of remote host []? 192.168.201.1
Destination username [admin]? root
Destination filename [/home/c3750-ipservicesk9-mz.150-2.SE10a.bin]?
Writing /home/c3750-ipservicesk9-mz.150-2.SE10a.bin
Password:
 Sink: C0644 18284544 c3750-ipservicesk9-mz.150-2.SE10a.bin
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18284544 bytes copied in 56.002 secs (326498 bytes/sec)

Sau khi copy xong hay vào server 192.168.201.1

$ ifconfig | grep 192.168.201.1
        inet 192.168.201.1  netmask 255.255.255.0  broadcast 192.168.201.255

File c3750-ipservicesk9-mz.150-2.SE10a.bin đã có trong thư mục home của chúng ta

$ ll /home/c3750-ipservicesk9-mz.150-2.SE10a.bin
-rw-r--r-- 1 root root 18284544 Nov  2 11:51 /home/c3750-ipservicesk9-mz.150-2.SE10a.bin

GIờ ta tiếp tục sử dụng scp để copy flash c3750-ipservicesk9-mz.150-2.SE10a.bin từ server c3750-ipservicesk9-mz.150-2.SE10a.bin vào switch 1. Trường hợp copy ở dưới bạn đang gặp lỗi vì dung lượng lưu trữ trên switch 1 không đủ để bạn copy firmware vào.

l3-stackwise# copy scp:/home/c3750-ipservicesk9-mz.150-2.SE10a.bin flash1:
Address or name of remote host [192.168.201.1]?
Source username [root]?
Source filename [/home/c3750-ipservicesk9-mz.150-2.SE10a.bin]?
Destination filename [c3750-ipservicesk9-mz.150-2.SE10a.bin]?
Password:
 Sending file modes: C0644 18284544 c3750-ipservicesk9-mz.150-2.SE10a.bin
!!!!!!!
%Error copying scp://*****@192.168.201.1//home/c3750-ipservicesk9-mz.150-2.SE10a.bin (Not enough space on device)
4294967295 bytes copied in 5.461 secs (1688952945770880 bytes/sec)

Cách duy nhất là bạn phải xoá firmware c3750-ipbasek9-mz.150-2.SE11.bin cũ trên switch 1 để lấy dung lượng trống. Nhưng để an toàn bạn hãy thực hiện backup firmware trên switch 1 ra 1 nơi khác đề phòng sự cố sau này có thể roll back lại hệ thống.

Trường hợp của mình ở dưới bị lỗi vì c3750-ipbasek9-mz.150-2.SE11 không phải là file firmware mà nó là 1 thư mục

l3-stackwise#copy flash1:c3750-ipbasek9-mz.150-2.SE11 scp:/home/c3750-ipbasek9-mz.150-2.SE11
Address or name of remote host []? 192.168.201.1
Destination username [admin]? root
Destination filename [/home/c3750-ipbasek9-mz.150-2.SE11]?
%Error reading flash1:c3750-ipbasek9-mz.150-2.SE11 (Is a directory)

Khi list các file trong thư mục c3750-ipbasek9-mz.150-2.SE11 bạn sẽ thấy file firmware c3750-ipbasek9-mz.150-2.SE11.bin, file firmware thường có đuôi là *.bin

l3-stackwise#dir flash1:/c3750-ipbasek9-mz.150-2.SE11/
Directory of flash1:/c3750-ipbasek9-mz.150-2.SE11/

    7  -rwx         681  Oct 19 2017 14:19:06 +00:00  info
    9  drwx        4864  Oct 19 2017 14:20:31 +00:00  html
  531  -rwx    17309184  Oct 19 2017 14:28:37 +00:00  c3750-ipbasek9-mz.150-2.SE11.bin

32514048 bytes total (11148800 bytes free)

Hãy thực hiện copy lại và trỏ đúng đường dẫn source tới file firmware nhé

l3-stackwise#copy flash1:c3750-ipbasek9-mz.150-2.SE11/c3750-ipbasek9-mz.150-2.SE11.bin scp:/home/c3750-ipbasek9-mz.150-2.SE11.bin
Address or name of remote host []? 192.168.201.1
Destination username [admin]? root
Destination filename [/home/c3750-ipbasek9-mz.150-2.SE11.bin]?
Writing /home/c3750-ipbasek9-mz.150-2.SE11.bin
Password:
 Sink: C0644 17309184 c3750-ipbasek9-mz.150-2.SE11.bin
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
17309184 bytes copied in 75.741 secs (228531 bytes/sec)

Verify lại thư mục home trên server 192.168.201.1

$ ll /home/
total 34760
-rw-r--r-- 1 root root 17309184 Nov  2 14:21 c3750-ipbasek9-mz.150-2.SE11.bin
-rw-r--r-- 1 root root 18284544 Nov  2 11:51 c3750-ipservicesk9-mz.150-2.SE10a.bin

Sau khi chắc chắn đã backup xong file firmware, bạn hãy thực hiện xoá file firmware cũ trên switch 1

l3-stackwise#delete flash1:c3750-ipbasek9-mz.150-2.SE11/c3750-ipbasek9-mz.150-2.SE11.bin
Delete filename [c3750-ipbasek9-mz.150-2.SE11/c3750-ipbasek9-mz.150-2.SE11.bin]?
Delete flash1:c3750-ipbasek9-mz.150-2.SE11/c3750-ipbasek9-mz.150-2.SE11.bin? [confirm]

Sáu khi xoá xong file firmware có dung lượng trống, bạn hãy dùng scp copy flash c3750-ipservicesk9-mz.150-2.SE10a.bin từ server 192.168.201.1 sang switch 1

l3-stackwise#copy scp:/home/c3750-ipservicesk9-mz.150-2.SE10a.bin flash1:
Address or name of remote host [192.168.201.1]?
Source username [root]?
Source filename [/home/c3750-ipservicesk9-mz.150-2.SE10a.bin]?
Destination filename [c3750-ipservicesk9-mz.150-2.SE10a.bin]?
Password:
 Sending file modes: C0644 18284544 c3750-ipservicesk9-mz.150-2.SE10a.bin
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18284544 bytes copied in 385.196 secs (47468 bytes/sec)
l3-stackwise#dir
l3-stackwise#dir  /fl
l3-stackwise#dir fla
l3-stackwise#dir flash1:
Directory of flash1:/

    2  -rwx         573   Mar 1 1993 01:25:53 +00:00  express_setup.debug
    3  -rwx       11722  Apr 17 1993 22:10:45 +00:00  config.text
    4  -rwx        3171  Apr 17 1993 22:10:46 +00:00  private-config.text
    5  -rwx        1156   Mar 1 1993 00:04:13 +00:00  vlan.dat
    6  drwx         128  Apr 18 1993 01:54:43 +00:00  c3750-ipbasek9-mz.150-2.SE11
  534  drwx          64  Oct 19 2017 14:28:41 +00:00  dc_profile_dir
  532  -rwx        4120  Apr 17 1993 21:39:09 +00:00  multiple-fs
  533  -rwx       11704  Apr 17 1993 22:04:18 +00:00  config.text.backup
  535  -rwx        3171  Apr 17 1993 22:04:18 +00:00  private-config.text.backup
  536  -rwx        3824   Apr 2 1993 07:39:41 +00:00  private-config.text.renamed
  537  -rwx        8267   Apr 2 1993 07:39:41 +00:00  config.text.renamed
  531  -rwx    18284544  Apr 18 1993 02:03:49 +00:00  c3750-ipservicesk9-mz.150-2.SE10a.bin

32514048 bytes total (10173440 bytes free)

Bước tiếp theo bạn hãy show boot lên. Ở phần BOOT path-list trên switch 1 bạn thấy boot đang trỏ về flash:c3750-ipbasek9-mz.150-2.SE11/c3750-ipbasek9-mz.150-2.SE11.bin;flash:c3750-ipbasek9-mz.150-2.SE10a.bin bây giờ bạn phải trỏ về file firmware mới bằng cách sau

l3-stackwise#show boot
BOOT path-list      : flash:c3750-ipservicesk9-mz.150-2.SE10a.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
Allow Dev Key         : yes
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   524288
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)
-------------------
Switch 1
-------------------
BOOT path-list      : flash:c3750-ipbasek9-mz.150-2.SE11/c3750-ipbasek9-mz.150-2.SE11.bin;flash:c3750-ipbasek9-mz.150-2.SE10a.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
Allow Dev Key         : yes
HELPER path-list    :
Auto upgrade        : no
Auto upgrade path   :

Sử dụng lệnh dưới để set boot sang c3750-ipservicesk9-mz.150-2.SE10a.bin

l3-stackwise(config)#boot system switch 1 flash:c3750-ipservicesk9-mz.150-2.SE10a.bin

Show boot 1 lần nữa bạn thấy phần BOOT path-list đã trỏ về flash:c3750-ipservicesk9-mz.150-2.SE10a.bin

l3-stackwise#show boot
BOOT path-list      : flash:c3750-ipservicesk9-mz.150-2.SE10a.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
Allow Dev Key         : yes
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   524288
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)
-------------------
Switch 1
-------------------
BOOT path-list      : flash:c3750-ipservicesk9-mz.150-2.SE10a.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
Allow Dev Key         : yes
HELPER path-list    :
Auto upgrade        : no
Auto upgrade path

Dùng lệnh reload slot <id_switch> để tiến hành khởi động lại switch 1

l3-stackwise#reload slot 1
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 00:23:5d:1c:75:80
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 525 files, 12 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 22340608
flashfs[0]: Bytes available: 10173440
flashfs[0]: flashfs fsck took 14 seconds.
...done Initializing Flash.
done.
Loading "flash:c3750-ipservicesk9-mz.150-2.SE10a.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "flash:c3750-ipservicesk9-mz.150-2.SE10a.bin" uncompressed and installed, entry point: 0x1000000

Hãy show version lên và chúng ta có kết quả

l3-stackwise#show version
Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 15.0(2)SE10a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2016 by Cisco Systems, Inc.
Compiled Thu 03-Nov-16 14:17 by prod_rel_team

ROM: Bootstrap program is C3750 boot loader
BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.2(25r)SEE4, RELEASE SOFTWARE (fc1)

l3-stackwise uptime is 5 days, 4 hours, 47 minutes
System returned to ROM by power-on
System image file is "flash:c3750-ipservicesk9-mz.150-2.SE10a.bin"


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-48TS (PowerPC405) processor (revision E0) with 131072K bytes of memory.
Processor board ID FOC1101Y1XG
Last reset from power-on
7 Virtual Ethernet interfaces
104 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 00:19:30:9D:68:80
Motherboard assembly number     : 73-10218-08
Power supply part number        : 341-0107-01
Motherboard serial number       : FOC10523NLF
Power supply serial number      : AZS104506JR
Model revision number           : E0
Motherboard revision number     : C0
Model number                    : WS-C3750G-48TS-S
System serial number            : FOC1101Y1XG
Top Assembly Part Number        : 800-26857-01
Top Assembly Revision Number    : B0
Version ID                      : V03
CLEI Code Number                : CNMWU00ARC
Hardware Board Revision Number  : 0x09


Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
     1 52    WS-C3750G-48TS     15.0(2)SE10a          C3750-IPSERVICESK9-M
*    2 52    WS-C3750G-48TS     15.0(2)SE10a          C3750-IPSERVICESK9-M


Switch 01
---------
Switch Uptime                   : 24 minutes
Base ethernet MAC Address       : 00:23:5D:1C:75:80
Motherboard assembly number     : 73-10218-08
Power supply part number        : 341-0107-01
Motherboard serial number       : FOC12384URG
Power supply serial number      : AZS123301CD
Model revision number           : F0
Motherboard revision number     : D0
Model number                    : WS-C3750G-48TS-S
System serial number            : FOC1238Y65T
Top assembly part number        : 800-26857-02
Top assembly revision number    : B0
Version ID                      : V04
CLEI Code Number                : COM7X10ARA

Configuration register is 0xF

Khi show switch chúng ta thấy 2 switch trong cụm stack đã ready

l3-stackwise#show switch
Switch/Stack Mac Address : 0019.309d.6880
                                           H/W   Current
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
 1       Member 0023.5d1c.7580     9      0       Ready
*2       Master 0019.309d.6880     10     0       Ready

Chúc các bạn thành công

LEAVE A REPLY

Please enter your comment!
Please enter your name here

4,956FansLike
256FollowersFollow
223SubscribersSubscribe
spot_img

Related Stories