----------------以下内容為我更新IOS的詳細步驟------------------------------------------------------- show version 檢視目前運作的系統資訊,包括啟動檔案(即IOS)等 show boot 檢視目前的IOS資訊 show asdm image 檢視目前運作的ASDM資訊 copy nvram:/filename tftp://ip/filename 用tftp協定進行檔案傳輸 boot system file 設定IOS啟動檔案 asdm image file 設定asdm啟動檔案(用no是取消) erase / format 删除所有檔案 檔案傳輸可以使用ftp,http,tftp等協定,建議使用tftp協定,簡單易用。可以使用一般的路由器連接配接模式,也可以用console登陸,使用management口連接配接都行。 1、telnet上asa GZ5510>ena 進入特權模式 GZ5510#conf t 進入配置模式 GZ5510(config)# dir 檢視asa上的檔案 Directory of disk0:/ 我的裝置沒有單獨購買flash,是以檔案位置在disk0 4879 -rw- 8202240 19:18:10 Nov 16 2011 asa721-k8.bin 2391 -rw- 5539756 00:43:38 Nov 05 2007 asdm521.bin 4842 drw- 0 18:51:24 Nov 16 2011 log 4843 drw- 0 18:51:36 Nov 16 2011 crypto_archive 255426560 bytes total (215465984 bytes free) 2、找台PC,運作tftpd32.exe,設定目錄,傳輸檔案 GZ5510(config)# show ver 指令解釋看前面 Cisco Adaptive Security Appliance Software Version 7.2(1) Device Manager Version 5.2(1) 。。。。。 省略若幹字 System image file is "disk0:/asa721-k8.bin" 這就是啟動檔案和路徑 。。。。。 3、備份上面dir的檔案,我這裡tftpd32.exe的PC的IP:192.168.1.2 GZ5510(config)# copy disk0:/asa721-k8.bin tftp://192.168.1.2/asa721-k8.bin 。。。。。。 GZ5510(config)# copy disk0:/asdm521.bin tftp://192.168.1.2/asdm521.bin 。。。。。。 show run 把目前的配置也要備份,以免操作失誤所有配置都沒了 。。。。。。 。。。。。。 4、删除以前老的檔案(也可以保留再用delete指令) GZ5510(config)# erase disk0: Erase operation may take a while. Continue? [confirm] Erase: Operation completed successfully. Format: Drive communication & 1st Sector Write OK... Format: All system sectors written. OK... Format: Total sectors in formatted partition: 499168 Format: Total bytes in formatted partition: 255574016 Format: Operation completed successfully. Erase of disk0: complete GZ5510(config)# dir Directory of disk0:/ No files in directory 255426560 bytes total (255401984 bytes free) 5、用上面的指令上傳最新的檔案 GZ5510(config)# copy tftp://192.168.1.2/asa802-k8.bin disk0:/ asa821-k8 GZ5510(config)# copy tftp://192.168.1.2/asdm-602.bin disk0:/asdm-602.bin GZ5510(config)# copy tftp://192.168.1.2/asa721-k8.bin disk0:/asa721-k8.bin GZ5510(config)# dir Directory of disk0:/ 5 -rw- 14524416 20:29:36 Oct 09 2008 asa802-k8.bin 1778 -rw- 6889764 20:31:10 Oct 09 2008 asdm-602.bin 2620 -rw- 8202240 20:33:04 Oct 09 2008 asa721-k8.bin 防止操作失當沒有啟動檔案,再傳回去 255426560 bytes total (225771520 bytes free) 6、設定啟動檔案 GZ5510(config)# no boot system disk0:/ asa708-k8.bin 取消之前的啟動IOS GZ5510(config)# boot system disk0:/asa821-k8.bin GZ5510(config)# asdm image disk0:/asdm-634-53.bin 設定asdm GZ5510(config)# reload 重新啟動,配置生效