3560 IOS升级方法

起因如下:
3560G-A(config)#router ospf 1Protocol not in this image
3560G-A#show version
Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Thu 19-Jul-07 18:15 by nachen
Image text-base: 0x00003000, data-base: 0x01100000
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SEE4, RELEASE SOFTWARE (fc1)3560G-A uptime is 1 day, 23 hours, 9 minutes System returned to ROM by power-on
System image file is "flash:c3560-ipbase-mz.122-35.SE5/c3560-ipbase-mz.122-35.SE5.bin"
cisco WS-C3560G-24TS (PowerPC405) processor (revision F0) with 122880K/8184K bytes of memory.Processor board ID FOC1443Y0SF
(输出略)
准备工作
1.IOS 、TFTP server 、Console 线缆、直通/交叉线缆。
注:低端交换机2950/3550/3560中,可供升级使用的IOS 有两种,一种是后缀为.bin 的,一种是为.tar 的。.bin 为IOS 文件,而.tar 是一个归档(压缩)包,内含.bin 的IOS 和web 管理使用的HTML 静态页。如下图
文件备份
2.3560G-A#show flash:Directory of flash:/
2  -rwx        616  Mar 1 199
3 00:04:20 +00:00  vlan.dat
3  -rwx        1609  Mar 1 1993 00:59:1
4 +00:00 
4  -rwx
5  Mar 1 1993 00:59:14 +00:00 
6  drwx        192  Mar 1 1993 00:08:4
7 +00:00  c3560-ipbase-mz.122-35.SE5
3560 IOS 升级步骤:私人资料,请勿商用Power_ Write by Powerfoo 2011/4/4
3560 IOS 升级方法
6  drwx        192  Mar 1 1993 00:08:4
7 +00:00  c3560-ipbase-mz.122-35.SE5
32514048 bytes total (23457792 bytes free)  #flash下没有IOS,而是存在一个与IOS同名的目录#
3560G-A#dir flash:c3560-ipbase-mz.122-35.SE5
Directory of flash:/c3560-ipbase-mz.122-35.SE5/
7  -rwx    6875865  Mar 1 1993 00:07:58 +00:00  c3560-ipbase-mz.122-35.SE5.bin
8  drwx        4160  Mar 1 1993 00:08:13 +00:00  html
463  -rwx        422  Mar 1 1993 00:08:47 +00:00  info
32514048 bytes total (23457792 bytes free)#查看这个目录,发现和上图中的归档内容格式相同,该格式是许多cisco交换机默认的出厂格式,接下来我们将这些文件备份#
仅备份IOS:
3560G-A#copy flash:/c3560-ipbase-mz.122-35.SE5/c3560-ipbase-mz.122-35.SE5.bin  tftp:
备份某个特定的归档:
3560G-A#archive tar /create tftp://192.168.1.88/c3560-ipbase-mz.122-35.SE5.tar flash:/c3560-ipbase-
mz.122-35.SE5  #注意先指定创建的文件目的地,后指定文件源#
备份所有归档:(可使用在含有多个IOS归档的环境中,较少使用):
3560G-A#archive upload-sw tftp://192.168.1.88/all.tar
仅备份IOS:
Address or name of remote host []? 192.168.1.88
Destination filename [c3560-ipbase-mz.122-35.SE5.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
archiving html (directory)
archiving html/toolbar.js (7084 bytes)!
archiving html/framework.js (23783 bytes)!!!!!
archiving html/sitewide.js (20829 bytes)!!!!
……(部分输出略)
archiving html/images/nolink_bead.gif (325 bytes) archiving html/images/131075.gif (1223 bytes)
archiving info (422 bytes)
上传文件
3.
如果不需要web功能,仅上传.bin的IOS即可: 3560G-A#copy tftp: flash:
Address or name of remote host []? 192.168.1.88
Source filename []? c3560-ipservicesk9-mz.122-55.SE1.bin
Destination filename [c3560-ipservicesk9-mz.122-55.SE1.bin]?
附1:如flash 不够大,删除旧IOS 之后不慎进入switch :模式,可按照以下步骤恢复:
Switch :flash_init Switch :load_helper
Switch :copy xmodem :flash :c3560….bin Begin the Xmodem or Xmodem-1K transfer now …超级终端【传送】【传送文件】Switch :boot
Destination filename [c3560-ipservicesk9-mz.122-55.SE1.bin]?
Accessing tftp://192.168.1.88/c3560-ipservicesk9-mz.122-55.Loading c3560-ipservicesk9-mz.122-55.SE1.bin from 192.168.1.88 (via
GigabitEthernet0/1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![OK -12733830 bytes]
12733830 bytes copied in 117.231 secs (108622 bytes/sec)
3560G-A#show flash:Directory of flash:/
2  -rwx        616  Mar 1 199
3 00:04:20 +00:00  vlan.dat    3  -rwx        1609  Mar 1 1993 00:59:1
4 +00:00 
4  -rwx
5  Mar 1 1993 00:59:14 +00:00 
5  -rwx    12733830  Mar 4 1993 03:09:3
6 +00:00  c3560-ipservicesk9-mz.122-55.SE1.bin    6  drwx        192  Mar 1 1993 00:08:4
7 +00:00  c3560-ipbase-mz.122-35.SE5
32514048 bytes total (10723840 bytes free)  #上传成功,由于空间够用,所以未删除旧IOS#
如需使用web 功能,需上传.tar 整个归档。.tar 归档的上传可通过Cisco Network Assistant 软件方便地实现,也可通过CLI 的方式。使用CNA 的前提是交换机含有支持web 界面的HTML 文件,这里我们只介绍CLI 的方式:
3560G-A#archive download-sw /leave-old-sw tftp:192.168.1.88/c3560-ipservicesk9-mz.122-55.SE1.tar /leave-old-sw 表示保留原IOS 归档,也可以使用/overwrite 覆盖原IOS 归档。修改引导变量
4.3560G-A(config)#boot system flash:/c3560-ipservicesk9-mz.122-5
5.SE1.bin 3560G-A#show boot
BOOT path-list      : flash:/c3560-ipservicesk9-mz.122-55.SE1.bin
验证是否升级成功5.3560G-A#write
[OK]
3560G-A#reload
#重启时可观察屏幕输出或重启后通过show version 来验证IOS 是否升级成功,再尝试运行OSPF/BGP#
附2:如上传并修改引导变量后,仍使用旧IOS 引导,可尝试使用以下命令:(未验证)3560G-A(config)#boot boothlpr flash:/c3560-ipservicesk9-mz.122-55.SE1.bin 或
Switch:set boothlpr flash:/c3560-ipservicesk9-mz.122-55.SE1.bin
Switch:copy xmodem:flash:c3560 (i)
Begin the Xmodem or Xmodem-1K transfer now…超级终端【传送】【传送文件】
Switch:boot Switch:set boothlpr flash:/c3560-ipservicesk9-mz.122-55.SE1.bin
声明:本文提到的任何信息均为Internet正常公开的信息,如果本文或其所提到的任何信息引起了他人直接或间接的资料流失、利益损失。笔者不承担任何责任。

本文发布于:2024-09-22 01:24:06,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/1/96106.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:归档   使用   文件
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议