cisco低端交換器IOS升級失敗的處理方法

來源:互聯網
上載者:User

標籤:最大的   unset   


大家都知道,cisco裝置IOS升級是很簡單的,就只要搭個ftp或tftp伺服器,然後在cisco裝置上使用
copy tftp:(或ftp:)flash:(高端裝置一般為sup-bootdisk:)
就可以了。並且高端裝置升級失敗後,即使你刪除了原有的IOS,也只需要弄一張flash卡,將IOS直接拷至flash卡,然後插至引擎上帶的 flash卡插槽,再設定一下IOS檔案位置就可以了。但低端裝置沒有配置flash插槽,此時怎麼辦呢?可能大家已經想到使用xmodem方式將IOS 檔案拷到裝置的flash裡。當然,這也是唯一的途徑。但xomdem通過串口線傳輸,速率為9600bps,速度非常慢,怎麼辦呢?
如果是路由器,那這個好辦,可通過confreg命令修改串口速率來解決,以下是通過confreg命令修改串口速率的簡單介紹:
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: cisco2-C2600

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: cisco2-C2600

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
然後就可使用以下命令通過xmodem方式升級IOS:

rommon 2 > xmodem -c c2600-i-mz.122-11.bin
但cisco低端交換器的romm模式裡(cisco低端交換器的romm模式的提示符為switch:)沒有confreg命令,怎麼辦呢?沒有這條命令並不代表它不能修改串口速率,使用以下命令就可以了:(注意大小寫)
switch:set BAUD 115200
switch:reset(重啟)
這個是改了,但低端交換器的romm模式裡輸入help命令,也看不到xmodem命令。和上面一樣,要使用其它命令,命令如下:
switch:copy xmodem: flash:c3750-advipservicesk9-mz.122-40.SE.bin
然後使用超級終端傳送檔案就可以了,本人測試了一下,使用此方法copy一個大約7M的IOS檔案只需20分鐘左右。copy完成後重啟交換器即可。
但使用此方法修改的串口速率使用以下命令不能修改成功:
line con 0
speed 9600
必須再進一次romm模式,使用unset BAUD命令將串口速率改為預設值。否則使用CRT或是超級終端時使用9600的速率將看不到cisco交換器的輸出資訊。

http://pan.baidu.com/s/1bns376R

(責任編輯:admin)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.