The two Cisco routers upgrade each other to IOS

Source: Internet
Author: User

I have a 2501 router whose IOS is bad (cisocB), another 2501 router whose IOS is good (ciscoA), and a good IOS has no more on my PC, however, it is a waste of time to create a TFTP file on the PC and upload the file to the PC ,. Then I thought of a way to directly configure the vro as a TFTP server.

My connection method is that the two routers are connected through the E0 port. First, on the good router (cisocA), configure the E0 port as 192.168.10.90 (the IP address is randomly configured, as long as the two E0 ports can PING each other) and then enter the tftp-server c2500-js-l.122-7a.bin under the configuration mode (this is the IOS file name in your IOS, use show version to view your IOS file name

After this A has been configured, go to B to configure it. First, let this start to BOOT mode. In Global configuration mode, enter config-register 0x2101 and then restart the router, after BOOT to BOOT mode, configure your E port. After BOOT Mode, enter copy tftp flash, and prompt you to enter the TFTP server, and then enter the file name,

The procedure is as follows:

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] (Press ENTER)

Copy 'c2500-js-l.122-7a.bin 'from server
As 'c2500-js-l.122-7a.bin 'into Flash WITH erase? [Yes/no] y

After entering Y, the program will automatically copy ios. After successful completion, you will configure the following:

CiscoB (config) # config-register 0x2102

CiscoB (config) # reload

The procedure is complete.

Article entry: csh responsible editor: csh

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.