在對能夠正常啟動的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檔案存在問題不可用; Router# dir flash: (檢視目前IOS映象檔名,也可用Router#Show version) Directory of flash:/ 1 -rw- 5998292 C2600-I-MZ.122-11.BIN 8388608 bytes total (2390252 bytes free) Router# copy flash tftp(備份IOS檔案) Source filename []?c2600-i-mz.122-11.bin Address or name of remote host []?10.32.10.1 (TFTP伺服器地址) Destination filename [c2600-i-mz.122-11.bin]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! „ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 5998292 bytes copied in 324.071 secs (18509 bytes/sec) Router# 3、對路由器進行IOS升級; Router# copy tftp flash Address or name of remote host []?10.32.10.1 (TFTP伺服器地址) Source filename []?c2600-i-mz.122-11.bin (需升級的新IOS映象檔名) Destination filename [c2600-i-mz.122-11.bin]? Do you want to over write? [confirm] Accessing tftp://10.32.10.1/c2600-i-mz.122-11.bin... Erase flash: before copying? [confirm] Erasing the flash filesystem will remove all files! Continue? [confirm] Erasing device... eeeeeeeeeeeeeeeeeeeeee ...erasedee Erase of flash: complete Loading c2600-i-mz.122-11.bin from 10.32.10.1 (via Ethernet0/0): !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! „ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 5998292 bytes] Verifying checksum... OK (0xA0C0) 5998292 bytes copied in 318.282 secs (18846 bytes/sec) Router#
在對能夠正常啟動的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檔案存在問題不可用; Router# dir flash: (檢視目前IOS映象檔名,也可用Router#Show version) Directory of flash:/ 1 -rw- 5998292 C2600-I-MZ.122-11.BIN 8388608 bytes total (2390252 bytes free) Router# copy flash tftp(備份IOS檔案) Source filename []?c2600-i-mz.122-11.bin Address or name of remote host []?10.32.10.1 (TFTP伺服器地址) Destination filename [c2600-i-mz.122-11.bin]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! „ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 5998292 bytes copied in 324.071 secs (18509 bytes/sec) Router# 3、對路由器進行IOS升級; Router# copy tftp flash Address or name of remote host []?10.32.10.1 (TFTP伺服器地址) Source filename []?c2600-i-mz.122-11.bin (需升級的新IOS映象檔名) Destination filename [c2600-i-mz.122-11.bin]? Do you want to over write? [confirm] Accessing tftp://10.32.10.1/c2600-i-mz.122-11.bin... Erase flash: before copying? [confirm] Erasing the flash filesystem will remove all files! Continue? [confirm] Erasing device... eeeeeeeeeeeeeeeeeeeeee ...erasedee Erase of flash: complete Loading c2600-i-mz.122-11.bin from 10.32.10.1 (via Ethernet0/0): !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! „ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 5998292 bytes] Verifying checksum... OK (0xA0C0) 5998292 bytes copied in 318.282 secs (18846 bytes/sec) Router#