1. 將TFTP Server的網路埠連至Router的第一個FasteEthernet埠;設定TFTP Server的IP與Router的介面IP在同一個網段後,以Ping的方式確認双方連線正常。
2. 啟動TFTP Server服務,並將更新用的IOS置於TFTP Server設定的根目錄下。
3. 複製TFTP Server上的 IOS image到Router上進行更新作業。
於Console下輸入”copy tftp: flash: “的指令執行更新。
2800#copy tftp: flash:
Address or name of remote host []? 10.10.10.2

!--- 10.10.10.2 是指TFTP Server的IP位址

Source filename []?c2800nm-advipservicesk9-mz.124-25f.bin
Destination filename [c2800nm-advipservicesk9-mz.124-25f.bin]?y
Accessing tftp://10.10.10.2/ c2800nm-advipservicesk9-mz.124-25f.bin...
Erase flash: before copying? [confirm]y

!--- 因Flash的空間僅夠一個IOS存放,所以此處需輸入”Y ,以便先清出Flash的空間

Erasing the flash filesystem will remove all files! Continue? [confirm]y
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeee ...erased
Erase of flash: complete
Loading c2800nm-advipservicesk9-mz.124-25f.bin from 10.10.10.2 (via FastEthernet0/0): !!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 29654656/49807356 bytes]

Verifying checksum... OK (0xAC8A)
29654656 bytes copied in 56.88 secs (80383 bytes/sec)
4. 檢查上傳的IOS。
2800#dir flash:

Directory of flash:/

1 -rw- 29654656 <no date> c2800nm-advipservicesk9-mz.124-25f.bin

49807356 bytes total (20152636 bytes free)

2800#verify flash: c2800nm-advipservicesk9-mz.124-25f.bin

Verifying file integrity of flash: c2800nm-advipservicesk9-mz.124-25f.bin..........
................................................................................
................................................................................
.............................Done!
Embedded Hash MD5 : 1988B2EC9AFAF1EBD0631D4F6807C295
Computed Hash MD5 : 1988B2EC9AFAF1EBD0631D4F6807C295
CCO Hash MD5 : 141A677E6E172145245CCAC94674095A

Signature Verified
Verified flash: c2800nm-advipservicesk9-mz.124-25f.bin

5. 重新啟動Router
2800# reload
Proceed with reload? [confirm]

6. Router啟動完成後,以 “ show version “指令確認Router目前使用的版本。
2800#show version
00:22:25: %SYS-5-CONFIG_I: Configured from console by console
Cisco IOS Software, C2800 Software (C2800nm-ADVENTERPRISEK9-M), Version 12.4(25f),
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 17-Nov-06 11:18 by prod_rel_team

ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)

2811 uptime is 22 minutes
System returned to ROM by reload
System image file is "flash: c2800nm-advipservicesk9-mz.124-25f.bin "


開機異常:
1. 若上傳IOS,並重啟Router後,設備卻無法正常開機時。可利用rommon模式重新傳送IOS至Flash執行更新程序。
2. 欲進入rommon模式,可於開機時,按壓Ctrl+break鍵進入rommon模式。在rommon模式下執行IOS傳送前,需確認TFTP Server是連接至Router的第一個Lan埠。

設定指令如下所示,因rommon模式下的指令是有大、小寫之分,所以下列指令中以粗體呈現者,皆需注意其大、小寫。

rommon 1 > IP_ADDRESS=10.10.10.1
rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=10.10.10.254
rommon 4 > TFTP_SERVER=10.10.10.2
rommon 5 > TFTP_FILE= c2800nm-advipservicesk9-mz.124-25f.bin
rommon 6 > tftpdnld

IP_ADDRESS: 10.10.10.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 10.10.10.254
TFTP_SERVER: 10.10.10.2
TFTP_FILE: c2800nm-advipservicesk9-mz.124-25f.bin

Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y

!--- 因Flash的空間僅夠一個IOS存放,所以此處需輸入”Y ,以便先清出Flash的空間使用

Receiving c2800nm-advipservicesk9-mz.124-25f.bin from 10.10.10.2!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file c2800nm-advipservicesk9-mz.124-25f.bin to flash.
Erasing flash at 0x607c0000
program flash location 0x60440000
rommon 7 >
3. 成功上傳IOS後,於rommon模式下輸入 “reset”指令,重新啟動Router即可。
rommon 7 >reset




arrow
arrow
    文章標籤
    cisco ios 升版 ccna
    全站熱搜
    創作者介紹
    創作者 鵝 的頭像

    mini鵝的天地

    鵝 發表在 痞客邦 留言(0) 人氣()