OK!成功的将IOS文件复制到了TFTP服务器。
从TFTP服务器恢复IOS文件
Router#show flash: ---查看flash
红线围起的就是IOS文件名,复制它,呆会要用到。
Router#delete flash: ---删除flash内容
Delete filename []?c2800nm-advipservicesk9-mz.124-15.T1.bin
-------指定要删除的文件名(就是我们复制的文件名)
Delete flash:/c2800nm-advipservicesk9-mz.124-15.T1.bin? [confirm]
------提示是否确认删除,直接回车确认。
Router#show flash: ---再次查看一下flash中的内容
Flash中已没有c2800nm-advipservicesk9-mz.124-15.T1.bin文件了,已成功删除!
Router#copy tftp: flash: ---从TFTP服务器下载IOS到flash
Address or name of remote host []? 100.1.1.1 ---指定TFTP地址
Source filename []? 2800.bin ---源文件名
Destination filename [2800.bin]? ---指定目标文件名
c2800nm-advipservicesk9-mz.124-15.T1.bin
完成注入!
Router#show flash: ---重新查看flash中的内容
OK!成功注入!
配置文件的备份和恢复:
查看一下配置:
Router#copy running-config tftp ---将配置文件copy到TFTP
Address or name of remote host []? 100.1.1.1 ---指定目标IP地址
Destination filename [Router-confg]? ccxx ---指定目标文件名
Writing running-config...!! --OK!成功复制!
[OK - 573 bytes]
上TFTP服务器看下。
OK!已经复制过来了!
下面做配置文件的恢复:
先清除掉配置文件。
Router#erase startup-config ---清除配置文件
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Router#reload ---重启设备
Proceed with reload? [confirm] ---提示是否确认重启,直接回车
Router#copy tftp: running-config ---从TFTP复制文件到内存
Address or name of remote host []? 100.1.1.1 ---指定源IP地址
Source filename []? ccxx ---指定源文件名
Destination filename [running-config]? ---指定目标文件名,直接回车
OK!成功恢复路由的配置文件!实验完成!