All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 4
PT 練習 4.5.4:使用 TFTP 伺服器升級 Cisco IOS 映像檔 拓樸圖
學習目標
檢查當前的 Cisco IOS 映像檔
設定連接以存取 TFTP 伺服器
上傳新的 Cisco IOS 映像檔
設定 boot system 命令
測試新的 Cisco IOS 映像檔簡介
在本練習中,你將設定連接以存取 TFTP 伺服器,並上傳更新、更高級的 Cisco IOS 映像檔。雖然 Packet Tracer 會模擬在路由器上升級 Cisco IOS 映像檔,但是不會模擬將 Cisco IOS 映像檔備份到 TFTP 伺服器 中。此外,雖然你要升級到的映像檔更為高級,但 Packet Tracer 模擬過程不會透過啟用更高級的命令來反 映這一升級。既有的 Packet Tracer 命令集仍然有效。
任務 1:檢查當前的 Cisco IOS 映像檔
步驟 1. 使用 show version 命令檢查 RAM 中當前所載入的映像檔版本。
R2#show version
Cisco IOS Software, 1841 Software (C1841-IPBASE-M), Version 12.3(14)T7, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Mon 15-May-06 14:54 by pt_team
ROM: System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1) System returned to ROM by power-on
System image file is "flash:c1841-ipbase-mz.123-14.T7.bin"
<省略部分輸出>
RAM 中當前所載入的映像檔不支援 SSH 及其它許多高級功能。
CCNA Exploration
接取 WAN:網路安全 PT 練習 4.5.4:使用 TFTP 伺服器升級 Cisco IOS 映像檔
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 4
步驟 2. 使用 show flash 命令檢驗快閃記憶體中當前是否有可用的映像檔。
R2#show flash
System flash directory:
File Length Name/status
1 13832032 c1841-ipbase-mz.123-14.T7.bin
[13832032 bytes used, 18682016 available, 32514048 total]
32768K bytes of processor board System flash (Read/Write)
只有一個 Cisco IOS 映像檔可用。你必須將映像檔升級至更高版本才能使用 SSH 和其它安全功能。
任務 2:設定連接以存取 TFTP 伺服器
你需要建立連接,使 R2 連接到含有所需 Cisco IOS 映像檔的 TFTP 伺服器。
步驟 1. 連接 R2 和 TFTP 伺服器。
請參照拓樸圖找到正確的介面。
步驟 2. 設定 R2 的 IP 位址。
請參照拓樸圖獲得正確的 IP 定址資訊。
步驟 3. 設定 TFTP 伺服器的 IP 位址和預設閘道。
請參照拓樸圖獲得正確的 IP 定址資訊。
步驟 4. 測試連通性。
R2 應該能成功 ping 通 TFTP 伺服器。否則,請檢查電纜連線和定址情況。
步驟 5. 檢查結果。
完成比例應為 80%。如果不是,請按一下 Check Results(檢查結果),瞭解哪些必需的組件尚未完 成。
任務 3:上傳新的 Cisco IOS 映像檔
步驟 1. 檢查 TFTP 伺服器上的 Cisco IOS 映像檔。
按一下 TFTP 伺服器,然後按一下 Config(設定)頁標籤。你會注意到有多個可用的映像檔。你需要將映 像檔 c1841-ipbasek9-mz.124-12.bin 上傳到 R2。
步驟 2. 將映像檔 c1841-ipbasek9-mz.124-12.bin 上傳到 R2。
在 R2 上,使用 copy tftp flash 命令開始上傳過程。
輸入 TFTP 伺服器的 IP 位址。
輸入該 Cisco IOS 映像檔的完整檔案名。CCNA Exploration
接取 WAN:網路安全 PT 練習 4.5.4:使用 TFTP 伺服器升級 Cisco IOS 映像檔
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 4
R2#copy tftp flash
Address or name of remote host []? 192.168.20.254 Source filename []? c1841-ipbasek9-mz.124-12.bin
Destination filename [c1841-ipbasek9-mz.124-12.bin]? Enter
Accessing tftp://192.168.20.254/c1841-ipbasek9-mz.124-12.bin...
Loading c1841-ipbasek9-mz.124-12.bin from 192.168.20.254:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!
[OK - 16599160 bytes]
16599160 bytes copied in 13.047 secs (284682 bytes/sec) R2#
步驟 3. 檢驗新的映像檔是否已在快閃記憶體中。
R2#show flash
System flash directory:
File Length Name/status
1 13832032 c1841-ipbase-mz.123-14.T7.bin 2 16599160 c1841-ipbasek9-mz.124-12.bin
[30431192 bytes used, 2082856 available, 32514048 total]
32768K bytes of processor board System flash (Read/Write) R2#
步驟 4. 檢查結果。
完成比例應為 90%。如果不是,請按一下 Check Results(檢查結果),瞭解哪些必需的組件尚未完 成。
任務 4:設定 boot system 命令
預設情況下,路由器的啟動序列會載入快閃記憶體中所列出的第一個 Cisco IOS 映像檔。保證路由器載入 新映像檔的方法之一是設定 boot system flash 命令。在 R2 上,輸入以下命令:
R2(config)#boot system flash c1841-ipbasek9-mz.124-12.bin
該命令現在屬於執行設定的一部分。但是,必須將執行設定儲存到 NVRAM 中;否則,下次重新啟動路由 器時該設定會被改寫。
R2(config)#end
R2#copy running-config startup-config
完成比例應為 100%。如果不是,請按一下 Check Results(檢查結果),瞭解哪些必需的組件尚未完 成。
CCNA Exploration
接取 WAN:網路安全 PT 練習 4.5.4:使用 TFTP 伺服器升級 Cisco IOS 映像檔
All contents are Copyright © 1992–2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 4
任務 5:測試新映像檔
重載 R2 並等它重新啟動。路由器重新啟動後,請使用 show version 命令檢驗新的映像檔是否已位於 RAM 中。
R2#reload
Proceed with reload? [confirm][Enter]
%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
<省略部分輸出>
R2>show version
Cisco IOS Software, 1841 Software (C1841-IPBASEK9-M), Version 12.4(12), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Mon 15-May-06 14:54 by pt_team
ROM: System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1) System returned to ROM by power-on
System image file is "flash:c1841-ipbasek9-mz.124-12.bin"
<省略部分輸出>