分享

rommon下修改console口速率

 昵称7497926 2011-08-12
 rommon采用xmodem这种方法恢复IOS时,由于使用console口来传送,速率为9600bps,需要时间较长。因此可修改console口速率利用xmodem命令实现快速升级IOS.具体方法如下:

    rommon 1 > confreg 回车

    Configuration Summary

    enabled are:

    load rom after netboot fails

    console baud: 9600

    boot: image specified by the boot system commands

    or default to: C3600

    do you wish to change the configuration? y/n [n]: y (选择 yes)

    enable "diagnostic mode"? y/n [n]: n (选择 no)

    enable "use net in IP bcast address"? y/n [n]: n (选择 no)

    disable "load rom after netboot fails"? y/n [n]: n (选择 no)

    enable "use all zero broadcast"? y/n [n]: n (选择 no)

    enable "break/abort has effect"? y/n [n]: n (选择 no)

    enable "ignore system config info"? y/n [n]: n (选择 no)

    change console baud rate? y/n [n]: y (选择 yes)

    enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400

    4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [0]: 7 (选择 7,用最大的11520

    速率的xmodem传输)

    change the boot characteristics? y/n [n]: n (选择 no)

    Configuration Summary

    enabled are:

    load rom after netboot fails

    console baud: 115200

    boot: image specified by the boot system commands

    or default to: C3600

    do you wish to change the configuration? y/n [n]: n (选择 no)

    You must reset or power cycle for new config to take effect

    rommon 2 > reset 回车注意:在按reset键前,需要修改串口速度(我的电脑——端口属性——串口速度调为115200),然后再修改超级终端里设置速率为115200,记住,一定要这么做,否则会出现乱码! 然后关闭这个超级终端,重新建立一个超级终端连接,重新启动路由器后,出现界面。

    rommon 1> 提示符然后,输入

    rommon 1> xmodem -r

    Do not start the sending program yet……

    Invoke this application only for disaster recovery.

    Do you wish to continue? y/n [n]: y (选择 yes)

    Ready to receive file ……

    此时,在超级终端的菜单上的“传送”——“发送文件”——选择IOS映像文件所在地以及选择使用“xmodem”协议,点击“发送”即可。待升级完成后,请记住修改回计算机串口与超级终端、路由器confreg下的xmodem等传输速率为 9600bps.

    方法如下:

    Router>en 进入新IOS的特权模式

    Router#reload 重启系统

    Proceed with reload? [confirm] 回车

    00:01:04: %SYS-5-RELOAD: Reload requested

    System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)

    Copyright (c) 1999 by cisco Systems, Inc.

    TAC:Home:SW:IOS:Specials for info

    PC = 0xfff0a530, Vector = 0x500, SP = 0x680127b0

    C2600 platform with 24576 Kbytes of main memory

    PC = 0xfff0a530, Vector = 0x500, SP = 0x80004684

    monitor: command "boot" aborted due to user interrupt

    30秒内按ctrl+break键

    rommon 1 > confreg ( 输入“confreg”命令)

    Configuration Summary

    enabled are:

    load rom after netboot fails

    console baud: 115200

    boot: image specified by the boot system commands

    or default to: C3600

    do you wish to change the configuration? y/n [n]: y (选择 yes)

    enable "diagnostic mode"? y/n [n]: n (选择 no)

    enable "use nn IP bcast address"? y/n [n]: n (选择 no)

    disable "load rom after netboot fails"? y/n [n]: n (选择 no)

    enable "use all zero broadcast"? y/n [n]: n (选择 no)

    enable "break/abort has effect"? y/n [n]: n (选择 no)

    enable "ignore system config info"? y/n [n]: n (选择 no)

    change console baud rate? y/n [n]: y (选择 yes)

    enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400

    4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [7]: 0 (选择 0,改回用标准速率速率9600的xmodem传输)

    change the boot characteristics? y/n [n]: n (选择 no)

    Configuration Summary

    enabled are:

    load rom after netboot fails

    console baud: 9600

    boot: image specified by the boot system commands

    or default to: C3600

    do you wish to change the configuration? y/n [n]: n You must reset or power cycle for new config to take effect

    rommon 2 >此时手工改回计算机串口与超级终端2者传输速率为9600

    然后敲入

    rommon 2 >reset最好关掉电源后,重新启动,恢复原有状态。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多