思科认证:对恢复CISCOIOS路由器源文件! e1 \0 O6 g& _& ^; O+ j
教你如何恢复CISCOIOS路由器源文件
; M8 v1 e/ n* d- |& F7 i+ X6 u8 C/ Q 如果您的路由器的flash因为意外丢失了IOS,您可以在ROM monitor commands模式下通过如下两种办法恢复:1) xmodem—Use this if the computer attached to your console has a terminal emulator that has xmodem capability.0 \4 A" H1 }! M* ~& C; |7 E
2) tftpdnld—Use this if you have a TFTP server directly connected to the Ethernet 0 port.Using the xmodem Command
: m7 F3 {/ h+ ?0 ] 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.! N- Y0 ?+ ?; h6 D- C% o" [
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.; g. {9 r4 v7 n2 C$ J" {
Other options include the following:
. C ~$ J0 E9 D# q- j' F9 c ·-c—use cyclic redundancy check (CRC-16)8 y7 d3 T: }5 Z* u+ d/ {! O% ^
·-y—use Ymodem transfer protocol
, ~$ N1 M. V! S* I! X7 ` ·-r—copy the image to DRAM for launch
* t! `9 Z' E9 I ·-x—do not launch image on completion of downloadUsing the tftpdnld Command$ ~& b+ r: N+ v! {
The tftpdnld command downloads a Cisco IOS software image from a remote server into Flash memory using TFTP.
' {1 W9 Q' A5 k* \5 [ tftpdnld—Begins the TFTP copy command.
. M% `/ X3 I2 }: V" S The following variables are required:- o" Q' L* u9 K8 D
·IP_ADDRESS—The IP address for the router you are using.: B# J4 Q" z t ^! Z
·IP_SUBNET_MASK—The subnet mask for the router you are using.* O3 n. O6 ~; K; z4 L4 C/ C
·DEFAULT_GATEWAY—The default gateway for the router you are using.
) I+ W/ o3 D5 v) x, f/ n7 X& g ·TFTP_SERVER—The IP address of the server from which you want to download the image file.3 e3 u6 E2 N( V! E; Q$ c
·TFTP_FILE—The name of the file that you want to download. c% ]+ E# I3 R' v' C2 F
·The following variables are optional:' L( @$ Z: m0 N% w m& U9 d$ o, {
·TFTP_VERBOSE—Print setting. 0=quiet, 1=progress, 2=verbose. The default is 1.
. @' u( Y$ G- g ·TFTP_RETRY_COUNT—Retry count for ARP and TFTP. The default is 7.
$ |9 c6 \" a! {- J ·TFTP_TIMEOUT—Overall timeout of the download operation in seconds. The default is 2400 seconds.
- f C$ ]9 `& g4 s ·TFTP_CHECKSUM—Performs a checksum test on the image. 0=no, 1=yes. The default is 1.! L+ E2 d0 T. E6 T8 v& _
The syntax for specifying the variables is:# r' v5 _ N/ J0 C2 I" q/ X
VARIABLE_NAME=valueAfter you specify the variables, you must reenter the tftpdnld command. For example:# _3 f6 C2 `, X3 X- X& a
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- ]' d/ |4 g0 d5 }% I
IP_ADDRESS=172.15.19.11
& m# d0 H) S2 A( }3 l/ V( d+ { IP_SUBNET_MASK=255.255.255.0+ V( f5 @3 P4 J4 ^
DEFAULT_GATEWAY=172.15.19.11 m6 _5 k' z0 e6 J) ?
TFTP_SERVER=172.15.20.10
* x8 O! `/ r: b3 {& X TFTP_FILE=/tftpboot/2600-i-mz5 T5 ^, i3 `; l3 ]
TFTP_VERBOSE=1Invoke this command for disaster recovery only.
) A7 q0 {" o# V' i2 v WARNING: all existing data in flash will be lost!
( ] s) T( r0 {) i/ v. R5 ^6 [ 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. |