Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-26-2013, 06:39 AM
|
#1
|
LQ Newbie
Registered: May 2010
Location: Florida
Distribution: Gallium
Posts: 15
Rep: 
|
TFTP: Transfer timed out.
Hello,
I'm trying to configure a RHEL 5.5 system to support TFTP transfers (backup Cisco IOS and configs). I've used several installation and configuration tutorials to get started. I believe I have everything configured properly but I'm receiving timeout errors. I've broken my syntax into three groups, Environment, Cisco attempt, and local attempt. Any help would be appreciated.
Thanks in advance,
Rob
----Environment Start----
Code:
[root@RHEL_PC ~]# rpm -qa | grep -i tftp
tftp-0.49-2
tftp-server-0.49-2
[root@RHEL_PC ~]# lsmod | grep tftp
ip_conntrack_tftp 8249 0
ip_conntrack 53281 1 ip_conntrack_tftp
[root@RHEL_PC ~]# chkconfig --list
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
acpid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
anacron 0:off 1:off 2:off 3:off 4:off 5:off 6:off
apmd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
atd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
auditd 0:off 1:on 2:on 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
avahi-daemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
avahi-dnsconfd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
capi 0:off 1:off 2:off 3:off 4:off 5:off 6:off
conman 0:off 1:off 2:off 3:off 4:off 5:off 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cups 0:off 1:off 2:off 3:off 4:off 5:off 6:off
cups-config-daemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dc_client 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dc_server 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dnsmasq 0:off 1:off 2:off 3:off 4:off 5:off 6:off
firstboot 0:off 1:off 2:off 3:off 4:off 5:off 6:off
gpm 0:off 1:off 2:off 3:off 4:off 5:off 6:off
haldaemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
hplip 0:off 1:off 2:off 3:off 4:off 5:off 6:off
httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ipmi 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
irda 0:off 1:off 2:off 3:off 4:off 5:off 6:off
irqbalance 0:off 1:off 2:on 3:on 4:on 5:on 6:off
isdn 0:off 1:off 2:off 3:off 4:off 5:off 6:off
jexec 0:on 1:on 2:on 3:on 4:on 5:on 6:on
kdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
kudzu 0:off 1:off 2:off 3:off 4:off 5:off 6:off
lm_sensors 0:off 1:off 2:on 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
mcstrans 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mdmonitor 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off
microcode_ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:off
multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nagios 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfslock 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ntpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
pcscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
portmap 0:off 1:off 2:off 3:off 4:off 5:off 6:off
psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
readahead_early 0:off 1:off 2:off 3:off 4:off 5:off 6:off
readahead_later 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rpcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rpcidmapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
setroubleshoot 0:off 1:off 2:off 3:off 4:off 5:off 6:off
smartd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
squid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
tux 0:off 1:off 2:off 3:off 4:off 5:off 6:off
wdaemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off
xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
yum-updatesd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
xinetd based services:
chargen-dgram: off
chargen-stream: off
cvs: off
daytime-dgram: off
daytime-stream: off
discard-dgram: off
discard-stream: off
echo-dgram: off
echo-stream: off
eklogin: off
ekrb5-telnet: off
gssftp: off
klogin: off
krb5-telnet: off
kshell: off
rmcp: off
rsync: off
tcpmux-server: off
tftp: on
time-dgram: off
time-stream: off
[root@RHEL_PC /]# ls -ld /tftpboot
drwxr-xr-x 4 root root 4096 May 19 2009 /tftpboot
[root@RHEL_PC /]# ls -l /tftpboot/Cisco_2911.cfg
-rw-rw-rw- 1 root root 0 Mar 20 09:45 /tftpboot/Cisco_2911.cfg
[root@RHEL_PC /]# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@RHEL_PC /]# cat /etc/xinetd.d/tftp
# 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
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -vvv -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
[root@RHEL_PC /]# netstat -aon | grep \:69
udp 0 0 0.0.0.0:69 0.0.0.0:* off (0.00/0/0)
[root@RHEL_PC ~]# more /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL:127.0.0.1:allow
ALL:192.168.50.:allow
ALL:192.168.51.:allow
ALL:192.168.52.:allow
All:192.168.0.:allow
All:192.168.1.:allow
ALL:192.168.3.:allow
All:10.3.0.:allow
ALL:10.13.0.:allow
ALL:10.:allow
----Environment End----
----Cisco Attempt Start----
Code:
Cisco_2911#ping 192.168.3.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Cisco_2911#copy run tftp
Address or name of remote host []? 192.168.3.6
Destination filename [Cisco_2911-confg]? /tftpboot/Cisco_2911.cfg
.....
%Error opening tftp://192.168.3.6//tftpboot/Cisco_2911.cfg (Timed out)
Cisco_2911#
[root@RHEL_PC ~]# tail -f /var/log/messages
Mar 26 06:26:53 RHEL_PC xinetd[2628]: START: tftp pid=13639 from=192.168.3.1
Mar 26 06:26:53 RHEL_PC in.tftpd[13639]: no user nobody: Success
Mar 26 06:26:53 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=13639 duration=0(sec)
Mar 26 06:26:56 RHEL_PC xinetd[2628]: START: tftp pid=13640 from=192.168.3.1
Mar 26 06:26:56 RHEL_PC in.tftpd[13640]: no user nobody: Success
Mar 26 06:26:56 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=13640 duration=0(sec)
Mar 26 06:27:00 RHEL_PC xinetd[2628]: START: tftp pid=13641 from=192.168.3.1
Mar 26 06:27:00 RHEL_PC in.tftpd[13641]: no user nobody: Success
Mar 26 06:27:00 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=13641 duration=0(sec)
Mar 26 06:27:05 RHEL_PC xinetd[2628]: START: tftp pid=14112 from=192.168.3.1
Mar 26 06:27:05 RHEL_PC in.tftpd[14112]: no user nobody: Success
Mar 26 06:27:05 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=14112 duration=0(sec)
Mar 26 06:27:11 RHEL_PC xinetd[2628]: START: tftp pid=14710 from=192.168.3.1
Mar 26 06:27:11 RHEL_PC in.tftpd[14710]: no user nobody: Success
Mar 26 06:27:11 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=14710 duration=0(sec)
[root@RHEL_PC ~]# tcpdump -i eth0 -vv port 69
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
06:26:53.051994 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], proto: UDP (17), length: 67) Cisco_2911.55732 > RHEL_PC.tftp: [udp sum ok] 39 WRQ "/tftpboot/Cisco_2911.cfg" octet
06:26:56.050150 IP (tos 0x0, ttl 255, id 1, offset 0, flags [none], proto: UDP (17), length: 67) Cisco_2911.55732 > RHEL_PC.tftp: [udp sum ok] 39 WRQ "/tftpboot/Cisco_2911.cfg" octet
06:27:00.050106 IP (tos 0x0, ttl 255, id 2, offset 0, flags [none], proto: UDP (17), length: 67) Cisco_2911.55732 > RHEL_PC.tftp: [udp sum ok] 39 WRQ "/tftpboot/Cisco_2911.cfg" octet
06:27:05.050142 IP (tos 0x0, ttl 255, id 3, offset 0, flags [none], proto: UDP (17), length: 67) Cisco_2911.55732 > RHEL_PC.tftp: [udp sum ok] 39 WRQ "/tftpboot/Cisco_2911.cfg" octet
06:27:11.050039 IP (tos 0x0, ttl 255, id 4, offset 0, flags [none], proto: UDP (17), length: 67) Cisco_2911.55732 > RHEL_PC.tftp: [udp sum ok] 39 WRQ "/tftpboot/Cisco_2911.cfg" octet
----Cisco Attempt End----
----Local Attempt Start----
Code:
[root@RHEL_PC ~]# tftp 192.168.6.3
tftp> status
Connected to 192.168.6.3.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> verbose on
Verbose mode on.
tftp> get /tftpboot/Cisco_2911.cfg
getting from 192.168.6.3:/tftpboot/Cisco_2911.cfg to Cisco_2911.cfg [netascii]
Transfer timed out.
tftp> quit
[root@RHEL_PC ~]# tail -f /var/log/messages
Mar 25 19:08:20 RHEL_PC xinetd[2628]: START: tftp pid=29669 from=192.168.3.6
Mar 25 19:08:20 RHEL_PC in.tftpd[29669]: no user nobody: Success
Mar 25 19:08:20 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=29669 duration=0(sec)
Mar 25 19:08:25 RHEL_PC xinetd[2628]: START: tftp pid=29674 from=192.168.3.6
Mar 25 19:08:25 RHEL_PC in.tftpd[29674]: no user nobody: Success
Mar 25 19:08:25 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=29674 duration=0(sec)
Mar 25 19:08:30 RHEL_PC xinetd[2628]: START: tftp pid=29675 from=192.168.3.6
Mar 25 19:08:30 RHEL_PC in.tftpd[29675]: no user nobody: Success
Mar 25 19:08:30 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=29675 duration=0(sec)
Mar 25 19:08:35 RHEL_PC xinetd[2628]: START: tftp pid=29676 from=192.168.3.6
Mar 25 19:08:35 RHEL_PC in.tftpd[29676]: no user nobody: Success
Mar 25 19:08:35 RHEL_PC xinetd[2628]: EXIT: tftp status=67 pid=29676 duration=0(sec)
----Local Attempt End----
|
|
|
03-26-2013, 10:19 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,808
|
The root directory for tftp is /tftpboot/ so you do not have to specify it when getting a file i.e. just try
tftp> get Cisco_2911.cfg
|
|
|
03-27-2013, 02:49 AM
|
#3
|
LQ Newbie
Registered: May 2010
Location: Florida
Distribution: Gallium
Posts: 15
Original Poster
Rep: 
|
Same error
Hello Michael,
I tried as you suggested but received the same errors:
Cisco Attempt
Code:
Cisco_2911#copy run tftp
Address or name of remote host []? 192.168.3.6
Destination filename [sv003_srvc_rtr01-confg]? Cisco_2911.cfg
.....
%Error opening tftp://192.168.3.6/Cisco_2911.cfg (Timed out)
Cisco_2911#
Local Attempt
Code:
[root@RHEL_PC ~]# tftp
(to) 192.168.3.6
tftp> get
(files) Cisco_2911.cfg
Transfer timed out.
tftp>
Any other suggestions on what to try next?
Thanks!
Rob
|
|
|
03-27-2013, 06:54 AM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,808
|
You might try disabling selinux if enabled to see if this is causing your problems.
|
|
|
03-29-2013, 05:56 AM
|
#5
|
LQ Newbie
Registered: May 2010
Location: Florida
Distribution: Gallium
Posts: 15
Original Poster
Rep: 
|
SELinux status: disabled
Hello Michael,
Looks like I have SELinux disabled. Any other ideas?
Thanks!
Rob
Code:
[root@RHEL_PC ~]# getenforce
Disabled
[root@RHEL_PC ~]# sestatus
SELinux status: disabled
|
|
|
All times are GMT -5. The time now is 07:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|