路由器配置文件备份及恢复

一、 备份配置文件到ftp服务器
1、 配置ftp服务器,添加用户aaa并设置密码123
2、 配置路由器主机名,密码,接口地址,ftp账户及密码
全局模式下ip ftp username aaa
Ip ftp password 123
3、 路由器ping服务器,测试连通性
4、 Copy running-config startup-config(特权模式)
5、 备份配置文件到ftp服务器
#(特权模式)
R1#copy run ftp
Address or name of remote host []? 10.1.1.2
Destination filename [R1-confg]?
6、 在服务器中验证拷贝的文件

二、 恢复配置文件
1、 erase startup-config
2、 reload重启发现没有配置文件(准备跑路了)
3、 copy ftp running-config
4、 Router#copy ftp run
5、 Address or name of remote host []? 10.1.1.2
6、 Source filename []? zxh-config
7、 Destination filename [running-config]?
8、 Show running-config (不用跑路了,准备领工资)
9、 Copy running-config startup-config

猜你喜欢

转载自blog.csdn.net/weixin_44503559/article/details/86411642