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-03-2014, 12:41 AM
|
#1
|
Member
Registered: Feb 2006
Posts: 40
Rep:
|
CentOS 6.4: tftpd Connection refused
Hi,
I am facing a problem getting the tftpd to work.
Here is my hardware setup:
(1) Two NICs (both detected during boot)
(2) CentOS 6.4 32-bit
(3) tftpd-server installed (yum install tftpd-server)
(4) tftp client installed (yum install tftp)
First NIC is connected to corporate network (DHCP). the second NIC is used for the tftp server (Static IP).
Here are my things that I have done so far:
(1) Edited /etc/selinux/config and disable the SELINUX. (Rebooted after making the change)
(2) Edited /etc/xinetd.d/tftp to include '-vvv' in the server_args to show more messages in the /var/log/messages.
(3) Restarted xinetd. (service xinetd restart)
(4) Disabled Firewall.
(5) Tested locally for tftp file transfer and it works.
(6) Connect the tftp client device.
(7) Getting the following message in /var/log/messages:
Mar 3 21:40:14 localhost in.tftpd[2867]: RRQ from 192.168.3.1 filename bootfile
Mar 3 21:40:14 localhost in.tftpd[2867]: tftpd: read(ack): Connection refused
So, I have ran out of options to try. Anyone can shed some light?
TIA.
|
|
|
03-03-2014, 05:52 PM
|
#2
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
|
What does your /etc/xinetd.d/tftp file look like (please use code tags) and what are the permissions on the filesystem?
--C
|
|
|
03-03-2014, 06:01 PM
|
#3
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,232
|
Quote:
Originally Posted by fjkum
Hi,
I am facing a problem getting the tftpd to work.
Here is my hardware setup:
(1) Two NICs (both detected during boot)
(2) CentOS 6.4 32-bit
(3) tftpd-server installed (yum install tftpd-server)
(4) tftp client installed (yum install tftp)
First NIC is connected to corporate network (DHCP). the second NIC is used for the tftp server (Static IP).
|
I'm not sure I understand what you are saying. Are you mixing together the description of your server and your client, or are you trying to run the tftp server and client on the same system?
Assuming that they are separate, does the client have a single ethernet port which connects to the server's static IP NIC and is it on the same network segment (no NAT or routers in between)?
Assuming it is on the same segment, are routes correct in the server? Show the route table.
|
|
|
03-03-2014, 09:24 PM
|
#4
|
Member
Registered: Feb 2006
Posts: 40
Original Poster
Rep:
|
Quote:
Originally Posted by smallpond
I'm not sure I understand what you are saying. Are you mixing together the description of your server and your client, or are you trying to run the tftp server and client on the same system?
Assuming that they are separate, does the client have a single ethernet port which connects to the server's static IP NIC and is it on the same network segment (no NAT or routers in between)?
Assuming it is on the same segment, are routes correct in the server? Show the route table.
|
Hi,
The client and the server are separate. And yes, I can ping the client IP from Server side and the client is using only one ethernet port. So this means they are both falls in the same segment.
The server side has two physical NIC cards. The client is connected directly to the second NIC (eth3).
Code:
[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.252.0 U 1 0 0 eth3
10.128.112.0 * 255.255.248.0 U 1 0 0 eth0
default 10.128.112.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost ~]#
---------- Post added 03-03-14 at 22:24 ----------
Quote:
Originally Posted by custangro
What does your /etc/xinetd.d/tftp file look like (please use code tags) and what are the permissions on the filesystem?
--C
|
Code:
[root@localhost ~]# 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
#port = 6969
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -vv -s /var/lib/tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
|
|
|
03-04-2014, 09:56 AM
|
#5
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,232
|
I guess use tcpdump on interface eth3 on server and see where the protocol breaks down.
|
|
|
03-04-2014, 12:14 PM
|
#6
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
|
What does...
Code:
ls -lAFhd /var/lib/tftpboot
ls -lAFh /var/lib/tftpboot
Show?
Last edited by custangro; 03-04-2014 at 12:16 PM.
|
|
|
03-05-2014, 12:08 AM
|
#7
|
Member
Registered: Feb 2006
Posts: 40
Original Poster
Rep:
|
Quote:
Originally Posted by custangro
What does...
Code:
ls -lAFhd /var/lib/tftpboot
ls -lAFh /var/lib/tftpboot
Show?
|
Code:
[root@localhost ~]# ls -lAFhd /var/lib/tftpboot
drwxrwxrwx. 4 root root 4.0K Sep 23 2011 /var/lib/tftpboot/
[root@localhost /]# ls -lAFh /var/lib/tftpboot/
total 116K
-rwxrwxrwx. 1 nobody nobody 113K Mar 3 18:53 boot_fw*
|
|
|
03-05-2014, 12:09 AM
|
#8
|
Member
Registered: Feb 2006
Posts: 40
Original Poster
Rep:
|
Quote:
Originally Posted by smallpond
I guess use tcpdump on interface eth3 on server and see where the protocol breaks down.
|
Code:
Output from 'tcpdump -i eth3 -vvnn':
[root@localhost ~]# tcpdump -i eth3 -vvnn
tcpdump: listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes
18:57:18.751902 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.3.1 tell 192.168.3.1, length 46
18:57:20.804436 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.251 tell 192.168.3.1, length 46
18:57:20.804449 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.1.251 is-at 00:02:b3:4b:3b:d7, length 28
18:57:20.804685 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], proto UDP (17), length 544)
192.168.3.1.7001 > 192.168.1.251.6969: [udp sum ok] rx type 0 cid 74616c6f call# 1851744879 seq 1869873263 ser 1668572532 (516)
18:57:20.805801 IP (tos 0x0, ttl 64, id 30813, offset 0, flags [DF], proto UDP (17), length 544)
192.168.1.251.6988 > 192.168.3.1.7001: [udp sum ok] rx type 192 cid 481fd703 call# -2147287004 seq -338870208 ser 1210457638 <more-pckts> (516)
18:57:20.806088 IP (tos 0x0, ttl 255, id 1, offset 0, flags [none], proto ICMP (1), length 56)
192.168.3.1 > 192.168.1.251: ICMP 192.168.3.1 udp port 7001 unreachable, length 36
IP (tos 0x0, ttl 64, id 30813, offset 0, flags [DF], proto UDP (17), length 544)
192.168.1.251.6988 > 192.168.3.1.7001: [|rx] (516)
|
|
|
All times are GMT -5. The time now is 08:14 AM.
|
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
|
|