SW1配置
Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname sw1 sw1(config)#interface vlan 1 sw1(config-if)#ip add 192.168.1.1 255.255.255.0 sw1(config-if)#no shutdown sw1(config-if)#end sw1# %SYS-5-CONFIG_I: Configured from console by console sw1#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/15/63 ms 查看IOS sw1#show flash: Directory of flash:/ 1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin 64016384 bytes total (59601463 bytes free) 拷贝 源 到目标 sw1#copy flash: tftp: Source filename []? c2960-lanbase-mz.122-25.FX.bin Address or name of remote host []? 192.168.1.2 Destination filename [c2960-lanbase-mz.122-25.FX.bin]? c296-test.bin Writing c2960-lanbase-mz.122-25.FX.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 4414921 bytes]
还原
sw1#copy tftp: flash: Address or name of remote host []? 192.168.1.2 Source filename []? c296-test.bin Destination filename [c296-test.bin]? Accessing tftp://192.168.1.2/c296-test.bin... Loading c296-test.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 4414921 bytes] 4414921 bytes copied in 0.119 secs (1008014 bytes/sec) sw1#show flash: Directory of flash:/ 3 -rw- 4414921 <no date> c296-test.bin 1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin 64016384 bytes total (55186542 bytes free) sw1#delete flash: Delete filename []?c2960-lanbase-mz.122-25.FX.bin Delete flash:/c2960-lanbase-mz.122-25.FX.bin? [confirm]
路由器配置
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)#no ip domain-lo R1(config)#line console 0 R1(config-line)#logging synchronous R1(config-line)#exec-timeout % Incomplete command. R1(config-line)#end R1# %SYS-5-CONFIG_I: Configured from console by console R1#conf t Enter configuration commands, one per line. End with CNTL/Z. t R1(config)#interface f0/0 R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#end R1# %SYS-5-CONFIG_I: Configured from console by console R1#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/12/46 ms R1#show flash: System flash directory: File Length Name/status 3 50938004 c2800nm-advipservicesk9-mz.124-15.T1.bin 2 28282 sigdef-category.xml 1 227537 sigdef-default.xml [51193823 bytes used, 12822561 available, 64016384 total] 63488K bytes of processor board System flash (Read/Write) R1#copy flash: tftp: Source filename []? c2800nm-advipservicesk9-mz.124-15.T1.bin Address or name of remote host []? 192.168.1.2 Destination filename [c2800nm-advipservicesk9-mz.124-15.T1.bin]? c2800-test.bin Writing c2800nm-advipservicesk9-mz.124-15.T1.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 50938004 bytes] 50938004 bytes copied in 1.694 secs (2180261 bytes/sec)
还原时候注意报错空间不足
50938004 bytes copied in 1.594 secs (2317041 bytes/sec) %Error copying tftp://192.168.1.2/c2800-test.bin (Not enough space on device)