如不美观您的路由器的flash因为意外丢失踪了IOS,您可以在ROM monitor commands模式下经由过程如下两种法子恢复:1) xmodem—Use this if the computer attached to your console has a terminal emulator that has xmodem capability.
8 _9 q5 L# [, q1 b& |# T' u7 H 2) tftpdnld—Use this if you have a TFTP server directly connected to the Ethernet 0 port.Using the xmodem Command! @) W7 R3 Q B2 M C: K
The xmodem command establishes a connection between a console and the router console port for disaster recovery if both the boot and system images are erased from Flash memory.7 p' l/ q% L2 P
xmodem [filename]—Establishes an xmodem connection between the console and the router. The optional parameter filename specifies the source file containing the Cisco IOS image.
* b' V5 p# @9 a5 B5 w ? Other options include the following:9 V- R, R" c5 a ]' i
·-c—use cyclic redundancy check (CRC-16)
9 E4 w! h- I* b2 g ·-y—use Ymodem transfer protocol
! g3 P/ `/ Y8 c/ I+ ~ ·-r—copy the image to DRAM for launch+ d% `+ t0 G4 D
·-x—do not launch image on completion of downloadUsing the tftpdnld Command9 H1 Z$ V9 V- _* `9 x
The tftpdnld command downloads a Cisco IOS software image from a remote server into Flash memory using TFTP.
+ x a2 V- P7 b H, o1 H' m tftpdnld—Begins the TFTP copy command.; L; R6 }# k5 P! A
The following variables are required:
3 d5 T+ n( L) d, g6 y. Y: \" Y ·IP_ADDRESS—The IP address for the router you are using.* a- R* V( C9 T; T1 @8 g1 ]- R
·IP_SUBNET_MASK—The subnet mask for the router you are using.
* U4 q9 t0 ]3 \. j, t; |( C* J4 E ·DEFAULT_GATEWAY—The default gateway for the router you are using.
" \# D/ m$ Q! A8 o7 C ·TFTP_SERVER—The IP address of the server from which you want to download the image file.
4 Z5 Q. f7 Q8 H3 @2 L: ^! B ·TFTP_FILE—The name of the file that you want to download.2 A, X) {1 `5 D5 f4 K
·The following variables are optional:
' b7 Y5 d. q: T0 ]4 o# J ·TFTP_VERBOSE—Print setting. 0=quiet, 1=progress, 2=verbose. The default is 1. s: l+ c% \ T G- q
·TFTP_RETRY_COUNT—Retry count for ARP and TFTP. The default is 7.
, a+ a& q/ P& O$ C ·TFTP_TIMEOUT—Overall timeout of the download operation in seconds. The default is 2400 seconds.8 C0 W- X# L5 L- t( U8 M; [$ j
·TFTP_CHECKSUM—Performs a checksum test on the image. 0=no, 1=yes. The default is 1.
" |) \ n& y3 o' e2 r% f7 |+ ] The syntax for specifying the variables is:, p4 m( n' T9 _
VARIABLE_NAME=valueAfter you specify the variables, you must reenter the tftpdnld command. For example:
" Z$ @, _, H# b* ]. h rommon 1 > tftpdnldrommon 2 > IP_ADDRESS=172.15.19.11rommon 3 > IP_SUBNET_MASK=255.255.255.0rommon 4 > DEFAULT_GATEWAY=172.15.19.1rommon 5 > TFTP_SERVER=172.15.20.10rommon 6 > TFTP_FILE=/tftpboot/c2600-i-mzrommon 7 > TFTP_VERBOSE=1rommon 8 > tftpdnld" K! p. q) s* g% `! G9 g
IP_ADDRESS=172.15.19.114 m) K: m m3 h# d1 V: Z2 d
IP_SUBNET_MASK=255.255.255.0
* H! a" o# k4 x5 _6 `; T6 P DEFAULT_GATEWAY=172.15.19.1. s6 E B8 h s7 w) k
TFTP_SERVER=172.15.20.10( p/ K% Z i$ R* w
TFTP_FILE=/tftpboot/2600-i-mz
9 L6 j; F5 a; h6 E( P F TFTP_VERBOSE=1Invoke this command for disaster recovery only.
6 M1 t. N% h. T T$ y2 ` g WARNING: all existing data in flash will be lost!
% [! i2 h( r! U6 u/ e; M4 P! | Do you wish to continue? y/n: [n]:Enter y to begin downloading the Cisco IOS software image. When the process is complete, the ROM monitor mode prompt displays on your screen. |