思科交换机基础-3TFTP远程备份

TFTP远程备份交换机文件

在这里插入图片描述
添加新设备 server-pt 配置ip地址
在这里插入图片描述
Switch(config)#hostname 666 //修改交换机名字为666
666(config)#end
666#
%SYS-5-CONFIG_I: Configured from console by console

666#write //保存修改配置
Building configuration…
[OK]
666#

在这里插入图片描述
666#copy ? //copy 复制
flash: Copy from flash: file system //镜像
ftp: Copy from ftp: file system //ftp服务器文件
running-config Copy from current system configuration //交换机运行文件
startup-config Copy from startup configuration //交换机保存配置文件
tftp: Copy from tftp: file system //tftp服务器文件

修改交换机配置没有保存之前 = running-config
修改完交换机配置保存之后 = startup-config
修改完之后保存 = copy running-config startup-config

666#copy runn
666#copy running-config ?
flash: Copy to flash file
ftp: Copy to current system configuration
startup-config Copy to startup configuration
tftp: Copy to current system configuration
666#copy running-config tftp //复制running-config 文件 到 tftp服务器
Address or name of remote host []? 192.168.0.2 //服务器地址
Destination filename [666-confg]? //文件复制到服务器后的名字 ,按enter默认为 666-confg

Writing running-config…!!
[OK - 1113 bytes] //保存成功

1113 bytes copied in 3.011 secs (0 bytes/sec)
666#

检查服务器的config 选项下有没有刚上传的666-config ,如果有说明保存成功

在这里插入图片描述
成功备份

666(config)#hostname 555 //修改交换机hostname 为555
555(config)#end
555#
%SYS-5-CONFIG_I: Configured from console by console

555#write
Building configuration…
[OK]
555#

将tftp文件下载到交换机
555#copy tftp startup-config //copy tftp服务器文件 到 startup-config 保存配置文件
Address or name of remote host []? 192.168.0.2 //服务器地址
Source filename []? 666-confg //源文件名称
Destination filename [startup-config]? //按enter 默认保存到startup-config保存配置文件里。

Accessing tftp://192.168.0.2/666-confg…
Loading 666-confg from 192.168.0.2: !
[OK - 1113 bytes]

1113 bytes copied in 0 secs
555#reload //reload = 重启交换机
666> //下载成功

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

刘浩冬

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值