Cisco路由器的远程备份和恢复备忘

2021-12-09 486点热度 0人点赞 0条评论

需求说明

在同一个局域网,希望备份Cisco路由器的配置文件到局域网的机器里。

实现

  • 准备工作,在备份的电脑上准备一个简易的TFTP Server,例如Mac下有FtfpServer,Windows下也有类似的软件:https://www.solarwinds.com/free-tools/free-tftp-server,可以自己搜索下tftpServer软件,是一个很小的应用。
  • 要备份过去的文件,server那边必须需要先生成空白文件
touch voicegw-jj-confg
chmod 777 voicegw-jj-confg
  • 路由器上进行备份和恢复(假设安装有ftpServer的电脑IP是192.168.1.108)
#以下为路由器上的操作
VoiceGW-JJ#copy running-config tftp
Address or name of remote host []? 192.168.1.108
Destination filename [voicegw-jj-confg]?

#恢复(前提路由器上先要开启接口,并配置IP地址)
copy tftp running-config
#把当前配置文件复制到NVRAM,下次断电启动也是这个配置了
copy running-config startup-config

#查看
show startup-config
show running-config

 

admin

这个人很懒,什么都没留下

文章评论

您需要 登录 之后才可以评论