不信网恋 发表于 2018-7-10 09:30:14

Cisco 2811 IOS 升级实战

  准备环节:用console线连接好路由器,准备好cisco tftp服务器
  一、备份原始IOS
  SZNET001#show flash
  -#- --length-- -----date/time------ path
  1   25591404 Jun 22 2010 01:48:26 +00:00 c2800nm-ipbase-mz.124-15.T13.bin
  2         2900 Jun 22 2010 01:56:24 +00:00 cpconfig-2811.cfg
  3      2938880 Jun 22 2010 01:56:42 +00:00 cpexpress.tar
  4         1038 Jun 22 2010 01:56:50 +00:00 home.shtml
  5       122880 Jun 22 2010 01:57:00 +00:00 home.tar
  6       527849 Jun 22 2010 01:57:10 +00:00 128MB.sdf
  7      1697952 Jun 22 2010 01:57:28 +00:00 securedesktop-ios-3.1.1.45-k9.pkg
  8       415956 Jun 22 2010 01:57:42 +00:00 sslclient-win-1.1.4.176.pkg
  9       189843 Nov 24 2010 01:12:44 +00:00 crashinfo_20101124-011245
  10         780 Dec 29 2011 04:31:16 +00:00 vlan.dat
  97230848 bytes available (31506432 bytes used)
  SZNET001#copy flash tftp
  Source filename [?]? c2800nm-ipbase-mz.124-15.T13.bin
  Address or name of remote host []? 192.168.100.31
  Destination filename ?
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!
  25591404 bytes copied in 131.136 secs (195152 bytes/sec)
  二、从tftp升级
  SZNET001#copy tftp flash
  Address or name of remote host []? 192.168.100.31
  Source filename []? c2800nm-adventerprisek9-mz.124-15.T3.bin
  Destination filename ?
  ?Bad filename
  %Error parsing filename (Bad file number)
  SZNET001#copy tftp flash
  Address or name of remote host ?
  Source filename ?
  Destination filename ?
  Accessing tftp://192.168.100.31/c2800nm-adventerprisek9-mz.124-15.T3.bin...
  Loading c2800nm-adventerprisek9-mz.124-15.T3.bin from 192.168.100.31 (via FastEt
  hernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  
  52784760 bytes copied in 324.588 secs (162621 bytes/sec)
  SZNET001#dir
  Directory of flash:/
  1-rw-    25591404Jun 22 2010 01:48:26 +00:00c2800nm-ipbase-mz.124-15.T
  13.bin
  2-rw-      2900Jun 22 2010 01:56:24 +00:00cpconfig-2811.cfg
  3-rw-   2938880Jun 22 2010 01:56:42 +00:00cpexpress.tar
  4-rw-      1038Jun 22 2010 01:56:50 +00:00home.shtml
  5-rw-      122880Jun 22 2010 01:57:00 +00:00home.tar
  6-rw-      527849Jun 22 2010 01:57:10 +00:00128MB.sdf
  7-rw-   1697952Jun 22 2010 01:57:28 +00:00securedesktop-ios-3.1.1.45
  -k9.pkg
  8-rw-      415956Jun 22 2010 01:57:42 +00:00sslclient-win-1.1.4.176.pk
  g
  9-rw-      189843Nov 24 2010 01:12:44 +00:00crashinfo_20101124-011245
  10-rw-         780Dec 29 2011 04:31:16 +00:00vlan.dat
  11-rw-    52784760Jan 10 2012 05:04:54 +00:00c2800nm-adventerprisek9-mz
  .124-15.T3.bin
  128737280 bytes total (44445696 bytes free)
  三、删除原始的IOS
  SZNET001#delete c2800nm-ipbase-mz.124-15.T13.bin
  Delete filename ?
  Delete flash:c2800nm-ipbase-mz.124-15.T13.bin?
  SZNET001#dir
  Directory of flash:/
  1-rw-      2900Jun 22 2010 01:56:24 +00:00cpconfig-2811.cfg
  2-rw-   2938880Jun 22 2010 01:56:42 +00:00cpexpress.tar
  3-rw-      1038Jun 22 2010 01:56:50 +00:00home.shtml
  4-rw-      122880Jun 22 2010 01:57:00 +00:00home.tar
  5-rw-      527849Jun 22 2010 01:57:10 +00:00128MB.sdf
  6-rw-   1697952Jun 22 2010 01:57:28 +00:00securedesktop-ios-3.1.1.45
  -k9.pkg
  7-rw-      415956Jun 22 2010 01:57:42 +00:00sslclient-win-1.1.4.176.pk
  g
  8-rw-      189843Nov 24 2010 01:12:44 +00:00crashinfo_20101124-011245
  9-rw-         780Dec 29 2011 04:31:16 +00:00vlan.dat
  10-rw-    52784760Jan 10 2012 05:04:54 +00:00c2800nm-adventerprisek9-mz
  .124-15.T3.bin
  128737280 bytes total (70037504 bytes free)
  四、指定从新的IOS启动系统
  SZNET001#config t
  Enter configuration commands, one per line.End with CNTL/Z.
  SZNET001(config)#boot system flash c2800nm-adventerprisek9-mz.124-15.T3.bin
  SZNET001(config)#end
  SZNET001#copy run sta
  Destination filename ?
  Building configuration...
  
  SZNET001#reload

  Proceed with>
  *Jan 10 05:13:03.579: %SYS-5-RELOAD:>
  :>  #升级后
  SZNET001#show ver
  Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(15)T

  3,>  Technical Support: http://www.cisco.com/techsupport
  Copyright (c) 1986-2008 by Cisco Systems, Inc.
  Compiled Thu 24-Jan-08 15:25 by prod_rel_team

  ROM: System Bootstrap, Version 12.4(13r)T11,>  SZNET001 uptime is 5 minutes

  System returned to ROM by>  System image file is "flash:c2800nm-adventerprisek9-mz.124-15.T3.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 2811 (revision 53.51) with 509952K/14336K bytes of memory.

  Processor board>  6 FastEthernet interfaces
  1 Virtual Private Network (***) Module
  DRAM configuration is 64 bits wide with parity enabled.
  239K bytes of non-volatile configuration memory.
  126000K bytes of ATA CompactFlash (Read/Write)
  Configuration register is 0x2102
  SZNET001#
页: [1]
查看完整版本: Cisco 2811 IOS 升级实战