路由上的TFTP服務器設置
筆者有一臺2501路由器的IOS是壞的(cisocB),另外一臺2501路由器IOS是好的 (ciscoA),好的IOS在我的PC上面己經(jīng)沒有了,但是通過在PC上面做一個TFTP服務器,把好的傳到PC上面,再傳到壞的上面就太浪費時間了。后來想到一個辦法,直接把好的路由器配置成TFTP服務器。
我的連接方式是兩臺路由器是通過E0口連接的,我先是在好的路由器上面(cisocA )把E0 口配置好IP是192.168.10.90(IP地址隨便配置,只要兩個E0口都能互相PING通就行)再到配置模式下面輸入 tftp-server c2500-js-l.122-7a.bin(這是你好的IOS里面的IOS文件名,用show version 來查看你的IOS文件名
這臺A己經(jīng)配置好了以后,再到B這臺來配置,首先讓這臺啟動到BOOT模式,在全局配置模式下面輸入config-register 0x2101 再重啟路由器,啟動到BOOT模式以后,同樣配置你的E口,到了BOOT模式以后,輸入copy tftp flash ,提示你輸入TFTP服務器,再輸入文件名,就可以了,具體操作步驟如下:
- cisocA#conf t
- cisocA(config)#tftp-server c2500-js-l.122-7a.bin
- cisocA(config)#int e0
- cisocA(config-if)#ip add 192.168.10.90 255.255.255.0
- cisocA(config-if)#no shut
- ciscoB(config)#conf t
- ciscoB(config)#config-register 0x2101
- ciscoB(config)#end
- ciscoB#reload
- System configuration has been modified. Save? [yes/no]: y
- ciscoB(boot)>enable
- ciscoB(boot)#conf terminal
- ciscoB(boot)(config)#int e0
- ciscoB(boot)(config-if)#ip add 192.168.10.80 255.255.255.0
- ciscoB(boot)(config-if)#no shut
- ciscoB(boot)(config-if)#end
- ciscoB(boot)#erase flash
- System flash directory:
- File Length Name/status
- 1 15533612 c2500-js-l.122-7a.bin
- [15533676 bytes used, 1243540 available, 16777216 total]
- Erase flash device? [confirm]
- Are you sure? [yes/no]: y
- Address or name of remote host [192.168.10.80]? 192.168.10.90
- Source file name? c2500-js-l.122-7a.bin
- Destination file name [c2500-js-l.122-7a.bin]?
- Erase flash device before writing? [confirm](回車)
- Copy 'c2500-js-l.122-7a.bin' from server
- as 'c2500-js-l.122-7a.bin' into Flash WITH erase? [yes/no]y
- 輸入Y以后,程序就自動COPY IOS,等成功以后,你再如下配置
- ciscoB(config)#config-register 0x2102
- ciscoB(config)#reload