在路由器的配置過程中,經常會用到COPY這個命令。下面我們就為大家介紹如何使用COPY命令備份配置文件,以及如何從TFTP服務器拷貝備份配置文件。
1、copy running-config startup-config
這個命令是將存儲在RAM的正確配置拷貝到路由器的NVRAM中。這樣,在下一次啟動時,路由器就會使用這個正確的配置。
2、copy running-config tftp
這個命令是將RAM中正確的配置文件拷貝到TFTP服務器上,我們強烈推薦網絡管理員這樣做,因為如果路由器不能從NVRAM中正常裝載配置文件,我們可以通過從TFTP中拷貝正確的配置文件。
it168#copy running-config tftp address or name of remote host []?129.0.0.3 destination file name [it168-confg]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 624 bytes copied in 7.05 secs it168# |
3、copy tftp running-config
如果路由器的配置文件出現問題,這時我們就可以通過從TFTP服務器中拷貝備份的配置文件。具體配置如下:
it168#copy tftp running-config address or name of remote host[]? 129.0.0.3 source filename []?it168-confg destination file name [running-config]? Accessing tftp://129.0.0.3/it168-confg loading it168-confgfrom 129.0.0.3 (via fastethernet 0/0): !!!!!!!!!!!!!!!!!!!!!!![ok-624 bytes] 624 bytes copied in 9.45 secs it168# |