2017年8月21日 星期一

Cisco Router 更新 IOS 映像檔(使用TFTP)


1.下載新IOS https://software.cisco.com/download/navigator.html?mdfid=268437899

2.電腦開啟TFTP軟體

3.連上Cisco Router ( Console or Telnet )

4.檢查當前的 Cisco IOS 映像檔
Cisco_Router#show version
Cisco_Router#dir flash:

5.上傳IOS到Router,輸入TFTP IP及新IOS檔名
Cisco_Router#copy tftp flash
Address or name of remote host []?172.16.0.100
Source filename []?c1900-universalk9-mz.SPA.155-3.M6.bin
Destination filename [c1900-universalk9-mz.SPA.155-3.M6.bin]?Enter
Accessing tftp://172.16.10.100/c1900-universalk9-mz.SPA.155-3.M6.bin...
Loading c1900-universalk9-mz.SPA.155-3.M6.bin from 172.16.10.100 (via Vlan100):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 79736636 bytes]

79736636 bytes copied in 151.816 secs (525219 bytes/sec)

Cisco_Router#

6.檢驗IOS是否上傳成功及檢查新IOS映像檔是否完整
Cisco_Router#dir flash:
Cisco_Router#verify flash:c1900-universalk9-mz.SPA.155-3.M6.bin

7.預設情況下,路由器的啟動序列會載入快閃記憶體中所列出的第一個 Cisco IOS 映像檔。保證路由器載入新映像檔的方法之一是設定 boot system flash 命令。
Cisco_Router(config)#boot system flash c1900-universalk9-mz.SPA.155-3.M6.bin
Cisco_Router(config)#end
Cisco_Router#copy running-config startup-config
Destination filename [startup-config]?Enter
Building configuration...
[OK]
Cisco_Router#

8.測試新映像檔
使用reload指令重啟路由器,重啟後使用show version檢查新IOS映象檔是否已位於RAM中
Cisco_Router#reload
Proceed with reload? [confirm]Enter
Cisco_Router#show version

9.刪除舊的IOS
Cisco_Router#delete flash0:/c1900-universalk9-mz.SPA.154-3.M3.bin
Delete filename [c1900-universalk9-mz.SPA.154-3.M3.bin]? Enter
Delete flash0:/c1900-universalk9-mz.SPA.154-3.M3.bin? [confirm] Enter
Cisco_Router#

沒有留言:

張貼留言