惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - 骚包猪

未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序的解决办法 一份详尽的IPC$入侵资料 vlookup通俗解释 show interface counter 红旗linux下查看文件夹大小 x61在vista系统中玩wow魔兽世界 显示器驱动程序已停止响应 黑屏 终极解决方案 如何利用foobar2000将ape转aac格式.... ASP.NET执行SQL超时的解决方案 windows 更改IP地址 批处理文件 cmd命令 - 骚包猪 DropdownList绑定 - 骚包猪 - 博客园 .Net下调用SqlServer2k存储过程 关于datagrid鼠标悬停行数突出显示 - 骚包猪 - 博客园 c# ToString() 格式化字符串 - 骚包猪 ASCII 码表 一个检测文件 的small function c#时间格式化字符串详解 关于编码 建立一个基本SQl2000表 如何将txt文档插入sql2000数据库
Cisco 删除IOS后恢复、重灌ios
骚包猪 · 2010-07-27 · via 博客园 - 骚包猪

Flash 被清空,只能进入rommon 模式,唯一办法重灌IOS镜像文件,所需IOS文件可以到cisco官方网站和www.net130.com下载:
    软件准备:
* 先找到与机型相配的IOS文件(注意机子的内存大小选择大小相配的文件);
* 去下个Cisco TFTP Server;
   硬件准备:
* 除了要一根控制线外,还要一根交叉线来连接Router和你的控制电脑(注意Cisco Router一般规定了灌IOS必须用interface ethernet0/0,即第一个以太网端口);
   注意事项:
* 你要灌的IOS文件要放到Cisco TFTP Server的根目录下,Cisco TFTP Server才会自动找到你所需要加载的IOS镜像文件;

通过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 server的ip

rommon 5 >TFTP_FILE=c2600-i-mz.123-6c.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-i-mz.123-6c.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-i-mz.123-6c.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                       //重启路由器

重启后,恢复正常

如果不能确定ios版本,可在路由器重启之前,按ctrl+break进入rommon后,输入reset命令,可以看到当前路由器需要ios的版本文件


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yangfree990/archive/2010/06/10/5661937.aspx