cisco路由器IOS升级.docx

上传人:b****5 文档编号:5342254 上传时间:2022-12-15 格式:DOCX 页数:13 大小:21.45KB
下载 相关 举报
cisco路由器IOS升级.docx_第1页
第1页 / 共13页
cisco路由器IOS升级.docx_第2页
第2页 / 共13页
cisco路由器IOS升级.docx_第3页
第3页 / 共13页
cisco路由器IOS升级.docx_第4页
第4页 / 共13页
cisco路由器IOS升级.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

cisco路由器IOS升级.docx

《cisco路由器IOS升级.docx》由会员分享,可在线阅读,更多相关《cisco路由器IOS升级.docx(13页珍藏版)》请在冰豆网上搜索。

cisco路由器IOS升级.docx

cisco路由器IOS升级

IOS升级

在介绍CISCO路由器IOS升级方法前,有必要对Cisco路由器的存储器的相关知识作以简单介绍。

路由器与计算机相似,它也有内存和操作系统。

在Cisco路由器中,其操作系统叫做互连网操作系统(InternetworkOperatingSystem),常简称为IOS。

路由器的存储器主要有:

ROM:

只读存储器包含路由器正在使用的IOS的一份副本;

RAM:

IOS将随机访问存储器分成共享和主存。

主要用来存储运行中的路由器配置和与路由协议有关的IOS数据结构;

FLASH(闪存):

用来存储IOS软件映像文件,闪存是可以擦除内存,它能够用IOS的新版本覆写,IOS升级主要是闪存中的IOS映像文件进行更换。

NVRAM:

非易失性随机访问存储器,用来存储系统的配置文件。

IOS升级方法一

在对能够正常启动的CISCO路由器的IOS进行升级时,比较简单。

具体步骤如下:

1、寻找一种TFTP服务器软件(有CISCO公司的TFTPServer或3COM公司的3Cserver等,在升级较大IOS映象文件时,建议用3Cserver),安装在一台计算机上,将要升级的IOS映象文件拷贝到相关的目录中(例:

D:

\),并运行TFTP服务器软件,通过菜单设置Root目录为拷贝IOS映象文件所在目录(如D:

\)。

假设该计算机的IP地址为10.32.10.1;

2、连接路由器的console口与PC机的COM1,使用PC的超级终端软件访问路由器,将路由器的地址设为10.32.10.32(与计算机的IP地址同网段即可)。

建议在进行IOS升级前将原有IOS文件备份下来,防止待升级的IOS文件存在问题不可用;

QUOTE:

   Router#dirflash:

   (查看目前IOS映象文件名,也可用Router#Showversion)

   Directoryofflash:

/

   1  -rw-   5998292        C2600-I-MZ.122-11.BIN

   8388608bytestotal(2390252bytesfree)

   Router#copyflashtftp      (备份IOS文件)

   Sourcefilename[]?

c2600-i-mz.122-11.bin

   Addressornameofremotehost[]?

10.32.10.1(TFTP服务器地址)

   Destinationfilename[c2600-i-mz.122-11.bin]?

   !

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

   …

   !

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

   5998292bytescopiedin324.071secs(18509bytes/sec)

   Router#

3、对路由器进行IOS升级;

QUOTE:

   Router#copytftpflash

   Addressornameofremotehost[]?

10.32.10.1  (TFTP服务器地址)

   Sourcefilename[]?

c2600-i-mz.122-11.bin    (需升级的新IOS映象文件名)

   Destinationfilename[c2600-i-mz.122-11.bin]?

   Doyouwanttooverwrite?

[confirm]

   Accessingtftp:

//10.32.10.1/c2600-i-mz.122-11.bin...

   Eraseflash:

beforecopying?

[confirm]

   Erasingtheflashfilesystemwillremoveallfiles!

Continue?

[confirm]

   Erasingdevice...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...erasedee

   Eraseofflash:

complete

   Loadingc2600-i-mz.122-11.binfrom10.32.10.1(viaEthernet0/0):

!

!

!

!

!

!

!

!

!

!

!

!

!

!

   !

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

   …

   !

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

   [OK-5998292bytes]

   Verifyingchecksum...  OK(0xA0C0)

   5998292bytescopiedin318.282secs(18846bytes/sec)

   Router#

IOS升级方法二

由于升级失败后或者路由器的config-register寄存器值为0x2101时,开启路由器时、或者在开启(某些型号)Cisco路由器的电源开关后30秒内按下Ctrl+break键,中断路由器的正常启动,路由器都会进入rom监视模式,即Router(boot)>,在这种情形下,对路由器的IOS进行升级,也比较简单。

首先进入特权模式下,即

QUOTE:

Router(boot)>en

   Router(boot)#

其他升级步骤同方法一,即:

执行copytftpflash命令,对IOS进行升级。

升级完成后,不要忘了修改config-register寄存器值为0x2102(恢复正常值)。

QUOTE:

   Router(boot)#t

   Router(boot)(config)#config-register0x2102

   Router(boot)(config)#exit

   Router(boot)#wr

   Router(boot)#reload  

重启即可。

IOS升级方法三

由于不小心使用了命令eraseflash或升级失败后或在开启(某些型号)Cisco路由器的电源开关后30秒内按下Ctrl+break键,中断路由器的正常启动,路由器都会进入rom监视模式,即rommon1>,在这种情形下,对路由器的IOS进行升级,情况要稍微复杂一点。

在rommon1>状态下,可键?

请求帮助。

(1为命令行序号,每执行1条命令自动加1)

QUOTE:

rommon1>?

   alias        setanddisplayaliasescommand

   boot        bootupanexternalprocess

   break        set/show/clearthebreakpoint

   confreg      configurationregisterutility

   cont        continueexecutingadownloadedimage

   context      displaythecontextofaloadedimage

   cookie         displaycontentsofcookiePROMinhex

   dev           listthedevicetable

   dir           listfilesinfilesystem

   dis           displayinstructionstream

   dnld        serialdownloadaprogrammodule

   frame        printoutaselectedstackframe

   help        monitorbuiltincommandhelp

   history      monitorcommandhistory

   meminfo      mainmemoryinformation

   repeat         repeatamonitorcommand

   reset        systemreset

   set           displaythemonitorvariables

   stack        produceastacktrace

   sync        writemonitorenvironmenttoNVRAM

   sysret         printoutinfofromlastsystemreturn

   tftpdnld      tftpimagedownload

   unalias      unsetanalias

   unset        unsetamonitorvariable

   xmodem         x/ymodemimagedownload

   rommon2>

在rommon1>状态下有两种升级IOS方法。

(一)、通过Xmodem命令(注:

Xmodem与实际的modem没有任何联系只是一个传输协议数据是通过终端的串口和路由器的Console口灌进去的)升级IOS,具体步骤如下:

1、用Cisco原配的线缆连接路由器的console口与PC机的COM1,使用PC机的超级终端软件访问路由器,这时不需要对PC和路由器配置任何地址。

2、在这个模式下,输入Xmodem命令,即:

QUOTE:

   rommon2>xmodem-cc2600-i-mz.122-11.bin

   (-c是带校验,c2600-i-mz.122-11.bin为存放在PC机上的IOS映像文件)

   WARNING:

Allexistingdatainbootflashwillbelost!

   Invokethisapplicationonlyfordisasterrecovery.

   Doyouwishtocontinue?

y/n  [n]:

  y

Readytoreceivefilec2600-i-mz.122-11.bin...  (此时在超级终端的传送栏目=>选择发送文件选项=>再选择Xmodem并指明IOS映像文件所在的路径,按发送即开始上传IOS,等待时间很长,视IOS的大小和传输速度。

QUOTE:

Erasingflashat0x607c0000

   programflashlocation0x605b0000

   DownloadComplete!

传完以后,对整个系统初始化显示如下:

QUOTE:

   programloadcomplete,entrypoint:

0x80008000,size:

0x5b85e0

   Selfdecompressingtheimage:

#################################################

   #################################################[OK]

   SmartInitisdisabled.IOMEMsetto:

10

   Usingiomempercentage:

10

   RestrictedRightsLegend

   Use,duplication,ordisclosurebytheGovernmentis

   subjecttorestrictionsassetforthinsubparagraph

   (c)oftheCommercialComputerSoftware-Restricted

   RightsclauseatFARsec.52.227-19andsubparagraph

   (c)

(1)(ii)oftheRightsinTechnicalDataandComputer

   SoftwareclauseatDFARSsec.252.227-7013.

   ciscoSystems,Inc.

   170WestTasmanDrive

   SanJose,California95134-1706

   CiscoInternetworkOperatingSystemSoftware

   IOS(tm)C2600Software(C2600-I-M),Version12.2(11)T9,  RELEASESOFTWARE(fc1)

   TACSupport:

   Copyright(c)1986-2003byciscoSystems,Inc.

   CompiledMon23-Jun-0315:

42bycmong

   Imagetext-base:

0x8000809C,data-base:

0x80A68B48

   cisco2610(MPC860)processor(revision0x203)with22528K/2048Kbytesofmemory

   ProcessorboardIDJAD03483395(1128032249)

   M860processor:

partnumber0,mask49

   Bridgingsoftware.

   X.25software,Version3.0.0.

   1Ethernet/IEEE802.3interface(s)

   2Serial(sync/async)networkinterface(s)

   32Kbytesofnon-volatileconfigurationmemory.

   8192KbytesofprocessorboardSystemflash(Read/Write)

   PressRETURNtogetstarted!

   *Mar  100:

00:

05.652:

%PA-2-UNDEFPA:

UndefinedPortAdaptortype100inbay1

   *Mar  100:

00:

07.996:

%LINK-3-UPDOWN:

InterfaceEthernet0/0,changedstatetoup

   *Mar  100:

00:

07.996:

%LINK-3-UPDOWN:

InterfaceSerial0/0,changedstatetodown

   *Mar  100:

00:

07.996:

%LINK-3-UPDOWN:

InterfaceSerial0/1,changedstatetodown

   *Mar  100:

00:

09.142:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceEthernet0/0,changedstatetoup

   *Mar  100:

00:

09.142:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/0,changedstatetodown

   *Mar  100:

00:

09.142:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/1,changedstatetodown

   *Mar  100:

00:

09.458:

%SYS-5-CONFIG_I:

Configuredfrommemorybyconsole

   *Mar  100:

00:

11.245:

%LINK-5-CHANGED:

InterfaceSerial0/1,changedstatetoadministrativelydown

   *Mar  100:

00:

12.275:

%SYS-5-RESTART:

Systemrestarted--CiscoInternetworkOperatingSystemSoftware

   IOS(tm)C2600Software(C2600-I-M),Version12.2(11)T9,  RELEASESOFTWARE(fc1)

   TACSupport:

Copyright(c)1986-2003byciscoSystems,Inc.

   CompiledMon23-Jun-0315:

42bycmong

   *Mar  100:

00:

12.279:

%SNMP-5-COLDSTART:

SNMPagentonhostNE16isundergoingacoldstart

Router>

采用这种方法时,由于使用console口来传送,速率为9600bps,需要时间较长。

因此可修改console口速率利用xmodem命令实现快速升级IOS。

具体方法如下:

QUOTE:

rommon1>confreg回车

   ConfigurationSummary

   enabledare:

   loadromafternetbootfails

   consolebaud:

9600

   boot:

imagespecifiedbythebootsystemcommands

   ordefaultto:

cisco2-C2600

   doyouwishtochangetheconfiguration?

y/n[n]:

y(选择yes)

   enable"diagnosticmode"?

y/n[n]:

n(选择no)

   enable"usenetinIPbcastaddress"?

y/n[n]:

n(选择no)

   disable"loadromafternetbootfails"?

y/n[n]:

n(选择no)

   enable"useallzerobroadcast"?

y/n[n]:

n(选择no)

   enable"break/aborthaseffect"?

y/n[n]:

n(选择no)

   enable"ignoresystemconfiginfo"?

y/n[n]:

n(选择no)

   changeconsolebaudrate?

y/n[n]:

y(选择yes)

   enterrate:

0=9600,1=4800,2=1200,3=2400

   4=19200,5=38400,6=57600,7=115200[0]:

7(选择7,用最大的11520

   速率的xmodem传输)

   changethebootcharacteristics?

y/n[n]:

n(选择no)

   ConfigurationSummary

   enabledare:

   loadromafternetbootfails

   consolebaud:

115200

   boot:

imagespecifiedbythebootsystemcommands

   ordefaultto:

cisco2-C2600

   doyouwishtochangetheconfiguration?

y/n[n]:

n(选择no)

   Youmustresetorpowercyclefornewconfigtotakeeffect

   rommon2>reset回车

注意:

在按reset键前,需要修改串口速度(我的电脑---端口属性----串口速度调为115200),然后再修改超级终端里设置速率为115200,记住,一定要这么做,否则会出现乱码!

然后关闭这个超级终端,重新建立一个超级终端连接,重新启动系统后,出现

QUOTE:

rommon1>提示符

然后,输入

QUOTE:

   rommon1>xmodem-r

   Donotstartthesendingprogramyet...

   Invokethisapplic

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 艺术

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1