因为历史原因,Cisco公司的路由器产物丰硕且繁杂,Cisco路由器的专用操作系统IOS映像也同时存在多个版本,以下就分袂针对两类加载分歧版本的IOS映像文件的Cisco路由器做谈判。
9 Q; g" s, O2 f, t! l2 i" O 一、Cisco 1000,1600,2500,4000系列. C6 [, A) S P# C8 ^! {
1、IOS映像恢复的体例及轨范% C2 E6 |, m- K7 N$ N; @: t
1) 毗连PC的COM1口与路由器的console口,使用PC的超级终端软件访谒该路由器;2) 开启路由器的电源开关,并在30秒内按下键盘的Ctrl+break,间断路由器的正常启动以进入rom看管模式,屏幕上提醒符如下:: [2 S V) V# Z/ Q
>* @4 J" x1 `- Y0 H1 D0 ~( c
3)键入如下呼吁:
4 W' Q5 [2 y8 z! @+ f >o /r 0x2101
) {; x/ d( M5 \& s# I; t. @ 改变路由器虚拟寄放器的默认值(0x2102);9 N* g9 f( Q5 i
4)键入重启呼吁:
0 u% L2 ^8 M9 ]* R0 J/ ^ >i
/ j6 ], g5 Y: R% u 路由重视启,当屏幕显示以下信息剖明路由重视启完毕:System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE1 }9 ?1 w( T) Q% p- {
Copyright(c)1986-1995 by cisco Systems- r. ?; V, |$ i2 O2 s
2500 processor with 1024 Kbytes of main memory
$ y2 G: q2 U5 B …
2 t! |# E. K! `+ J3 F9 d; ~- x Press RETURN to get started!
* g( {+ H+ J( k; Z* `) m* b; |3 b 5)路由器在虚拟寄放器的值为0x2101时自动进入rom启动模式:
/ S" Y" u; `- y& V& F router(boot)>- P7 i' k4 j, d% i }' Z
6) 此时,将TFTP处事器上的IOS映像文件恢复至路由器flash memory中,依次键入以下呼吁:
8 s1 P9 |2 l' O* `8 b1 o router(boot)>en
/ J, F5 v# p0 Q* D8 Y4 Y router(boot)#copy tftp flash! j- p' S7 Q4 r, x5 [& s+ \' R9 H
System flash directory:
" r0 P* N" u' F No files in System flash
& {, V: C {) E* [0 P9 O [0 bytes used, 4194304 available, 4194304 total] Address or name of remote host [255.255.255.255]?192.168.18.168(IP地址已作手艺措置,下同); D/ J7 c! P& `3 P. @
Source file name? igs-i-l.110-22a.bin(IOS映像文件名)
% Y) h& H2 y( M; H8 @' ~/ f& V Destination file name [igs-i-l.110-22a.bin]?
6 l8 r+ E0 j3 z* E1 u( {+ ^ Accessing file 'igs-i-l.110-22a.bin' on 192.168.18.168……
0 |( P3 I& J6 L3 ]) h6 K Loading igs-i-l.110-22a.bin from 192.168.18.168 (via Ethernet0): ! [OK]
' B" h- j8 W" ]1 @& { z Device needs erasure before copying new file6 \5 v8 @: c7 n& V& T
Erase flash device before writing? [confirm] Copy 'igs-i-l.110-22a.bin' from server as 'igs-i-l.110-22a.bin' into Flash WITH erase? [yes/no]y
. k' B! P0 g: Q* O8 O$ @9 d# G Erasing device……eeeeeeeeeeeeeeee……erased% P& G; Z1 T- }* N W* `
Loading igs-i-l.110-22a.bin from 192.168.18.168 (via Ethernet0): !!!!!!!!!!!!!!!!!!!!(!暗示恢复成功): y" }8 P" V6 P
7) 还原路由器虚拟寄放器的默认值(0x2102),恢复路由器的正常启动挨次,依次键入以下呼吁:$ `$ b p0 j4 f: c" k
router(boot)#conf t
! W5 i1 K7 r* c+ O router(boot)(config)#config-register 0x2102
2 k' U9 n$ z. i* h router(boot)(config)#exit
7 [" g' |+ F; W* }% N7 o router(boot)#wr0 F1 B6 U; S a; c# {0 c1 J
router(boot)#reload
5 p, N1 s; x, `& X6 ^ 2、IOS映像进级的体例及轨范: @8 ~4 m% v8 q4 O
1) 进级之前先备份,将相关文件备份至TFTP处事器,键入如下呼吁:router#copy bootflash tftp(Cisco 2500系列路由器不存在bootflash,响应的是rom)
2 O2 i/ X8 b- E- ^5 @ router#copy flash tftp0 x1 E8 b# B) ^+ E
router#copy startup-config tftp
# V* \5 R5 {" ]' D, r! r1 y8 o 2) 因为Cisco 1000,1600,2500,4000系列路由器不许可在正常工作状况下重写flash memory,所以只有进入rom(或bootflash)启动模式才能进级IOS映像,依次键入以下呼吁:! g" z4 e2 q/ C0 p1 s- I, V
router#conf t
+ P6 O, j5 I+ J% K router(config)#config-register 0x2101
) q$ m1 k8 N' u( @0 { router(config)#exit+ y: m' g. C6 E6 L: s% r% Y x
router#wr
, j& u+ a0 h; v6 m" A/ p5 k; L9 p router#reload; c4 P! d/ g6 p" h9 H0 N! x `5 f3 `
3) 路由重视启完毕后进入rom(或bootflash)启动模式,年夜TFTP处事器将新的IOS映像文件拷贝至路由器的flash memory中:
8 ?( E: E' r4 a: T2 L router(boot)#copy tftp flash
, B i9 i& y% `2 X 4) 还原路由器虚拟寄放器的默认值(0x2102),恢复路由器的正常启动挨次,依次键入以下呼吁:7 N! n3 R, g+ n% U/ T
router(boot)#conf t2 b7 Z7 m( z. K4 b0 B( ^4 S! {, L
router(boot)(config)#config-register 0x2102
- J! J% p4 p7 ?- H" C$ m router(boot)(config)#exit% ~5 D9 f/ S8 ~; K) h% s9 G; E" |
router(boot)#wr
/ b3 b8 f4 s7 m9 N O router(boot)#reload |