考博专家推荐书范文:cisco 2600 ios误删除后恢复(tftp)

来源:百度文库 编辑:中财网 时间:2024/04/29 05:02:04
cisco 2600 ios误删除后恢复(tftp)2008年11月28日 星期五 15:18
cisco 2600 ios误删除后恢复(tftp)

今天找来一台cisco2600想做个实验。本来想先把老的配置保存,没想到我竟然误把ios给删除了。

实在找不到2610的ISO了,结果用2620灌的,可以正常使用。

r7#copy startup-config x.cfg
Destination filename [x.cfg]?
Erase flash: before copying? [confirm]n
Verifying checksum... OK (0x1376)
1248 bytes copied in 0.232 secs

r7#dir
Directory of flash:/

    1 -rw-     4467540              c2600-c-mz.121-9.bin
    2 -rw-        1248                 x.cfg

8388608 bytes total (3919692 bytes free)

注意看红色字体,这是我恢复ios后的保存startup-config的步骤。因为当时没注意,直接回车了,造成ios被删除 ,正确的方法是 输入"n”,切记啊!!!

恢复开始,首先找个12.1ios

网址:http://www.net130.com/CMS/Pub/soft/soft_ios/2005_06_22_8294.htm

 

将路由器eth0口与笔记本用交叉线连接,通过concle口登录路由器,设置tftp的环境

rommon 1 >IP_ADDRESS=192.168.1.2                 //默认为路由器第一个以太网接口的ip

rommon 2 >IP_SUBNET_MASK=255.255.255.0    //设置路由器以太网接口的子网掩码

rommon 3 >DEFAULT_GATEWAY=192.168.1.1    //设置网关,否则tftp无法成功

rommon 4 >TFTP_SERVER=192.168.1.104           //设置笔记本ip,即为tftp serverip

rommon 5 >TFTP_FILE=c2600-c-mz.121-9.bin     //设置路由器要下载的ios文件名

rommon 6 > set                               //设置tftp完环境后,可以用set命令再检查一下,也可以略过

PS1=rommon ! >

RET_2_RTS=

IP_ADDRESS=192.168.1.2

IP_SUBNET_MASK=255.255.255.0

DEFAULT_GATEWAY=192.168.1.1

TFTP_SERVER=192.168.1.104

TFTP_FILE=c2600-c-mz.121-9.bin

rommon 7 > tftpdnld                      //核对无误后,开始tftp


          IP_ADDRESS: 192.168.1.2
      IP_SUBNET_MASK: 255.255.255.0
     DEFAULT_GATEWAY: 192.168.1.1
         TFTP_SERVER: 192.168.1.104
           TFTP_FILE: c2600-c-mz.121-9.bin

Invoke this command for disaster recovery only.
WARNING: all existing # in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y

Receiving c2600-c-mz.121-9.bin from 192.168.1.104

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file c2600-c-mz.121-9.bin to flash.
Erasing flash at 0x607c0000
program flash location 0x60120000

rommon 8 > confreg                   //下载ios完毕后,还需设置寄存器的值

      Configuration Summary
enabled are:
load rom after netboot fails
console baud: 9600
boot: image specified by the boot system commands
      or default to: cisco2-C2600

do you wish to change the configuration? y/n [n]: y      //要选择“y”
enable "diagnostic mode"? y/n [n]: n
enable "use net in IP bcast address"? y/n [n]: n
disable "load rom after netboot fails"? y/n [n]: n
enable "use all zero broadcast"? y/n [n]: n
enable "break/abort has effect"? y/n [n]: n
enable "ignore system config info"? y/n [n]: n
change console baud rate? y/n [n]: n
change the boot characteristics? y/n [n]: y      //要选择“y”
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
    [2]:2                           //要选择“2”

    Configuration Summary
enabled are:
load rom after netboot fails
console baud: 9600
boot: image specified by the boot system commands
      or default to: cisco2-C2600

do you wish to change the configuration? y/n [n]:n

rommon 8 > reset                       //重启路由器

重启后,恢复正常