实验目的:
1、掌握IOS查看、备份、升级、删除。
实验拓扑:
实验步骤:
1、查看R1上IOS镜像,如下:
R1#show flash: System flash directory: File Length Name/status 3 5571584 c2600-i-mz.122-28.bin
2、备份IOS。
在PC上架设TFTP服务器,并保证PC与R1直连连通,将R1上IOS镜像备份到TFTP上,如下:
R1#copy flash: tftp: Source filename []? c2600-i-mz.122-28.bin Address or name of remote host []? 192.168.1.10 Destination filename [c2600-i-mz.122-28.bin]? Writing c2600-i-mz.122-28.bin .!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 5571584 bytes] 5571584 bytes copied in 0.086 secs (64785000 bytes/sec)
当设备IOS损坏或者故障时,通过备份的IOS可以进行恢复。
3、升级IOS。
①若原有IOS不能支持网络需求,则需要对IOS进行升级,一般会将新的IOS放置在TFTP Server上,然后通过TFTP传递到设备上,如下:
R1#copy tftp: flash: Address or name of remote host []? 192.168.1.10 Source filename []? c2600-advipservicesk9-mz.124-15.T1.bin Destination filename [c2600-advipservicesk9-mz.124-15.T1.bin]? Erase flash: before copying? [confirm]n Verifying checksum... OK (0xD589) Accessing tftp://192.168.1.10/c2600-advipservicesk9-mz.124-15.T1.bin... Loading…c2600-advipservicesk9-mz.124-15.T1.bin…from 192.168.1.10: !!!!!!!!!!!!!!!!!!!!!!! [OK - 33591768 bytes]
若想保留原有IOS,则不要覆盖;若直接覆盖,只原有IOS被删除。
②查看FLASH,如下:
R1#show flash: System flash directory: File Length Name/status 4 33591768 c2600-advipservicesk9-mz.124-15.T1.bin 3 5571584 c2600-i-mz.122-28.bin
③当有多个IOS时,则需要通过命令指定优先启动的IOS,如下:
R1(config)#boot system flash://c2600-advipservicesk9-mz.124-15.T1.bin
4、删除IOS镜像。
若FLASH大小不够或者无需备份的IOS,则可以删除IOS,如下:
R1#delete flash:c2600-i-mz.122-28.bin Delete filename [c2600-i-mz.122-28.bin]? Delete flash:c2600-i-mz.122-28.bin? [confirm]
或者直接格式化flash,如下:
R1#erase flash: Erasing the flash filesystem will remove all files! Continue? [confirm] Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased Erase of flash: complete
当然,格式化命令比较危险,慎用!
此实验完成。
- 还没有人评论,欢迎说说您的想法!