Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1402313
  • 博文数量: 269
  • 博客积分: 3602
  • 博客等级: 中校
  • 技术积分: 4535
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(269)

文章存档

2014年(8)

2013年(139)

2012年(122)

分类:

2012-08-21 13:17:49

笔者有一台2501的IOS是坏的(cisocB),另外一台2501IOS是好的(ciscoA),好的IOS在我的PC上面己经没有了, 但是通过在PC上面做一个TFTP,把好的传到PC上面,再传到坏的上面就太浪费时间了。后来想到一个办法,直接把好的路由器成TFTP。

  我的连接方式是两台路由器是通过E0口连接的,我先是在好的路由器上面(cisocA )把E0口配置好IP是192.168.10.90(IP地址随便配置,只要两个E0口都能互相PING通就行)再到配置模式下面输入 tftp-server c2500-js-l.122-7a.bin(这是你好的IOS里面的IOS文件名,用show version 来查看你的IOS文件名

  这台A己经配置好了以后,再到B这台来配置,首先让这台启动到BOOT模式,在全局配置模式下面输入-register 0x2101 再重启路由器,启动到BOOT模式以后,同样配置你的E口,到了BOOT模式以后,输入copy tftp flash ,提示你输入TFTP服务器,再输入文件名,就可以了,

  具体操作步骤如下:

  cisocA#conf t

  cisocA(config)#tftp-server c2500-js-l.122-7a.bin

  cisocA(config)#int e0

  cisocA(config-if)#ip add 192.168.10.90 255.255.255.0

  cisocA(config-if)#no shut

  ciscoB(config)#conf t

  ciscoB(config)#config-register 0x2101

  ciscoB(config)#end

  ciscoB#reload

  System configuration has been modified. Save? [yes/no]: y

  ciscoB(boot)>enable

  ciscoB(boot)#conf terminal

  ciscoB(boot)(config)#int e0

  ciscoB(boot)(config-if)#ip add 192.168.10.80 255.255.255.0

  ciscoB(boot)(config-if)#no shut

  ciscoB(boot)(config-if)#end

  ciscoB(boot)#erase flash

  System flash directory:

  File Length Name/status

  1 15533612 c2500-js-l.122-7a.bin

  [15533676 bytes used, 1243540 available, 16777216 total]

  Erase flash device? [confirm]

  Are you sure? [yes/no]: y

  Address or name of remote host [192.168.10.80]? 192.168.10.90

  Source file name? c2500-js-l.122-7a.bin

  Destination file name [c2500-js-l.122-7a.bin]?

  Erase flash device before writing? [confirm](回车)

  Copy 'c2500-js-l.122-7a.bin' from server

  as 'c2500-js-l.122-7a.bin' into Flash WITH erase? [yes/no]y

  输入Y以后,程序就自动COPY IOS,等成功以后,你再如下配置

  ciscoB(config)#config-register 0x2102

  ciscoB(config)#reload






阅读(1263) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~