![b4cac5380e150479d3a800f6f8756ae7.png](https://img-blog.csdnimg.cn/img_convert/b4cac5380e150479d3a800f6f8756ae7.png)
实际工作中难免都会涉及到设备升级的情况,比如有的设备系统故障,不能正常的进入系统的情况,今天带来的是关于cisco1841路由器如何通过FTP和TFTP的方式对系统进行升级(连接示意图如上所示)分为两种情况一种是设备可以进入系统的情况下对系统进行升级,一种是无法直接进入系统进行升级:
第一种:设备可以进入系统,但需要对系统进行升级,这个时候我们可以使用FTP的方式对系统进行升级,使用FTP或者是TFTP的方式进行系统升级需要具备以下条件:
1.通过网线连接电脑和设备的最小的一个接口
2.通过console线连接电脑和设备
3.电脑上需有FTP的软件(这里提供filezilla以供参考)
以电脑作为FTP的server端,设备作为FTP的client端,设备上的接口ip地址需和电脑在同一个网段
![6d5b63baa6ccffc03998ae8faa05558f.png](https://img-blog.csdnimg.cn/img_convert/6d5b63baa6ccffc03998ae8faa05558f.png)
进入接口,配置ip地址
![e1b08f3c36cc0513c60616e4270d29ce.png](https://img-blog.csdnimg.cn/img_convert/e1b08f3c36cc0513c60616e4270d29ce.png)
本机有线网卡上配置IP地址
接下来,在路由器上和PC上分别测试,看是否可以互通,用电脑去ping设备:
![76673e852b0eaa5a93418d589c1e98ef.png](https://img-blog.csdnimg.cn/img_convert/76673e852b0eaa5a93418d589c1e98ef.png)
电脑ping设备
![18125aa8a1d7ec0cd8114fb52d692d3a.png](https://img-blog.csdnimg.cn/img_convert/18125aa8a1d7ec0cd8114fb52d692d3a.png)
设备ping电脑
为什么要互相ping,有时候可能由于windows的防火墙问题,导致设备不能ping通电脑,但是电脑可以ping通设备,这个时候需要把电脑的防火墙关掉就可以了
现在可以互通了,接下来打开FTP软件
![16e9bca36b64da93fc4237ab9e48fed1.png](https://img-blog.csdnimg.cn/img_convert/16e9bca36b64da93fc4237ab9e48fed1.png)
创建一个组cisco
![88c6d832eafed841ff196c50698898d4.png](https://img-blog.csdnimg.cn/img_convert/88c6d832eafed841ff196c50698898d4.png)
共享一个文件夹为E:test
![771e1f834ca779b2ec0bdfd718e7fd57.png](https://img-blog.csdnimg.cn/img_convert/771e1f834ca779b2ec0bdfd718e7fd57.png)
勾上可读可写
![0177247677b3618440067bae0532bfa3.png](https://img-blog.csdnimg.cn/img_convert/0177247677b3618440067bae0532bfa3.png)
创建一个匿名用户,加入到cisco这个group
接下来,进入设备操作:
![2140978d3c815190ab4d78b96498a38b.png](https://img-blog.csdnimg.cn/img_convert/2140978d3c815190ab4d78b96498a38b.png)
进入设备查看系统所在目录
![5d13b63ca8a8a5520ada0cdfb6f4cd6c.png](https://img-blog.csdnimg.cn/img_convert/5d13b63ca8a8a5520ada0cdfb6f4cd6c.png)
传输完成,查看电脑目录是否有系统
![1b7439622ddc73b110c930cfb879b290.png](https://img-blog.csdnimg.cn/img_convert/1b7439622ddc73b110c930cfb879b290.png)
备份完成
接下来用FTP将预先放入目录的系统(k9.BIN)导入到设备中:
![1e2b4fa86625d2698ef4e98c639368d6.png](https://img-blog.csdnimg.cn/img_convert/1e2b4fa86625d2698ef4e98c639368d6.png)
删除原有系统
![2187cc0d68bdb47def34357a43462ec5.png](https://img-blog.csdnimg.cn/img_convert/2187cc0d68bdb47def34357a43462ec5.png)
导入新系统
![f97c044202253e2748eb9107b40c343f.png](https://img-blog.csdnimg.cn/img_convert/f97c044202253e2748eb9107b40c343f.png)
导入完成
接下来查看并指定启动系统:
![9b530b20e850b708cd9377318672ba97.png](https://img-blog.csdnimg.cn/img_convert/9b530b20e850b708cd9377318672ba97.png)
指定启动系统为flash:k9.BIN
保存重启:
![e906e6dd4360c4ce38ebe2a842eee3fa.png](https://img-blog.csdnimg.cn/img_convert/e906e6dd4360c4ce38ebe2a842eee3fa.png)
保存重启
![6d89ff44d9a6b8b4b23dc37923e229b3.png](https://img-blog.csdnimg.cn/img_convert/6d89ff44d9a6b8b4b23dc37923e229b3.png)
可以正常进入系统
设备可以正常进入系统,升级完成,下期带来无法进入系统使用TFTP的方式导入系统,谢谢!