Copy flash TFTP Error

Answered Question
Feb 21st, 2012

I have a 3550 switch that I am trying to upgrade the IOS on.

I am trying to copy to a TFTP server.

I am receiving a socket error.

I saw that this can be fixed with

Switch#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#no service config

Switch(config)#exit

Switch#

00:13:47: %SYS-5-CONFIG_I: Configured from console by console

Switch#reload

I have done this 3 times to no avail.

My TFTPd32 server on my pc is working fine.

Here is the error

Switch#sh flas

Directory of flash:/

     2  -rwx         556   Mar 1 1993 00:33:53 +00:00  vlan.dat

    4  -rwx        3775   Mar 1 1993 00:37:54 +00:00  config.text

    5  -rwx          24   Mar 1 1993 00:37:54 +00:00  private-config.text

    6  -rwx     5687963  Mar 16 2007 01:05:23 +00:00  c3550-ipbasek9-mz.122-25.SEB4.bin

    8  drwx         192   Mar 1 1993 00:04:40 +00:00  c3550-i9q3l2-mz.121-22.EA1a

15998976 bytes total (3300864 bytes free)

Switch#copy flash tftp

Source filename []? c3550-ipbasek9-mz.122-25.SEB4.bin

Address or name of remote host []? 192.168.1.132

Destination filename [c3550-ipbasek9-mz.122-25.SEB4.bin]?

%Error opening tftp://192.168.1.132/c3550-ipbasek9-mz.122-25.SEB4.bin (Socket error)

HELP!! THANKS IN ADVANCE

I have this problem too.
0 votes
Correct Answer by NkiwaneMG about 2 years 1 month ago

Looking at this issue also you need to

1. configure vlan 1 on switch and assign a port to that vlan.

2. Manually assign your desktop an ip address in the subnet of the vlan you just created.

3. Plug your pc to the port you just assigned the vlan

4. Try to ping and if it does then you are all good.

5. now start your Tftpd32 and do your copy on the switch.

  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (1 ratings)
Reza Sharifi Tue, 02/21/2012 - 12:11

From the switch can you ping the TFTP server (192.168.1.132)?

From the PC can you ping the switch IP address?

Is the TFTP application running?

Abdilaziz Tue, 02/21/2012 - 12:22

In addion to what Reza said, check your firewall is not blocking the Tftp port, either let through or temporarily disable your firewall.

terrelstinnett Tue, 02/21/2012 - 12:41

DSW#ping 192.168.1.132

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.132, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

--------------------------------------------------------------------

!

interface Vlan1

ip address 1.1.1.1 255.255.255.0

!

--------------------------------------------------------------------

C:\Users\Jacc Trippa>ping 1.1.1.1

Pinging 1.1.1.1 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 1.1.1.1:

    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

----------------------------------------------------------------------------------------------------------

I dont know how to check and make sure the TFTPd32 server is running but I believe so because I have it open.

On the TFTP server, I changed the security on none.

I am unable to ping the switch from the command prompt.

I am unable to ping the server from the switch.

I also turned off the firewall on the pc.

Thanks for the help so far, guys.

Reza Sharifi Tue, 02/21/2012 - 12:46

The first problem is that you can't even ping. 

Is vlan 1 in up and up mode?

what is the output of "sh ip int bri vlan 1"?

Is the port that the PC is connected to part of vlan 1?

Is the port that the PC is connected to in up and up mode

sh ip int bri fax/x

terrelstinnett Tue, 02/21/2012 - 13:11

DSW#show int vlan1

Vlan1 is up, line protocol is up

  Hardware is EtherSVI, address is 0012.4339.a880 (bia 0012.4339.a880)

  Internet address is 192.168.1.133/24

---------------------------------------------------------------------------

I am consoled directly in.

---------------------------------------------------------------------------

DSW#ping 192.168.1.132

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.132, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

------------------------------------------------------------------------------

Also, I am unable to find that process to delete it. Thanks fellas.

Reza Sharifi Tue, 02/21/2012 - 12:52

Also, why are you pinging 1.1.1.1?

the TFTP server and the switch need to be in the same IP subnet

Leo Laohoo Tue, 02/21/2012 - 12:52

You are making things complicated.

The only time I've seen a "socket error" when doing TFTP to and from a switch is when the switch has either no IP address or is on the wrong subnet as the TFTP server.

As what Reza has stated, if your VLAN 1 is on a 1.1.1.0 /24 subnet then your TFTP client should be in a port assigned to VLAN 1 and should fall in the same subnet as your switch VLAN 1 IP address.

NkiwaneMG Tue, 02/21/2012 - 12:50

I have seen this before when you start your tftpd32 you get an error:

10048

"Only one usage of each socket address (protocol/network address/port) is normally permitted.

Tftpd32 can not bind the TFTP port, and application is already listening on this port"

What I have done is do a Ctrl +Shift+Esc , Under the Processes Tab, Click on "show processes from all users"

Disable javaaw.exe and then restart your Tftpd32 and you should all be good.

Hope this helps.

Correct Answer
NkiwaneMG Tue, 02/21/2012 - 12:58

Looking at this issue also you need to

1. configure vlan 1 on switch and assign a port to that vlan.

2. Manually assign your desktop an ip address in the subnet of the vlan you just created.

3. Plug your pc to the port you just assigned the vlan

4. Try to ping and if it does then you are all good.

5. now start your Tftpd32 and do your copy on the switch.

terrelstinnett Tue, 02/21/2012 - 13:22

DSW#show int vlan1

Vlan1 is up, line protocol is up

  Hardware is EtherSVI, address is 0012.4339.a880 (bia 0012.4339.a880)

  Internet address is 192.168.1.133/24

---------------------------------------------------------------------------

I am consoled directly in.

---------------------------------------------------------------------------

DSW#ping 192.168.1.132

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.132, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

------------------------------------------------------------------------------

Also, I am unable to find that process to delete it. Thanks fellas.

NkiwaneMG Tue, 02/21/2012 - 13:29

1. Click on the windows logo on the bottom right

2. Right click on Network and select properties

3. You should see your Local Area Connection and click on it

4. Click on Properties, ad yes on the pop up

5. Double-click on the Internet Protocol Version 4(TCP/IP4)

6. Select Use the following IP address

7. Give your pc the IP address 192.168.1.132 Subnet mask will be 255.255.255.0

8. You can leave the default gateway blank or give it the IP address of vlan 1

Make sure you have a an RJ-45 cable connected from you PC to the port that is assigned to VLAN 1.

Good luck.

Actions

Login or Register to take actions

This Discussion

Posted February 21, 2012 at 11:50 AM
Stats:
Replies:14 Avg. Rating:5
Views:2947 Votes:0
Shares:0

Related Content

Discussions Leaderboard

Rank Username Points
1 14,997
2 8,150
3 7,720
4 7,078
5 6,713
Rank Username Points
180
80
59
57
55