交换机备份还原
三层交换机配置文件备份、还原
二层交换机系统的备份、更新升级、恢复
一、三层交换机配置文件备份、还原
1、查询是否存在备份文件
show startup-config //sh start
2、新建一台备份服务器,使其正常联通
(1)手动配置ip地址
(2)归属vlan152
conf t
int f0/5
swi a v 152
(3)三层交换机ping 备份服务器
ping 192.168.152.5
!!!!!
:表示ping成功
.....
:表示ping失败
3、保存三层交换机配置
write //wr
write
:等同于copy running-config start-config
4、把配置文件传输到备份服务器上
copy startup-config tftp //复制配置文件到TFTP
192.168.152.5 //保存的位置
ms0-startup //保存的文件名
5、删除本地配置文件
erase startup-config
回车确认
6、重启,测试联通情况
reload
ping 192.168.152.5 //失败
7、配置三层交换机ip
conf t
int vlan 152
ip add 192.168.152.254 255.255.255.0 //地址任意,不冲突就行了
exit
重新 ping 192.168.152.5 成功
8、从备份服务器上还原配置文件到本地
//复制TFTP的文件到running-config
copy tftp running-config //copy tftp run
192.168.152.5 //从哪里下载
ms0-startup //下载那个文件
回车确认
9、跑一下
sh run
二、二层交换机系统的备份、更新升级、恢复
1、给二层交换机配置ip
conf t
int vlan 152
ip add 192.168.152.194 255.255.255.0 //任意数
exit
2、备份本地系统
en
sh fl
复制当前系统版本名字:c2950-i6q4l2-mz.121-22.EA4.bin
copy flash tftp
c2950-i6q4l2-mz.121-22.EA4.bin
192.168.152.5
s4-ios
3、删除本地系统
del fl
c2950-i6q4l2-mz.121-22.EA4.bin
4、从服务器更新升级高版本系统
copy tftp fl
192.168.152.5
c2950-i6q4l2-mz.121-22.EA8.bin
wr //切记要保存
reload
5、删除高版本系统
del fl
c2950-i6q4l2-mz.121-22.EA8.bin
6、从服务器下载备份的系统
copy tftp fl
192.168.152.5
s4-ios
reload
7、查看系统版本
sh ver //show version
//或者 sh fl
三、拓展
1、配置文件储存位置
running-config
:RAM
start-config
:NVRAM
write
等同于 copy running-config start-config
2、备份还原
copy start-config tftp
:from switch to pc
copy tftp running-config
:from pc to switch
3、ios flash 系统更新还原
copy flash tftp
:from flash to pc
copy tftp flash
:from pc to flash
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/83745.html