在路由器啟動(dòng)時(shí),如果IOS加載成功,但對(duì)路由器的各個(gè)模塊、各個(gè)接口不能初始化,則說(shuō)明沒(méi)能在NVRAM上成功地找到啟動(dòng)配置文件。啟動(dòng)配置文件丟失后,路由器可以正常啟動(dòng),但是不能對(duì)路由器的各個(gè)模塊進(jìn)行具體配置。啟動(dòng)配置文件的重新下載是通過(guò)TFTP進(jìn)行的。
和IOS丟失的處理方法一樣建立筆記本電腦和路由器之間的連接,并在筆記本電腦上啟動(dòng)TFTP服務(wù)。登錄路由器,進(jìn)入管理模式后,先設(shè)置en0端口的IP地址。
SSR(config)# interface add ip
en0 address-netmask 10.10.10.1/255.255.255.0
“Interface add ip”這個(gè)命令是為現(xiàn)有的接口配置第二個(gè)地址,因?yàn)閑n0這個(gè)管理接口是系統(tǒng)默認(rèn)已經(jīng)建好的回環(huán)接口。
此處的“en0”表示的網(wǎng)絡(luò)接口就是控制模塊的“10/100M Mgmt”以太網(wǎng)管理端口,在配置模式下,使用“COPY”命令復(fù)制配置文件。
SSR# copy tft-server to startup (在管理模式下)
TFTP server ? 10.10.10.2?。ㄝ斎隩FTP服務(wù)器的地址)
Source filename? Ssr-20030327 (輸入保存在TFTP服務(wù)器根目錄下配置文件的文件名)
Are you sure you want to overwrite the Startup configuration [no]? y
##################################
%TFTP-I-XFERRATE, Received 17263 bytes in 0.0 seconds
%CONFIG-W-STARTNOTACT,
Warning-startup configuration commands are not active,
use 'copy startup to active' to make them active.
系統(tǒng)提示:如果要把配置文件激活,請(qǐng)使用命令“copy startup to active”,也可以重啟路由器。
SSR# copy startup to active
……………………………………
系統(tǒng)正在刪除當(dāng)前的活動(dòng)配置,完畢后將重新加載恢復(fù)的配置文件。把TFTP服務(wù)器上的配置文件復(fù)制到SSR上,除了使用“copy tftp-server to startup”命令之外,還可以使用“copy tftp-server to active”命令把配置文件復(fù)制到SSR的內(nèi)存中。系統(tǒng)立即刪除原來(lái)內(nèi)存中的活動(dòng)配置,并加載新的配置。例如:
SSR# copy tftp-server to active
TFTP server? 10.10.10.1
Source filename? ssr-20030327
Are you sure you want to erase the active configuration [no]? y
##################################
%TFTP-I-XFERRATE, Received 17263 bytes in 0.0 seconds
……
系統(tǒng)正在刪除當(dāng)前的活動(dòng)配置,完畢后將重新加載新的配置,但最后還得使用“copy active to startup”把活動(dòng)配置文件復(fù)制到啟動(dòng)配置文件。這樣才能在下次啟動(dòng)時(shí),載入恢復(fù)的啟動(dòng)配置文件??荚嚧缶庉嬚?BR>
和IOS丟失的處理方法一樣建立筆記本電腦和路由器之間的連接,并在筆記本電腦上啟動(dòng)TFTP服務(wù)。登錄路由器,進(jìn)入管理模式后,先設(shè)置en0端口的IP地址。
SSR(config)# interface add ip
en0 address-netmask 10.10.10.1/255.255.255.0
“Interface add ip”這個(gè)命令是為現(xiàn)有的接口配置第二個(gè)地址,因?yàn)閑n0這個(gè)管理接口是系統(tǒng)默認(rèn)已經(jīng)建好的回環(huán)接口。
此處的“en0”表示的網(wǎng)絡(luò)接口就是控制模塊的“10/100M Mgmt”以太網(wǎng)管理端口,在配置模式下,使用“COPY”命令復(fù)制配置文件。
SSR# copy tft-server to startup (在管理模式下)
TFTP server ? 10.10.10.2?。ㄝ斎隩FTP服務(wù)器的地址)
Source filename? Ssr-20030327 (輸入保存在TFTP服務(wù)器根目錄下配置文件的文件名)
Are you sure you want to overwrite the Startup configuration [no]? y
##################################
%TFTP-I-XFERRATE, Received 17263 bytes in 0.0 seconds
%CONFIG-W-STARTNOTACT,
Warning-startup configuration commands are not active,
use 'copy startup to active' to make them active.
系統(tǒng)提示:如果要把配置文件激活,請(qǐng)使用命令“copy startup to active”,也可以重啟路由器。
SSR# copy startup to active
……………………………………
系統(tǒng)正在刪除當(dāng)前的活動(dòng)配置,完畢后將重新加載恢復(fù)的配置文件。把TFTP服務(wù)器上的配置文件復(fù)制到SSR上,除了使用“copy tftp-server to startup”命令之外,還可以使用“copy tftp-server to active”命令把配置文件復(fù)制到SSR的內(nèi)存中。系統(tǒng)立即刪除原來(lái)內(nèi)存中的活動(dòng)配置,并加載新的配置。例如:
SSR# copy tftp-server to active
TFTP server? 10.10.10.1
Source filename? ssr-20030327
Are you sure you want to erase the active configuration [no]? y
##################################
%TFTP-I-XFERRATE, Received 17263 bytes in 0.0 seconds
……
系統(tǒng)正在刪除當(dāng)前的活動(dòng)配置,完畢后將重新加載新的配置,但最后還得使用“copy active to startup”把活動(dòng)配置文件復(fù)制到啟動(dòng)配置文件。這樣才能在下次啟動(dòng)時(shí),載入恢復(fù)的啟動(dòng)配置文件??荚嚧缶庉嬚?BR>