How to tftp an IOS into switch via laptop

Answered Question
May 1st, 2009

Hi there,

I am just wondering if someone can assist me on getting an IOS copied to a switch that has old IOS.

I have new image inside my laptop.

Thanks in advance for the assistance.

rgrds

siraj

I have this problem too.
0 votes
Correct Answer by Collin Clark about 7 years 8 months ago

One ethernet connection from your laptop to the switch. THe other connection is from the laptop serial (COM) port to the console of the switch. It's a special cable, usually flat and light blue or black in color.

Download a TFTP server and install it.

TFTPD32 is a good one.

Copy the image into the TFTP's root directory.

Put an IP on your Laptop's ethernet NIC.

Ex: 10.0.0.2 255.255.255.0

Turn on the TFTP server application.

Terminal into the switch and type the following commands:

en

conf t

interface vlan 1

ip address 10.0.0.1 255.255.255.0

no shut

interface fa0/1 (this may change depending on model of switch)

switchport mode access

switchport access vlan 1

spanning-tree portfast

exit

exit

Plug in your laptop to the port we just configured.

Ping 10.0.0.1 from your laptop. It should work.

Then erase the flash:

Switch#erase flash:

Copy image if the image ends in .bin

Switch#copy tftp://10.0.0.2/nameofimage.bin flash:

Copy image if the image ends in .tar

Switch#archive download-sw tftp://10.0.0.2/nameofimage.tar flash:

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Loading.
Correct Answer

Download a TFTP server and install it.

TFTPD32 is a good one.

Copy the image into the TFTP's root directory.

Put an IP on your Laptop's ethernet NIC.

Ex: 10.0.0.2 255.255.255.0

Turn on the TFTP server application.

Terminal into the switch and type the following commands:

en

conf t

interface vlan 1

ip address 10.0.0.1 255.255.255.0

no shut

interface fa0/1 (this may change depending on model of switch)

switchport mode access

switchport access vlan 1

spanning-tree portfast

exit

exit

Plug in your laptop to the port we just configured.

Ping 10.0.0.1 from your laptop. It should work.

Then erase the flash:

Switch#erase flash:

Copy image if the image ends in .bin

Switch#copy tftp://10.0.0.2/nameofimage.bin flash:

Copy image if the image ends in .tar

Switch#archive download-sw tftp://10.0.0.2/nameofimage.tar flash:

sirajmuneer Fri, 05/01/2009 - 11:03

thanks for the info guys,

i have another question, do i have to have 2 connections to the switch from a laptop?

1 for console ( do copy tftp commands)

1 for ethernet port (to tranfer image to switch)

Correct Answer
Collin Clark Fri, 05/01/2009 - 11:07

One ethernet connection from your laptop to the switch. THe other connection is from the laptop serial (COM) port to the console of the switch. It's a special cable, usually flat and light blue or black in color.

Actions

This Discussion