思科基礎知識:管理Cisco互聯(lián)網(wǎng)絡(3)
備份Cisco IOS
若要將Cisco IOS備份到TFTP服務器,使用copy flash tftp命令
恢復或升級Cisco路由器IOS
可以使用copy tftp flash命令將文件從TFTP服務器下載到閃存中。此命令需要TFTP服務器的IP地址以及要下載到閃存中的文件名。在開始操作之前,要確保欲放置到閃存中的文件在服務器默認的TFTP目錄下。
備份和恢復Cisco配置
對于路由器配置進行的任何修改存儲在running-config文件中。在修改了running-config后沒有執(zhí)行copy run start命令,那么路由器重載或掉電后修改的內(nèi)容會丟失。
備份Cisco路由器配置
要把路由器的配置文件從路由器復制到TFTP服務器,可以使用copy running-config tftp或copy startup-config tftp。其中一個備份當前正在DRAM中運行的路由器配置,一個備份存儲在NVRAM中的路由器配置。
驗證當前配置
可以使用sh running-config命令
- Router>en
- Router#sh run
- Building configuration...
- Current configuration : 547 bytes
- !
- version 12.1
當前信息表明路由器運行的是IOS 12.1版本
驗證存儲的配置
下面,應當檢查NVRAM中存儲的配置。要察看此配置,使用sh start命令:
- Router#sh start
- Using 547 out of 32762 bytes
- !
- version 12.1
將當前配置復制到NVRAM
將running-config復制到NVRAM作為備份,可以確信路由器重載時總是重載Running-config文件。
- Router#copy run start
- Destination filename [startup-config]? [Enter]
- Building configuration...
- [OK]
- Router#
將配置復制到TFTP服務器
使用copy run tftp命令
恢復Cisco路由器配置
使用copy tftp run命令
刪除配置
使用erase startup-config命令
- Router#erase startup-config
- Erasing the nvram filesystem will remove all files! Continue? [confirm][Enter]
- [OK]
- Erase of nvram: complete
- Router#
【編輯推薦】