怎样彻底删除cisco路由器flash中的ios文件

来源:百度知道 编辑:UC知道 时间:2024/06/20 10:50:23
思科路由器2800系列,由于ios文件是个老版本,我就导入了一个新版本,请问怎样用命令彻底删除老的ios文件?(用delete的话,删得不干净,还可以恢复)

Router1#erase slot1:
Erasing the slot1 filesystem will remove all files! Continue? [confirm] <enter>
Erasing device... eeeeeeeeeeee ...erased
Erase of slot1: complete
Router1#
或者删除单个文件
Router1#delete slot1:c3620-ik9s-mz.122-13.bin
Delete filename [c3620-ik9s-mz.122-13.bin]? <enter>
Delete slot1:c3620-ik9s-mz.122-13.bin? [confirm] <enter>
Router1#
注释 并不是所有的路由器都支持erase 命令,不行的话可以尝试format 命令,有些路由器在使用
delete 命令以后还可以使用undelete 来恢复,同时也需要使用squeeze 来彻底删除文件

先用delete
再用这个命令 squeeze 这条命令表示把你删除的东西彻底清空

或者就干脆 format 然后再灌

这两种方法都可以

del flash:文件名
不可能恢复吧?