cisco 6509 IOS 升级

1、使用TFTP服务器软件,例如:CISCO公司的TFTPServer或3COM公司的3Cserver等,在升级较大IOS映象文件时,建议用3Cserver,安装在一台计算机上,将要升级的IOS映象文件拷贝到指定的目录中(例:D:\),并运行TFTP服务器软件,通过菜单设置上传/下载默认目录为拷贝IOS映象文件所在目录(如:D:\)。假设该计算机的IP地址为10.32.10.1;

2、连接路由器的console口与PC机的COM1,使用PC的超级终端软件访问路由器,将交换机的地址设为10.32.10.32(与计算机的IP地址同网段即可)。建议在进行IOS升级前将原有IOS文件备份下来,防止待升级的IOS文件存在问题不可用;

3、列出当前交换机使用的IOS文件:

  1. Router#dir sup-bootflash:
  2. Directory of sup-bootdisk:/
  3.  
  4.     1  -rw-   147131140  May 29 2009 16:04:42 +00:00  s72033-ipservices_wan-vz.122-33.SXI1.bin
  5.     2  -rw-    33554432  May 29 2009 16:00:02 +00:00  sea_log.dat
  6.     3  -rw-    33554432  May 29 2009 16:12:10 +00:00  sea_console.dat
  7.  
  8. 1024557056 bytes total (810303488 bytes free)

4、备份当前交换机的IOS文件到TFTP:

  1. Router#copy dir sup-bootdisk:  tftp
  2. Source filename []? s72033-ipbase-mz.122-33.SXI1.bin
  3. Address or name of remote host []? 10.32.10.1
  4. Destination filename [s72033-ipbase-mz.122-33.SXI1.bin]?
  5. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

5、从tftp上传新的IOS文件,新的IOS文件名为s72033-adventerprisek9_wan-mz.122-33.SXH7.bin:

  1. Router#copy tftp: sup-bootflash:
  2. Address or name of remote host [10.32.10.1]?
  3. Source filename [s72033-adventerprisek9_wan-mz.122-33.SXH7.bin]?
  4. Destination filename [s72033-adventerprisek9_wan-mz.122-33.SXH7.bin]?
  5. Accessing tftp://10.32.10.1/s72033-adventerprisek9_wan-mz.122-33.SXH7.bin...!

6、指定交换机从新的IOS文件引导启动:

  1. Router(config)#boot system flash sup-bootflash:s72033-adventerprisek9_wan-mz.122-33.SXH7.bin

show runn 显示当先启动信息:

  1. Router#sh running-config
  2. boot-start-marker
  3. boot system flash bootflash:s72033-ipservices_wan-vz.122-33.SXI1.bin
  4. boot system flash sup-bootflash:s72033-adventerprisek9_wan-mz.122-33.SXH7.bin
  5. boot-end-marker

当前启动顺序仍是以原IOS文件s72033-ipservices_wan-vz.122-33.SXI1.bin优先,所以需要更改顺序:

  1. Router#no boot system flash bootflash:s72033-ipservices_wan-vz.122-33.SXI1.bin
  2. Router#boot system flash bootflash:s72033-ipservices_wan-vz.122-33.SXI1.bin

注意:因不确定新的IOS能否正常引导启动,所以删掉从原IOS引导的设置后在添加一次,改变引导顺序。

7、升级前后可以通过以下命令查看启动状态来确定升级是否成功:

  1. Router#sh bootvar
  2. BOOT variable = sup-bootflash:s72033-adventerprisek9_wan-mz.122-33.SXH7.bin,1;bootflash:s72033-ipservices_wan-vz.122-33.SXI1.bin,1;
  3. CONFIG_FILE variable =
  4. BOOTLDR variable =
  5. Configuration register is 0x2102
  6.  
  7. Standby is not present.
  1. Router#sh version
  2. Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISEK9_WAN-M), Version 12.2(33)SXH7, RELEASE SOFTWARE (fc3)
  3. Technical Support: http://www.cisco.com/techsupport
  4. Copyright (c) 1986-2010 by Cisco Systems, Inc.
  5. Compiled Thu 11-Mar-10 21:51 by prod_rel_team
  6.  
  7. ROM: System Bootstrap, Version 12.2(17r)SX5, RELEASE SOFTWARE (fc1)
  8.  
  9.  Router uptime is 2 minutes
  10. Uptime for this control processor is 3 minutes
  11. Time since Router switched to active is 1 minute
  12. System returned to ROM by reload at 05:26:45 UTC Thu Apr 29 2010 (SP by reload)
  13. System image file is "sup-bootflash:s72033-adventerprisek9_wan-mz.122-33.SXH7.bin"
  14. Last reload reason: Reload Command