姜维博客
欢迎来访~

Cisco3750堆叠交换机升级IOS

虽然现在Cisco 3750产品已经快out了,但还是记录下Cisco 3750堆叠交换机升级IOS的方法,也基本适用于其它3750系列交换机。

主要命令

show switch
dir flash1:
dir flash2:
...
delete flash1:/xxx/old_ios.bin        ##如果flash空间不足,需先删除旧IOS文件
delete flash2:/xxx/old_ios.bin 
...
 
copy tftp: flash1:/xxx/new_ios.bin       ##导入新的IOS文件
copy tftp: flash2:/xxx/new_ios.bin
...
dir flash1:
dir flash2:
...
boot system switch all flash:/xxx/new_ios.bin      ##设置交换机boot启动项
show boot
write
reload

实例说明

1.检查交换机现有ios版本

C3750#show version
 

2.检查交换机堆叠信息

C3750#show switch
 

3.检查交换机剩余空间和ios文件路径

C3750#dir flash1:

 

C3750#dir flash1:/c3750-ipbase-mz.122-35.SE5

 

C3750#dir flash2:/c3750-ipbase-mz.122-35.SE5
Directory of flash2:/c3750-ipbase-mz.122-35.SE5/

    6  -rwx     7175078   Mar 1 1993 08:05:39 +08:00  c3750-ipbase-mz.122-35.SE5.bin
    7  drwx        4224   Mar 1 1993 08:06:02 +08:00  html
  508  -rwx         598   Mar 1 1993 08:06:40 +08:00  info

15998976 bytes total (6326272 bytes free)

C3750#dir flash3:/c3750-ipbase-mz.122-35.SE5
Directory of flash3:/c3750-ipbase-mz.122-35.SE5/

    4  -rwx     7175078   Mar 1 1993 08:07:47 +08:00  c3750-ipbase-mz.122-35.SE5.bin
    5  drwx        4224   Mar 1 1993 08:08:23 +08:00  html
  506  -rwx         600   Mar 1 1993 08:08:57 +08:00  info

15998976 bytes total (6326272 bytes free)

 

4.删除旧ios、检查

注:如果交换机flash剩余空间充足,就不用删除旧ios。

C3750#delete flash1:/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin
Delete filename [/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin]?
Delete flash:/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin? [confirm]

C3750#dir flash1:/c3750-ipbase-mz.122-35.SE5   

同样方法删除flash2,flash3

C3750#dir flash2:/c3750-ipbase-mz.122-35.SE5
Directory of flash2:/c3750-ipbase-mz.122-35.SE5/

    7  drwx        4224   Mar 1 1993 08:06:02 +08:00  html
  508  -rwx         598   Mar 1 1993 08:06:40 +08:00  info

15998976 bytes total (13501440 bytes free)
C3750#dir flash3:/c3750-ipbase-mz.122-35.SE5
Directory of flash3:/c3750-ipbase-mz.122-35.SE5/

    5  drwx        4224   Mar 1 1993 08:08:23 +08:00  html
  506  -rwx         600   Mar 1 1993 08:08:57 +08:00  info

15998976 bytes total (13501440 bytes free)
可以看到三台交换机均已删除旧ios,剩余flash空间充足。

 

5.上传ios到交换机

C3750#copy tftp: flash1:

同样的方法上传新ios到flash2、flash3

C3750#copy tftp: flash2:             
C3750#copy tftp: flash3:
 

6.检查各个交换机的ios文件

C3750#dir flash1:

C3750#dir flash2:
Directory of flash2:/

    2  -rwx        2596   Dec 9 2014 14:56:30 +08:00  vlan.dat
    3  -rwx       41133  Mar 27 2015 16:57:03 +08:00  config.text
    4  -rwx           5  Mar 27 2015 16:57:03 +08:00  private-config.text
    5  drwx         128  Apr 22 2015 12:32:01 +08:00  c3750-ipbase-mz.122-35.SE5
    6  -rwx    12103244  Apr 22 2015 12:46:17 +08:00  c3750-ipbasek9-mz.122-55.SE8.bin

15998976 bytes total (1397760 bytes free)
C3750#dir flash3:
Directory of flash3:/

    2  -rwx        2596   Dec 9 2014 14:56:30 +08:00  vlan.dat
    3  drwx         128  Apr 22 2015 12:32:17 +08:00  c3750-ipbase-mz.122-35.SE5
  507  -rwx           5  Mar 27 2015 16:57:03 +08:00  private-config.text
    4  -rwx    12103244  Apr 22 2015 12:50:08 +08:00  c3750-ipbasek9-mz.122-55.SE8.bin
  509  -rwx       41133  Mar 27 2015 16:57:03 +08:00  config.text

15998976 bytes total (1397760 bytes free)

 

7.更改交换机boot启动项并检查

C3750#configure terminal
C3750(config)#boot system switch all flash:c3750-ipbasek9-mz.122-55.SE8.bin
 
验证boot设置:

C3750#show boot
BOOT path-list      : flash:c3750-ipbasek9-mz.122-55.SE8.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
-------------------
Switch 2
-------------------
BOOT path-list      : flash:c3750-ipbasek9-mz.122-55.SE8.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :

Auto upgrade        : no
Auto upgrade path   :
-------------------
Switch 3
-------------------
BOOT path-list      : flash:c3750-ipbasek9-mz.122-55.SE8.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :

Auto upgrade        : no
Auto upgrade path   :

可以看到三台交换机boot启动项均已配置成功,下次启动会从新ios载入
 

8.保存

C3750#write
Building configuration...
[OK]
 

9.重启

C3750#reload
Proceed with reload? [confirm]

User Access Verification

 
Username:
 
等待5-10分钟。。。
 

10.重新登录,查看ios版本

C3750#show version
Cisco IOS Software, C3750 Software (C3750-IPBASEK9-M), Version 12.2(55)SE8, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 26-Jun-13 11:25 by prod_rel_team
Image text-base: 0x01000000, data-base: 0x02D00000

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

C3750 uptime is 4 minutes
System returned to ROM by power-on
System restarted at 12:56:31 CN Thu Apr 23 2015
System image file is "flash:c3750-ipbasek9-mz.122-55.SE8.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-C3750-24P (PowerPC405) processor (revision K0) with 131072K bytes of memory.
Processor board ID FDO1148Y0Z5
Last reset from power-on
3 Virtual Ethernet interfaces
120 FastEthernet interfaces
10 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 00:1E:7A:FE:7B:80
Motherboard assembly number     : 73-9672-09
Power supply part number        : 341-0029-05
Motherboard serial number       : FDO114800E3
Power supply serial number      : LIT114407XP
Model revision number           : K0
Motherboard revision number     : B0
Model number                    : WS-C3750-24PS-S
System serial number            : FDO1148Y0Z5
Top Assembly Part Number        : 800-25860-04
Top Assembly Revision Number    : D0
Version ID                      : V05
CLEI Code Number                : CNMV1K0CRD
Hardware Board Revision Number  : 0x01

Switch Ports Model              SW Version            SW Image                
------ ----- -----              ----------            ----------              
*    1 26    WS-C3750-24P       12.2(55)SE8           C3750-IPBASEK9-M        
     2 52    WS-C3750-48TS      12.2(55)SE8           C3750-IPBASEK9-M        
     3 52    WS-C3750-48TS      12.2(55)SE8           C3750-IPBASEK9-M        

Switch 02
---------
Switch Uptime                   : 4 minutes
Base ethernet MAC Address       : 00:1E:14:CC:05:80
Motherboard assembly number     : 73-9680-10
Power supply part number        : 341-0028-02
Motherboard serial number       : FDO1142045Q
Power supply serial number      : LIT113608JR
Model revision number           : N0
Motherboard revision number     : B0
Model number                    : WS-C3750-48TS-S
System serial number            : FDO1142Y0VZ
SFP Module assembly part number : 73-7757-03
SFP Module revision number      : A0
SFP Module serial number        : FDO11410739
Top assembly part number        : 800-25854-02
Top assembly revision number    : F0
Version ID                      : V05
CLEI Code Number                : CNMV300CRE

Switch 03
---------
Switch Uptime                   : 4 minutes
Base ethernet MAC Address       : 00:1B:90:A8:4B:80
Motherboard assembly number     : 73-9680-10
Power supply part number        : 341-0028-02
Motherboard serial number       : CAT111556CG
Power supply serial number      : LIT10420786
Model revision number           : N0
Motherboard revision number     : B0
Model number                    : WS-C3750-48TS-S
System serial number            : CAT1115RJ0N
SFP Module assembly part number : 73-7757-03
SFP Module revision number      : A0
SFP Module serial number        : CAT111558ST
Top assembly part number        : 800-25854-02
Top assembly revision number    : F0
Version ID                      : V05
CLEI Code Number                : CNMV300CRE

Configuration register is 0xF

可以看到三台交换机的ios已经由原来的 12.2(35)SE5  成功升级为 12.2(55)SE8

 

11.最后检查

通过一些show命令和ping上联和下联设备等方式检查升级后的交换机是否正常工作。
 
 
至此,堆叠交换机的ios升级已全部成功完成。
 
 
 
-The End-
 
可附来源转载:姜维博客 » Cisco3750堆叠交换机升级IOS

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

待添加阿里云优惠