您的位置:首页 > 移动开发 > IOS开发

CCNA视频:CCNA实验2:备份和还原IOS

2014-09-26 09:23 405 查看




实验目标:
1:学会通过TFTP服务器备份IOS2:学会通过TFTP服务器还原IOS
实验步骤:
1:使用TFTP服务器备份交换机IOS2:使用TFTP服务器还原交换机IOS3:使用TFTP服务器备份路由器IOS4:使用TFTP服务器还原路由器IOS
实验总结:

1:建立交换机和TFTP服务器的通信
sw1(config)#hostnameSW1

SW1(config)#interfacevlan 1
SW1(config-if)#ipaddress 192.168.1.1 255.255.255.0
SW1(config-if)#noshutdown




测试交换机与TFTP服务器之间的通信:

SW1#ping192.168.1.2
Typeescape sequence to abort.
Sending5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.!!!!
Successrate is 80 percent (4/5), round-trip min/avg/max = 0/0/3 ms

2:备份交换机的IOS
SW1#showflash:
Directoryof flash:/
1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin
64016384bytes total (59601463 bytes free)

SW1#copyflash: tftp:
Sourcefilename []? c2960-lanbase-mz.122-25.FX.bin
Addressor name of remote host []? 192.168.1.2
Destinationfilename [c2960-lanbase-mz.122-25.FX.bin]? c2960-text.bin
Writingc2960-lanbase-mz.122-25.FX.bin....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK- 4414921 bytes]
4414921bytes copied in 3.098 secs (1425000 bytes/sec)




3:还原交换机的IOS
SW1#copytftp: flash:
Addressor name of remote host []? 192.168.1.2
Sourcefilename []? c2960-text.bin
Destinationfilename [c2960-text.bin]?
Accessingtftp://192.168.1.2/c2960-text.bin...
Loadingc2960-text.bin from 192.168.1.2:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK- 4414921 bytes]
4414921bytes copied in 0.076 secs (1578338 bytes/sec)
SW1#showflash:
Directoryof flash:/
1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin
2 -rw- 4414921 <no date> c2960-text.bin
64016384bytes total (55186542 bytes free)

SW1(config)#bootsystem flash:c2960-text.bin
SW1#reload

SW1#deleteflash:
Deletefilename []?c2960-text.bin
Deleteflash:/c2960-text.bin? [confirm]

SW1#showflash:
Directoryof flash:/

1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin

64016384bytes total (59601463 bytes free)

实验配置二:备份和还原路由器IOS
1:建立路由器和TFTP服务器的通信
R1(config)#interfacefa0/0
R1(config-if)#ipaddress 192.168.1.1 255.255.255.0
R1(config-if)#noshutdown

TFTP服务器地址配置 (略)

测试路由器与TFTP服务器之间的通信:
R1(config-if)#doping 192.168.1.2
Typeescape sequence to abort.
Sending5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.!!!!
Successrate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms

2:备份路由器的IOS
R1#showflash:
Systemflash directory:
File Length Name/status
3 50938004 c2800nm-advipservicesk9-mz.124-15.T1.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[51193823bytes used, 12822561 available, 64016384 total]
63488Kbytes of processor board System flash (Read/Write)

R1#copyflash: tftp:
Sourcefilename []? c2800nm-advipservicesk9-mz.124-15.T1.bin
Addressor name of remote host []? 192.168.1.2
Destinationfilename [c2800nm-advipservicesk9-mz.124-15.T1.bin]? c2800-text.bin
Writingc2800nm-advipservicesk9-mz.124-15.T1.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(略)
[OK- 50938004 bytes]
50938004bytes copied in 0.849 secs (59997000 bytes/sec)

3:还原路由器的IOS:
R1#copytftp: flash:
Addressor name of remote host []? 192.168.1.2
Sourcefilename []? c2800-text.bin
Destinationfilename [c2800-text.bin]?
Accessingtftp://192.168.1.2/c2800-text.bin...
Loadingc2800-text.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(略)
[OK- 50938004 bytes]
50938004bytes copied in 0.876 secs (4216168 bytes/sec)
%Error copyingtftp://192.168.1.2/c2800-text.bin (Not enough space on device)

R1#deleteflash:
Deletefilename []?c2800nm-advipservicesk9-mz.124-15.T1.bin
Deleteflash:/c2800nm-advipservicesk9-mz.124-15.T1.bin? [confirm]

R1#copytftp: flash:
Addressor name of remote host []? 192.168.1.2
Sourcefilename []? c2800-text.bin
Destinationfilename [c2800-text.bin]?
Accessingtftp://192.168.1.2/c2800-text.bin...
Loadingc2800-text.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (略)
[OK- 50938004 bytes]
50938004bytes copied in 0.865 secs (4269784 bytes/sec)

R1#showflash:
Systemflash directory:
File Length Name/status
4 50938004 c2800-text.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[51193823bytes used, 12822561 available, 64016384 total]
63488Kbytes of processor board System flash (Read/Write)

配套视频演示地址: http://edu.51cto.com/course/course_id-1992.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息