10-05-2019 02:47 AM
Hello,
Im solving issue for a week now and I read a lots of forums but its still same..
Im trying to copy config from TFTP server to my Router which has switch card.
I can ping from Pc to Router and Switch aswell.
When I connect my PC directly to router on interface gig0/0/0 I can copy config from TFTP to flash: or nvram: with no problems. But when i connect my PC directly to Switch part of my device, connect to it via Putty SSH and try to copy tftp: flash: it says Socket error.
As i said..
I can ping from PC to Router and to Switch aswell.
I configured SSH.
Firewall turned off.
I used command to allow tftp access to port on switch (ip tftp source-interface).
I used command no service config as I read on lot of forums.
I spent a lot of time to configure this device and this is last step that I need to do and I cant really figure it out after week on forums and trying and trying... :( Thank you soooo much for some advice.
Solved! Go to Solution.
01-09-2021 11:22 PM - edited 01-10-2021 03:31 AM
Step 1: Configure Interface G0/0 or F0/0
Anything else before you have to configure the interface of G0/0 or F0/0 of router/switch that connected to PC/Laptop. Otherwise, you will get tftp://.. (socket error)
R-2800>en
R-2800#config t
R-2800(config)#int g0/0
R-2800(config-if)#ip address 192.168.10.4 255.255.255.0
R-2800(config-if)#no shutdown
R-2800(config-if)#exit
R-2800#
Copying a boot IOS image file to USB memory stick CLI command. ex. copy tftp flash: or usbflash0: or usbflash1 / (wise-versa) copy running-config tftp or copy flash: tftp or copy usbflash0: tftp
R-2800#copy tftp usbflash0:
The PC/Laptop IP address [192.168.10.3] where the TFTP-Server running.
Address or name of remote host [192.168.10.3]?
IOS file name located in TFTP-Server directory as a source file name
Source filename [c2800nm-advipservicesk9-mz.124-4.T1.bin]?
Destination filename [c2800nm-advipservicesk9-mz.124-4.T1.bin]?
If same IOS file exist in USB stick you will notify with warning message
Warning: There is a file already existing with this name
Do you want to over write? [confirm]
Accessing tftp://192.168.10.3/c2800nm-advipservicesk9-mz.124-4.T1.bin...
Loading c2800nm-advipservicesk9-mz.124-4.T1.bin from 192.168.10.3 (via GigabitEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 34607412 bytes]
34607412 bytes copied in 88.564 secs (390762 bytes/sec)
R-2800#
(Note: I had a same problem, I solved myself this problem. It is common mistaken we do that we missed or forget to configure of interface G0/0 with correct IP address. This might every useful to beginners..enjoy)
10-05-2019 03:02 AM
>But when i connect my PC directly to Switch part of my device...
- That's a bit unclear to me. Could you elaborate ?
M.
10-05-2019 07:37 AM
My router has switch card in and I need to connect TFTP via switch so I enter on router command "hw-module session 1/0 and now Im in Switch. Then every pings are working but "copy tftp: flash:" fails on socket error.. when I do same on router via router interface gig0/0/0 everything is OK.
10-05-2019 09:18 AM
- I do not know if it can work through the switch card, but I would in that case at lease include the IP-destination parameters in the tftp-copy command.
M.
10-05-2019 05:24 AM
Hi!
please provide us show inventory.
thank you!
10-05-2019 07:37 AM
10-07-2019 12:00 AM
Hey!
I can finally copy config from TFTP to flash: on router but when I login to switch part via hw-module session 1/0 and try to copy tftp: flash: i says socket error again.. i used command ip tftp source-interface on every single interface which is used to comunicate between router and switch. Now its working but only on router... is it possible to copy from TFTP to router's switch card?
01-09-2021 11:22 PM - edited 01-10-2021 03:31 AM
Step 1: Configure Interface G0/0 or F0/0
Anything else before you have to configure the interface of G0/0 or F0/0 of router/switch that connected to PC/Laptop. Otherwise, you will get tftp://.. (socket error)
R-2800>en
R-2800#config t
R-2800(config)#int g0/0
R-2800(config-if)#ip address 192.168.10.4 255.255.255.0
R-2800(config-if)#no shutdown
R-2800(config-if)#exit
R-2800#
Copying a boot IOS image file to USB memory stick CLI command. ex. copy tftp flash: or usbflash0: or usbflash1 / (wise-versa) copy running-config tftp or copy flash: tftp or copy usbflash0: tftp
R-2800#copy tftp usbflash0:
The PC/Laptop IP address [192.168.10.3] where the TFTP-Server running.
Address or name of remote host [192.168.10.3]?
IOS file name located in TFTP-Server directory as a source file name
Source filename [c2800nm-advipservicesk9-mz.124-4.T1.bin]?
Destination filename [c2800nm-advipservicesk9-mz.124-4.T1.bin]?
If same IOS file exist in USB stick you will notify with warning message
Warning: There is a file already existing with this name
Do you want to over write? [confirm]
Accessing tftp://192.168.10.3/c2800nm-advipservicesk9-mz.124-4.T1.bin...
Loading c2800nm-advipservicesk9-mz.124-4.T1.bin from 192.168.10.3 (via GigabitEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 34607412 bytes]
34607412 bytes copied in 88.564 secs (390762 bytes/sec)
R-2800#
(Note: I had a same problem, I solved myself this problem. It is common mistaken we do that we missed or forget to configure of interface G0/0 with correct IP address. This might every useful to beginners..enjoy)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide