3600#dir slot1:
Directory of slot1:/
2 -rw- 3748760 c3640-i-mz.120-22.bin
3 -rw- 5996844 c3640-i-mz.122-7b.bin
步驟 5:將引導說明設定為開啟時加載新鏡像
經由TFTP復制好鏡像之后,您可能需要通知路由器啟動時加載什么鏡像。
檢查當前引導說明
此時,新的鏡像正在slot1中。您需要設定路由器以新的鏡像進行啟動。默認設置是,路由器以首個可用鏡像進行啟動(當配置中沒有引導說明時,將啟用默認值)。
3600#show running-config
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 3600
!
boot system flash slot1:c3640-i-mz.120-22.bin
!
ip subnet-zero
!
以下命令出現在配置的開頭。在我們上文的實例中,顯示路由器boot system命令配置為 boot system flash slot1:c3640-i-mz.120-22.bin。
如果您的配置中有 boot system 命令條目,您需要從配置中將它們去除。有關去除boot條目的詳情,請參閱 下節。
去除先前的引導說明
如果要去除這些命令,請進入配置終端模式。在配置模式中,您在每個引導說明前鍵入“no”來取消所有命令。下例說明如何去除當前引導說明。
3600#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3600(config)#no boot system flash slot1:c3640-i-mz.120-22.bin
3600(config)#^Z
3600#
“no boot system flash slot1:c3640-i-mz.120-22.bin" ”說明從配置中去除。請通過發出 show running-config 命令檢驗該命令是否已經去除。
設定新的引導說明
現在設定路由器以新的鏡像進行啟動。請發出以下命令來設定boot system參數:
boot system flash slot#:{imagename} (imagename = name of the new Cisco IOS software image)
3600#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3600(config)#boot system flash slot1:c3640-i-mz.122-7b.bin
3600(config)#^Z
3600#write memory
3d01h: %SYS-5-CONFIG_I: Configured from console by vty0
Building configuration...
3600#
通過發出show version命令來檢驗是否正在使用 config-register 0x2102 。如果是不同的設定,您可以通過在配置模式中發出以下命令進行改變:
3600#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3600(config)#config-register 0x2102
3600(config)#^Z
改變了config - register之后,將在下一次重新加載時變化起作用。