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:將引導(dǎo)說明設(shè)定為開啟時(shí)加載新鏡像
經(jīng)由TFTP復(fù)制好鏡像之后,您可能需要通知路由器啟動(dòng)時(shí)加載什么鏡像。
檢查當(dāng)前引導(dǎo)說明
此時(shí),新的鏡像正在slot1中。您需要設(shè)定路由器以新的鏡像進(jìn)行啟動(dòng)。默認(rèn)設(shè)置是,路由器以首個(gè)可用鏡像進(jìn)行啟動(dòng)(當(dāng)配置中沒有引導(dǎo)說明時(shí),將啟用默認(rèn)值)。
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
!
以下命令出現(xiàn)在配置的開頭。在我們上文的實(shí)例中,顯示路由器boot system命令配置為 boot system flash slot1:c3640-i-mz.120-22.bin。
如果您的配置中有 boot system 命令條目,您需要從配置中將它們?nèi)コS嘘P(guān)去除boot條目的詳情,請(qǐng)參閱 下節(jié)。
去除先前的引導(dǎo)說明
如果要去除這些命令,請(qǐng)進(jìn)入配置終端模式。在配置模式中,您在每個(gè)引導(dǎo)說明前鍵入“no”來取消所有命令。下例說明如何去除當(dāng)前引導(dǎo)說明。
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" ”說明從配置中去除。請(qǐng)通過發(fā)出 show running-config 命令檢驗(yàn)該命令是否已經(jīng)去除。
設(shè)定新的引導(dǎo)說明
現(xiàn)在設(shè)定路由器以新的鏡像進(jìn)行啟動(dòng)。請(qǐng)發(fā)出以下命令來設(shè)定boot system參數(shù):
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#
通過發(fā)出show version命令來檢驗(yàn)是否正在使用 config-register 0x2102 。如果是不同的設(shè)定,您可以通過在配置模式中發(fā)出以下命令進(jìn)行改變:
3600#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
3600(config)#config-register 0x2102
3600(config)#^Z
改變了config - register之后,將在下一次重新加載時(shí)變化起作用。