分类:
2012-05-15 20:02:55
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shut %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upend Router# |
Router>en Router#dir 先查看一下我们当前flash里面的IOS文件,这里我们可以看出来我们当前的IOS文件是 Directory of flash:/ 3 -rw- 50938004 2 -rw- 28282 1 -rw- 227537 64016384 bytes total (12822561 bytes free) 这里我们可以看出当前总共用了多少空间,总共有 Router#copy tftp: flash: 这句就是将TFTP里面的IOS复制到FLASH里面。 Address or name of remote host []? 192.168.1.2 TFTP Server端的IP地址 Source filename []? c2800nm-ipbasek9-mz.124-8.bin TFTP Server上面的IOS文件名 Destination filename [c2800nm-ipbasek9-mz.124-8.bin]? 传到路由器FLASH里面的IOS文件名 Accessing t Loading c2800nm-ipbasek9-mz.124-8.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 15522644 bytes] 这里!表示正在传送。 15522644 bytes copied in 8.516 secs (309739 bytes/sec) 这里是我们IOS总共有多大,从这里我们可以看出来,我们的IOS大于了我们的FLASH空间,所以会提示空间不足。 %Error copying t (Not enough space on device) 这里提示我们出错了,原因是空间不足,所以我们在传IOS的时候我们还是要先看看FLASH时面当前剩余的空间有多大。 Router#dir Directory of flash:/ 3 -rw- 50938004 2 -rw- 28282 1 -rw- 227537 64016384 bytes total (12822561 bytes free) Router# 当我们上传成功以后呢?这里面就应该显示我们刚才所上传的那个IOS文件名了。 那么我们再来看看,如何将路由器里面的IOS下载到我们的TFTP Server上面去呢? Router#copy flash: tftp: 这条命令就是将flash里面的IOS复制到tftp上面去 Source filename []? c2800nm-advipservicesk9-mz.124-15.T1.bin flash上面的IOS文件名 Address or name of remote host []? 192.168.1.2 TFTP Server的IP地址 Destination filename [c2800nm-advipservicesk9-mz.124-15.T1.bin]? 保存在TFTP Server端的文件名 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 50938004 bytes] 50938004 bytes copied in 28.046 secs (1816000 bytes/sec) Router# 以上就是我们将ios升级到路由器上,将路由器上的IOS备份到PC上。要做上在的那个实验可以用下面的方法来实现。 Router#delete flash: 删除flash里面的文件 Delete filename []?c2800nm-advipservicesk9-mz.124-15.T1.bin 删除IOS文件 Delete flash:/c2800nm-advipservicesk9-mz.124-15.T1.bin? [confirm] 提 示我们是否真的要删除,如果是按回车 Router#dir 我们现在查看一下flash里面到低还有没有我们的IOS文件了呢?没有了吧! Directory of flash:/ 2 -rw- 28282 1 -rw- 227537 64016384 bytes total (63760565 bytes free) Router#copy tftp: flash: 将TFTP服务器上面的IOS升级到路由器上面 Address or name of remote host []? 192.168.1.2 TFTP服务器的IP地址 Source filename []? c2800nm-ipbasek9-mz.124-8.bin TFTP上面的IOS文件名 Destination filename [c2800nm-ipbasek9-mz.124-8.bin]? 传到路由器上面的IOS文件名 Accessing t Loading c2800nm-ipbasek9-mz.124-8.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 15522644 bytes] 15522644 bytes copied in 8.906 secs (296175 bytes/sec) Router#dir 上传成功以后我们再来查看一下看看我们的IOS上传成功没有。 Directory of flash:/ 4 -rw- 15522644 2 -rw- 28282 1 -rw- 227537 64016384 bytes total (48237921 bytes free) Router# 看看我们的C2800nm-ipbasek9-mz.124-8.bin是不是上传成功了呢? |