配置文件備份常見有兩種方法:一是直接使用show run,而後複製;另下面一種是要講的
routerA#ping 192.168.1.2 //保證路由器與tftp連通
routerA#copy running-config tftp //複製
Address or name of remote host []? 192.168.1.2
Destination filename [routerA-confg]?
Writing running-config...!!
[OK - 552 bytes]
552 bytes copied in 0.159 secs (3000 bytes/sec)
routerA#show flash //首先查看IOS的文件名,下面複製時需使用
System flash directory:
File Length Name/status
3 50938004 c2800nm-advipservicesk9-mz.124-15.T1.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[51193823 bytes used, 12822561 available, 64016384 total]
63488K bytes of processor board System flash (Read/Write)
routerA#copy flash: tftp:
Source filename []? c2800nm-advipservicesk9-mz.124-15.T1.bin
Address or name of remote host []? 192.168.1.2 //tftp
Destination filename [c2800nm-advipservicesk9-mz.124-15.T1.bin]?
Writing c2800nm-advipservicesk9-mz.124-15.T1.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 50938004 bytes]
50938004 bytes copied in 57.562 secs (884000 bytes/sec)