Cisco
路由器一般将IOS存放在flash中,如果误操作将IOS删除或者是在升级的过程中掉电,或者其他什么原因导致
路由器无法启动的话,都比较让人郁闷。
通常采用的方法就是通过tftp
服务器或者是xmodem的方式重新升级IOS。
用tftp的方式当然快了,但有些时候可能tftp用不了。只能用xmodem的方式。
下面就说说1760路由器的升级方式吧。
路由器升级的时候一定要注意IOS所要求的最小内存和最小flash
空间大小。只有你设备上的这些
空间都大于等于IOS所需要的要求后,才能进行升级。什么?你不知道这个IOS到底需要多大内存和flash?只要是在cisco网站
下载的,都可以查到。慢慢去查吧,不过得需要一定
权限的CCO帐号。
至少还能进的去监控模式吧。rommon 1 >
输入“?”可以看到当前可以执行的所有
命令,tftpdnld看到了吧。
rommon 1 > tftpdnld ?
可以看看这个命令后面有什么参数。
最关键的是这个:
IP_ADDRESS:
IP_SUBNET_MASK:
DEFAULT_GATEWAY:
TFTP_SERVER:
TFTP_FILE:
IP_ADDRESS就是你路由器的IP地址了,TFTP_SERVER当然就是你tftp服务器的地址了。
设置好这些参数后,在tftp服务器上
ping一下路由器看看通了没有。通了就可以升级了。:taoy,不知道怎么设这些参数啊?
唉……
rommon 2 > IP_ADDRESS: 192.168.0.1
rommon 3 > IP_SUBNET_MASK: 255.255.255.0
rommon 4 > DEFAULT_GATEWAY: 192.168.0.2
rommon 5 > TFTP_SERVER: 192.168.0.2
rommon 6 > TFTP_FILE: c1700-sy-mz.122-8.YJ.bin
设置好了就可以了。路由器的地址是192.168.0.1,tftp服务器的地址是192.168.0.2。IOS
文件名是c1700-sy-mz.122-8.YJ.bin。
下面就执行rommon 7 > tftpdnld
好像得reset一下才可以。呵呵。
rommon 1 > tftpdnld -r 执行这个命令吧,路由器会把IOS下载到DRAM中运行,等路由器启动以后再copy tftp flash 就OK了。其他的就不多数了。
rommon 8 > tftpdnld -r
IP_ADDRESS: 192.168.0.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.0.2
TFTP_SERVER: 192.168.0.106
TFTP_F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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
program load complete, entry point: 0x80008000, size: 0x5e5c5c
Self decompressing the image : ######################################################################################################################### [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) C1700 Software (C1700-SY-M), Version 12.2(8)YJ, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Synched to technology version 12.2(8.5)T
TAC Support:
http://www.cisco.com/tac
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Fri 21-Jun-02 15:38 by ealyon
Image text-base: 0x80008124, data-base: 0x80B64A38
cisco 1760 (MPC860P) processor (revision 0x200) with 29492K/3276K bytes of memory.
Processor board ID VMS06220ECE (3058387693), with hardware revision BB67
MPC860P processor: part number 5, mask 2
Bridging software.
X.25 software, Version 3.0.0.
1 FastEthernet/IEEE 802.3 interface(s)
2 Serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
Press RETURN to get started!