温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Cisco 2811 IOS 升级实战

发布时间:2020-06-27 20:47:53 来源:网络 阅读:3696 作者:yangye1985 栏目:移动开发

准备环节:用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 [c2800nm-ipbase-mz.124-15.T13.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
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 [c2800nm-adventerprisek9-mz.124-15.T3.bin]?
?Bad filename
%Error parsing filename (Bad file number)
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 [c2800nm-adventerprisek9-mz.124-15.T3.bin]?
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): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 52784760 bytes]

52784760 bytes copied in 324.588 secs (162621 bytes/sec)

SZNET001#dir
Directory of flash:/

    1  -rw-    25591404  Jun 22 2010 01:48:26 +00:00  c2800nm-ipbase-mz.124-15.T
13.bin
    2  -rw-        2900  Jun 22 2010 01:56:24 +00:00  cpconfig-2811.cfg
    3  -rw-     2938880  Jun 22 2010 01:56:42 +00:00  cpexpress.tar
    4  -rw-        1038  Jun 22 2010 01:56:50 +00:00  home.shtml
    5  -rw-      122880  Jun 22 2010 01:57:00 +00:00  home.tar
    6  -rw-      527849  Jun 22 2010 01:57:10 +00:00  128MB.sdf
    7  -rw-     1697952  Jun 22 2010 01:57:28 +00:00  securedesktop-ios-3.1.1.45
-k9.pkg
    8  -rw-      415956  Jun 22 2010 01:57:42 +00:00  sslclient-win-1.1.4.176.pk
g
    9  -rw-      189843  Nov 24 2010 01:12:44 +00:00  crashinfo_20101124-011245
   10  -rw-         780  Dec 29 2011 04:31:16 +00:00  vlan.dat
   11  -rw-    52784760  Jan 10 2012 05:04:54 +00:00  c2800nm-adventerprisek9-mz
.124-15.T3.bin

128737280 bytes total (44445696 bytes free)


三、删除原始的IOS

SZNET001#delete c2800nm-ipbase-mz.124-15.T13.bin
Delete filename [c2800nm-ipbase-mz.124-15.T13.bin]?
Delete flash:c2800nm-ipbase-mz.124-15.T13.bin? [confirm]

SZNET001#dir
Directory of flash:/

    1  -rw-        2900  Jun 22 2010 01:56:24 +00:00  cpconfig-2811.cfg
    2  -rw-     2938880  Jun 22 2010 01:56:42 +00:00  cpexpress.tar
    3  -rw-        1038  Jun 22 2010 01:56:50 +00:00  home.shtml
    4  -rw-      122880  Jun 22 2010 01:57:00 +00:00  home.tar
    5  -rw-      527849  Jun 22 2010 01:57:10 +00:00  128MB.sdf
    6  -rw-     1697952  Jun 22 2010 01:57:28 +00:00  securedesktop-ios-3.1.1.45
-k9.pkg
    7  -rw-      415956  Jun 22 2010 01:57:42 +00:00  sslclient-win-1.1.4.176.pk
g
    8  -rw-      189843  Nov 24 2010 01:12:44 +00:00  crashinfo_20101124-011245
    9  -rw-         780  Dec 29 2011 04:31:16 +00:00  vlan.dat
   10  -rw-    52784760  Jan 10 2012 05:04:54 +00:00  c2800nm-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 [startup-config]?
Building configuration...
[OK]
SZNET001#reload
Proceed with reload? [confirm]

*Jan 10 05:13:03.579: %SYS-5-RELOAD: Reload requested  by console. Reload Reason
: Reload Command.

 

#升级后

SZNET001#show ver
Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(15)T
3, RELEASE SOFTWARE (fc1)
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, RELEASE SOFTWARE (fc1)

SZNET001 uptime is 5 minutes
System returned to ROM by reload at 05:13:03 UTC Tue Jan 10 2012
System p_w_picpath 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 ID FHK1426F0PM
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#

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI