CCNA--LAB-9:cisco升级IOS的方法


第一种方法:系统还可以启动到配置模式时 

使用 copy tftp flash 即可升级     // 拷贝 TFTP 服务器上 IOS FLASH



第二种方法:IOS被删除后的恢复 

如果因为误操作将 FLASH 中的 IOS 删除了,原 IOS 中的大部分命令都无法具体的过程如下,那么 ROUTER 将进入 ROM 使用。此时,可以通过 TFTP   务器向中存储的基本 IOS 模式,在这种模式下 ROUTER 传输 IOS ,使系统得已恢复。其在一台机器上安装 TFTP 服务器软件,将 IOS 文件放置在  TFTP 服务器的默认根目录下,打开 TFTP 服务器,用控制线将这台机器与 ROUTER 连接起来,另外用交叉网线连接机器的网卡和 ROUTER 的以太口。   (也可以用普通的网线将 ROUTER 和交换机相连再连接机器)做好以上工作后,打开机器的超级终端工具,连接上 ROUTER ,此时窗口中出现的命令行提示   符为 : ROMMON 1 >  (其中 “1” 代表命令行的行数)。在提示符后输入命令:(可以使用 ctrl+break 组合键进入 ROMMON 模式)  

ROMMON 1 >IP_ADDRESS= 
路由器的 IP 地址(需与 TFTP 服务器在同一网段内)  

ROMMON 2 >IP_SUBNET_MASK= 
路由器的子网掩码  

ROMMON 3 >DEFAUT_GATEWAY= 
默认网关地址   (可以没有,也可以是 TFTP 服务器)  

ROMMON 4 >TFTP_SERVER= TFTP 
服务器 IP 地址  

ROMMON 5 >TFTP_FILE= IOS
文件名(只给出文件名,不需要路径)  

ROMMON 6 >tftpdnld 
回车  

注意:前面的几条命令必须使用大写,而最后的 tftpdnld 则要用小写。  

tftpdnld 命令执行后,只行下,输入 reset 重启 ROUTER ,要根据提示选,就可完成文件的传重启后就又回到了熟悉的 IOS 模式下输。当文件传输完后,将自动回到命令甚至连以前配置的信息都不会丢失。  



第三种方法:通过Xmodem升级2610IOS实例 

本篇主要介绍通过 Xmodem 上传 IOS 的过程 , 准备工作,只要有 Cisco 原配的线缆就可以 .

在没有 IOS 的情况下   系统只能进入 Rommon 状态,在这个状态下只能见到如下命令:


rommon 1 > ?

alias               set and display aliases command

boot                boot up an external process

break               set/show/clear the breakpoint

confreg             configuration register utility

cont                continue executing a downloaded image

context             display the context of a loaded image

cookie              display contents of cookie PROM in hex

dev                 list the device table

dir                 list files in file system

dis                 display instruction stream

dnld                serial download a program module

frame               print out a selected stack frame

help                monitor builtin command help

history             monitor command history

meminfo             main memory information

repeat              repeat a monitor command

reset               system reset

set                 display the monitor variables

stack               produce a stack trace

sync                write monitor environment to NVRAM

sysret              print out info from last system return

tftpdnld            tftp image download

unalias             unset an alias

unset               unset a monitor variable

xmodem              x/ymodem image download

rommon 2 > xmodem -r 

会提示如下警告:  
WARNING: All existing data in bootflash will be lost!  
//警告:在bootflash所有现有的数据将丢失 (实际上就是把以前IOS删掉,把现在的拷贝进去)
Invoke this application only for disaster recovery. 
Do you wish to continue? y/n [n]: y 
Ready to receive file ? ... 

对于初次做IOS上传,建议不要去修改什么传输速率。传完以后对整个系统初始化 界面如下:  

Erasing flash at 0x603c0000 
program flash location 0x602f0000 
Download Complete! 
program load complete, entry point: 0x80008000, size: 0x2f0074 
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) C2600 Software (C2600-I-M), Version 11.3(6)T, RELEASE SOFTWARE (fc1) 
Copyright (c) 1986-1998 by cisco Systems, Inc. 
Compiled Tue 06-Oct-98 18:42 by ccai 
Image text-base: 0x80008084, data-base: 0x80554578 

cisco 2610 (MPC860) processor (revision 0x202) with 12288K/4096K bytes of memory 

Processor board ID JAB0233005Z (3677578902) 
M860 processor: part number 0, mask 32 
Bridging software. 
X.25 software, Version 3.0.0. 
1 Ethernet/IEEE 802.3 interface(s) 
1 Serial network interface(s) 
32K bytes of non-volatile configuration memory. 
4096K bytes of processor board System flash (Read/Write) 



Press RETURN to get started! 


00:00:06: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up 
00:00:06: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up 
00:00:06: %SYS-5-CONFIG_I: Configured from memory by console 
00:00:06: %SYS-5-RESTART: System restarted -- 
Cisco Internetwork Operating System Software 
IOS (tm) C2600 Software (C2600-I-M), Version 11.3(6)T, RELEASE SOFTWARE (fc1) 
Copyright (c) 1986-1998 by cisco Systems, Inc. 
Compiled Tue 06-Oct-98 18:42 by ccai 
00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on 
WL_bank_2610_2>Interface Ethernet0/0, changed state to up 
00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed sta 
te to up 
00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed sta 
te to up 
2610_2>        //
启动完毕

 

 

 

实验完成 !!








本文转自 meiyanaa 51CTO博客,原文链接:http://blog.51cto.com/justim/240466,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值