交换机备份与还原IOS
交换机配置:
备份:
CCNA#show flash
!查看已有的flash文件
Directory of flash:/
1 -rw- 3058048 <no date> c2950-i6q4l2-mz.121-22.EA4.bin
2 -rw- 1008 <no date> config.text
64016384 bytes total (60957328 bytes free)
CCNA#copy flash: tftp:
Source filename []? c2950-i6q4l2-mz.121-22.EA4.bin
Address or name of remote host []? 192.168.1.2
Destination filename [c2950-i6q4l2-mz.121-22.EA4.bin]? CCNA.bin
!依次输入源bin文件、tffp服务器Ip、新bin文件名
Writing c2950-i6q4l2-mz.121-22.EA4.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3058048 bytes]
3058048 bytes copied in 0.1 secs (30580480 bytes/sec)
查看TFTP服务器文件
还原
CCNA(config)#do show flash
Directory of flash:/
1 -rw- 3058048 <no date> c2950-i6q4l2-mz.121-22.EA4.bin
2 -rw- 1008 <no date> config.text
64016384 bytes total (60957328 bytes free)
!查看当前flash
CCNA(config)#do copy tftp: flash:
Address or name of remote host []? 192.168.1.2
Source filename []? CCNA.bin
Destination filename [CCNA.bin]?
Accessing tftp://192.168.1.2/CCNA.bin....
Loading CCNA.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3058048 bytes]
3058048 bytes copied in 3.102 secs (985831 bytes/sec)
!从TFTP服务器copy
CCNA(config)#do show flash
Directory of flash:/
3 -rw- 3058048 <no date> CCNA.bin
1 -rw- 3058048 <no date> c2950-i6q4l2-mz.121-22.EA4.bin
2 -rw- 1008 <no date> config.text
64016384 bytes total (57899280 bytes free)
!再次查看flash
CCNA(config)#boot system CCNA.bin
!设置启动文件为CCNA.bin
CCNA#delete c2950-i6q4l2-mz.121-22.EA4.bin
!删除原启动文件