Actually recovered IOS 2950 vswitch

Source: Internet
Author: User

I tried to use two switches for an experiment. However, after entering one of the switches through the console port, I found that the IOS file of the switch was lost.

After entering the switch normally, it should first enter the user mode, and the prompt should be ">", but now the prompt is ":",

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "197" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I5KX-0.jpg" alt = "0" title = "0" style = "border: 0px none;"/>

This is equivalent to a computer without an operating system. All the hardware has become a pile of scrap iron and has no practical use. So what we need to do now is to restore the IOS file of the switch.

But I don't have an IOS file for a ready-made switch on hand. What should I do?

There is a solution. I now have two switches, and the models of both switches are the same and both are 2950). Why don't I copy the IOS of the other switch first?

 

OK, start working

The first step is to extract the IOS

First, connect the PC serial port with the console port of the IOS file switch, and use the network cable to connect the FA0/1 port of the switch to the PC Nic

Then, use the Super Terminal to enter the vswitch and create an IP address 192.168.12.1 for vlan 1.

(Port FA0/1 is under vlan 1 by default)

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "147" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51203-1.jpg" alt = "1" title = "1" style = "border: 0px none;"/>

Then, set the IP address of the PC Nic to 192.168.12.2 and enable the TFTP service.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "447" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I55N5-2.jpg" alt = "2.1" title = "2.1" style = "border: 0px none;"/>

PING the PC with a switch to check whether the communication is normal. As shown in, the switch and PC can communicate normally.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "232" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I5N96-3.jpg" alt = "2" title = "2" style = "border: 0px none;"/>

 

The next step is to copy the IOS file of the switch to the PC through TFPT.

For example, enter COPY flash :? Enter

View the ios file name. In the figure, the selected part is the IOS file name.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "192" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51D2-4.jpg" alt = "3" title = "3" style = "border: 0px none;"/>

So the complete COPY command is: copy flash: C2950-i6q412-MZ.121-9.EA1.bin tftp: Press ENTER

Enter the IP address. Enter the IP address of the PC: 192.168.12.2 and press Enter.

Enter the copied file name at the prompt and set it to the default value. Press enter, as shown in figure

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "280" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I5M47-5.jpg" alt = "4" title = "4" style = "border: 0px none;"/>

 

Now the IOS file of the switch is copied to the PC.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "178" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I52608-6.jpg" alt = "6" title = "6" style = "border: 0px none;"/>

At the same time, the tftp on the PC also reflects

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "442" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I54P3-7.jpg" alt = "5" title = "5" style = "border: 0px none;"/>

Now, the copied IOS file can be found on the PC, as shown in figure

 

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "367" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I54010-8.jpg" alt = "7" title = "7" style = "border: 0px none;"/>

The first part has been completed.

The following is how to copy the IOS file on the PC to the switch that lost the IOS file.

Step 2: officially resume IOS

First, switch the console line to the console port of another switch.

Then turn off the power of the switch, press and hold the mode key on the switch panel, and then turn on the power of the switch, waiting for the switch to flash _init, load_helper, when both the command mode is enabled for boot, you can release the mode key and start to enter the command,

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "250" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I55013-9.jpg" alt = "8" title = "8" style = "border: 0px none;"/>

Enter flash_init and press Enter.

The following prompt appears:

Enter load_helper and press Enter.

No prompt after input

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "199" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I52962-10.jpg" alt = "9" title = "9" style = "border: 0px none;"/>

 

Next we can use xmodem to restore IOS. Enter the command as shown in Figure

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "122" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51459-11.jpg" alt = "10" title = "10" style = "border: 0px none;"/>

If a large "C" letter appears after the input, you can start to transfer the file.

Click transfer on the Super Terminal to send a file.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "189" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I52C7-12.jpg" alt = "11" title = "11" style = "border: 0px none;"/>

In the pop-up dialog box, select the IOS path on the PC, select Xmodem for the protocol, and click send to start transmission.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "298" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51539-13.jpg" alt = "12" title = "12" style = "border: 0px none;"/>

 

Next, let's start sending messages. Let's take a look at the rest of the time. I just went there in a few minutes. Wait for 56 minutes. Blow the air conditioner and have a cup of tea.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "347" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I5B34-14.jpg" alt = "13" title = "13" style = "border: 0px none;"/>

 

After waiting for about an hour, I can see that it is almost finished.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "338" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51295-15.jpg" alt = "14" title = "14" style = "border: 0px none;"/>

 

Now, the data has finally been uploaded. After reading the command prompt, the system prompts that the copy is successful.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "191" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I54642-16.jpg" alt = "15" title = "15" style = "border: 0px none;"/>

Then enter the boot command to reload the IOS file.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "151" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51496-17.jpg" alt = "16" title = "16" style = "border: 0px none;"/>

After a bunch of commands appear, check that the switch can be used normally.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "360" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I52620-18.jpg" alt = "17" title = "17" style = "border: 0px none;"/>

Run the show flash command to view the IOS file.

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'height = "160" border = "0" src = "http://www.bkjia.com/uploads/allimg/131227/040I51K0-19.jpg" alt = "18" title = "18" style = "border: 0px none;"/>

 

Let's take a look at the remaining configurations. It's time to restore the IOS file ,,,

This article from the "UFO" blog, please be sure to keep this source http://alien.blog.51cto.com/951694/344469

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.