cisco换机ISO备份和还原

wKiom1k-iXzhHLxxAAA7jpiMFW8089.png-wh_50

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sw1 #copy  flassw1#copy  flash: tftp:
Source filename []?
sw1 #show  flash                   #1
Directory of flash:/
 
1  -rw-     3058048          <no  date >  c2950-i6q4l2-mz.121-22.EA4.bin
 
64016384 bytes total (60958336 bytes  free )
sw1 #co
sw1 #copy
sw1 #copy  fla
sw1 #copy  flash: t
sw1 #copy  flash: tftp:         #2 
Source filename []? c2950-i6q4l2-mz.121-22.EA4.bin   #3
Address or name of remote host []? 192.168.56.10
Destination filename [c2950-i6q4l2-mz.121-22.EA4.bin]? c2950- test .bin   #4
 
Writing c2950-i6q4l2-mz.121-22.EA4.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3058048 bytes]
 
3058048 bytes copied  in  0.052 secs (58808615 bytes /sec )
sw1 #

wKiom1k-icOA8v1KAAC4DYoMzyg375.png-wh_50

可以看出cisco的交换机的镜像备份成功

怎么还原呢??

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sw1 #copy   tftp:sw1#copy   tftp:
sw1 #copy   tftp: ?
flash:          Copy to flash:  file  system
running-config  Copy configuration from system
startup-config  Copy startup configuration from system
sw1 #copy   tftp: fl
sw1 #copy   tftp: flash:
Address or name of remote host []? 192.168.56.10
Source filename []? c2950- test .bin
Destination filename [c2950- test .bin]?
 
Accessing tftp: //192 .168.56.10 /c2950-test .bin...
Loading c2950- test .bin from 192.168.56.10: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3058048 bytes]
 
3058048 bytes copied  in  0.054 secs (56630518 bytes /sec )
sw1 #show flash
Directory of flash:/
 
1  -rw-     3058048          <no  date >  c2950-i6q4l2-mz.121-22.EA4.bin
2  -rw-     3058048          <no  date >  c2950- test .bin
 
64016384 bytes total (57900288 bytes  free )
sw1 #

怎么从tftp服务器下载的
ISO启动呢

  1. 删除原有的文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sw1 #show  flashDirectory of flash:/
 
1  -rw-     3058048          <no  date >  c2950-i6q4l2-mz.121-22.EA4.bin
2  -rw-     3058048          <no  date >  c2950- test .bin
 
64016384 bytes total (57900288 bytes  free )
sw1 #dele
sw1 #delete  c2950-i6q4l2-mz.121-22.EA4.bin
Delete filename [c2950-i6q4l2-mz.121-22.EA4.bin]?
Delete flash: /c2950-i6q4l2-mz .121-22.EA4.bin? [confirm]
 
sw1 #show  flash
Directory of flash:/
 
2  -rw-     3058048          <no  date >  c2950- test .bin
 
64016384 bytes total (60958336 bytes  free )
sw1 #

2.特权模式下

1
sw1(config) #boot system  c2950-test.bin

3.都不要忘记保存

测试:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sw1 #reloadProceed with reload? [confirm]
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by miwang
Cisco WS-C2950-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
2950-24 starting...
Base ethernet MAC Address: 0090.2187.E434
Xmodem  file  system is available.
Initializing Flash...
flashfs[0]: 2 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 3059209
flashfs[0]: Bytes available: 60957175
flashfs[0]: flashfs  fsck  took 1 seconds.
... done  Initializing Flash.
 
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
 
 
Loading  "flash:/c2950-test.bin" ...



反思:交换机属于二层设备,需要配置管理地址

 路由器属于三层设备 有端口启动就可以  

路由器的备份和恢复和交换机的命令一样










本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1934693,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值