cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
61766
Views
5
Helpful
6
Replies

How to tftp an IOS into switch via laptop

sirajmuneer
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

bretjaquish
Level 3
Level 3

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:

View solution in original post

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.

View solution in original post

6 Replies 6

bretjaquish
Level 3
Level 3

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:

Collin Clark
VIP Alumni
VIP Alumni

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)

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.

thanks for the info again Colin,

cant we telnet into the switch using vlan1's ip and do the copy tftp stuff?

You can telnet into the switch if that is already configured.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco