LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   TFTP timeout error (https://www.linuxquestions.org/questions/linux-newbie-8/tftp-timeout-error-4175478451/)

boby.kumar 09-25-2013 03:23 AM

TFTP timeout error
 
Hi

Getting the following error while keeping backup of cisco switch configuration.

cisco#copy running-config tftp:
Address or name of remote host []? 10.20.31.32
Destination filename [cisco-confg]? new
.....
%Error opening tftp://10.20.31.32/new (Timed out).

TFTP server configuration as follows..

[root@localhost ~]# cat /etc/xinetd.d/tftp
i# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{

socket_type = dgram
protocol = udp
port = 69
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

[root@localhost ~]# /etc/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

[root@localhost ~]# tftp localhost
tftp> status
Connected to localhost.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds

[root@localhost ~]# tftp localhost
tftp> get hello.txt
Transfer timed out.

can any one trace to this what is wrong with TFTP server?

Thanks

TB0ne 09-25-2013 09:11 AM

Quote:

Originally Posted by boby.kumar (Post 5034375)
Hi
Getting the following error while keeping backup of cisco switch configuration.

cisco#copy running-config tftp:
Address or name of remote host []? 10.20.31.32
Destination filename [cisco-confg]? new
.....
%Error opening tftp://10.20.31.32/new (Timed out).

TFTP server configuration as follows..

[root@localhost ~]# cat /etc/xinetd.d/tftp
i# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{

socket_type = dgram
protocol = udp
port = 69
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

[root@localhost ~]# tftp localhost
tftp> status
Connected to localhost.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds

[root@localhost ~]# tftp localhost
tftp> get hello.txt
Transfer timed out.

can any one trace to this what is wrong with TFTP server?

Did you try reading the man page on tftpd??? From the man page:
Quote:

Originally Posted by TFPTD Man Page
--create, -c
Allow new files to be created. By default, tftpd will only allow upload of files that already exist. Files are created with default permissions allowing anyone to read or write them, unless the --permissive or --umask options are specified.

You didn't start the service with the "-c" flag, so you will NEVER be able to upload files to it. Modify the server_args line to include the "-c". And you also need to check the permissions of the directory, to make sure the user running the tftp service has write permissions.

boby.kumar 09-26-2013 02:34 AM

Thanks TBOne for update.

You didn't start the service with the "-c" flag, so you will NEVER be able to upload files to it. Modify the server_args line to include the "-c".


Its don't work for me. still the issue as tftp timeout error. I find to xinetd or udp service not listening on port 69.

[root@localhost tftpboot]# netstat -anp |grep xinetd
tcp 0 0 :::23 :::* LISTEN 26269/xinetd
unix 2 [ ] DGRAM 341712 26269/xinetd

[root@localhost tftpboot]# netstat -anp |grep udp
udp 0 0 0.0.0.0:58462 0.0.0.0:* 23963/rpc.moun td
udp 0 0 0.0.0.0:55262 0.0.0.0:* 1373/rsyslogd
udp 0 0 0.0.0.0:875 0.0.0.0:* 23947/rpc.rquo tad
udp 0 0 0.0.0.0:111 0.0.0.0:* 26335/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 1599/cupsd
udp 0 0 0.0.0.0:36224 0.0.0.0:* 1450/rpc.statd
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 0.0.0.0:778 0.0.0.0:* 1450/rpc.statd
udp 0 0 0.0.0.0:40467 0.0.0.0:* 23963/rpc.moun td
udp 0 0 0.0.0.0:43030 0.0.0.0:* 23963/rpc.moun td
udp 0 0 0.0.0.0:55452 0.0.0.0:* -
udp 0 0 :::111 :::* 1432/rpcbind
udp 0 0 :::759 :::* 1432/rpcbind
udp 0 0 :::52866 :::* 23963/rpc.moun td
udp 0 0 :::45583 :::* 23963/rpc.moun td
udp 0 0 :::49962 :::* 1450/rpc.statd
udp 0 0 :::49078 :::* 23963/rpc.moun td
[root@localhost tftpboot]# lsof -i :69 --> Nothing output.

Is possible to get udp on port69 or we can set it to tcp port?

Is idea how to listen tftp server on port69? TFTP server installed RHEL6.2 os.

Thanks

TB0ne 09-26-2013 08:19 AM

Quote:

Originally Posted by boby.kumar (Post 5035045)
Thanks TBOne for update.
You didn't start the service with the "-c" flag, so you will NEVER be able to upload files to it. Modify the server_args line to include the "-c".

Its don't work for me.

Just saying "its don't work for me", tells us NOTHING new.
Quote:

still the issue as tftp timeout error. I find to xinetd or udp service not listening on port 69. Is possible to get udp on port69 or we can set it to tcp port?

Is idea how to listen tftp server on port69? TFTP server installed RHEL6.2 os.
If the service isn't started/listening, it will VERY OBVIOUSLY not work. Again, did you contact Red Hat support, since you're using RHEL?? You are PAYING for RHEL, right???? Did you restart the tftp daemon after you made the change to the .conf file? Check the service to see if it's running?? There are MANY easily-found guides on how to configure tftp:
http://thehomelab.blogspot.com/2012/...-server-6.html

That has a detailed section on how to configure it, along with iptables rules, etc.


All times are GMT -5. The time now is 01:00 AM.