路由器 IOS 加載成功但接口/模塊無法初始化,提示啟動配置文件缺失。本文詳細記錄通過 TFTP 從筆記本電腦恢復啟動配置的完整命令流程(以 SSR 系列為例)。
路由器啟動時 IOS 正常,但 NVRAM 中找不到啟動配置,導致接口、模塊無配置,功能癱瘓。路由器仍可進入管理模式。
ssr-20030327)放於 TFTP 根目錄。SSR(config)# interface add ip en0 address-netmask 10.10.10.1/255.255.255.0
! en0 為管理口(10/100M Mgmt),此命令為現有接口添加第二 IP
SSR# copy tftp-server to startup
TFTP server? 10.10.10.2
Source filename? ssr-20030327
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.
SSR# copy startup to active
.........................................................
! 系統刪除當前活動配置,重新加載恢復的啟動配置
SSR# copy tftp-server to active
TFTP server? 10.10.10.2
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
...
! 立即生效,但需補充執行:
SSR# copy active to startup
! 將活動配置寫入啟動配置,保證下次重啟生效
copy active to startup 固化,否則重啟後再次丟失。