Re: tftp boot server on Redhat linux 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

More info.

Captured using $ tcpdump -n

20:56:40.615815 arp who-has 4.42.102.5 tell 4.42.102.6
20:56:40.615890 arp reply 4.42.102.5 is-at 0:e0:98:9e:84:96
20:56:40.622048 4.42.102.6.1040 > 4.42.102.5.tftp: 20 RRQ "vmlinux.rec" (DF)
20:56:40.622112 4.42.102.5 > 4.42.102.6: icmp: 4.42.102.5 udp port tftp unreachable [tos 0xc0]
20:56:41.699926 4.42.102.6.1040 > 4.42.102.5.tftp: 20 RRQ "vmlinux.rec" (DF)
20:56:41.700006 4.42.102.5 > 4.42.102.6: icmp: 4.42.102.5 udp port tftp unreachable [tos 0xc0]


Please tell me why its replying udp port tftp unreachable?

Thanks,
-Mike.

From: John <red@xxxxxxxxxxxxxxxxxxxxxxx>
Reply-To: redhat-devel-list@xxxxxxxxxx
To: redhat-devel-list@xxxxxxxxxx
Subject: Re: tftp boot server on Redhat linux 9
Date: Wed, 7 May 2003 13:31:24 +0800 (WST)

On Wed, 7 May 2003, Michael Anburaj wrote:

> Hi All,
>
> Thanks a lot for you segestions.
>
> I edited the configuration file '/etc/xinetd.d/tftp'
>
> & now it has:
>
> service tftp
> {
> socket_type = dgram
> protocol = udp
> wait = yes
> user = root
> server = /usr/sbin/in.tftpd
> server_args = -u nobody -s /tftpboot
> disable = no
> per_source = 11
> cps = 100 2
> flags = IPv4
> }
>
> after that I issued the following command to restart the tftp server:
>
> $ /etc/rc.d/init.d/xinetd restart
>
> Then from my tftp client (target board running YAMON) issued the command to
> get a file using tftp:
>
> YAMON> load tftp://4.42.102.5/vmlinux.rec
> About to load tftp://4.42.102.5/vmlinux.rec
> Press Ctrl-C to break
> Error : TFTP READ-REQ timeout ERROR
> Hint : Check TFTP-server is up and running
>
> where:
> vmlinux.rec is in /tftpboot on the PC host
> 4.42.102.5 is the IP of my host PC running Redhat Linux 9
> 4.42.102.6 is the IP of Target board running YAMON (TFTP client)
>
>
> Connection:
>
> Target running YAMON <--> hub port - Ethernet HUB - hub port <--> PC running
> RH Linux 9
>
> These are the only 2 machines physically connected in the network.
>
> Ping works from either side.
>
> Questions:
> 1. Is the network set-up OK for tftp (its a peer-to-peer connection)?
> 2. The TFTP status using 'redhat-config-services' shows xinetd. Is this too
> advanced for the YAMON - Compatibility issue?
> 3. Do I need to reboot RH Linux for the configuration to take effect?
> 4. Do you find anything missing or wrong.


Looks okay from here. Your diagnostic tools are
Log files in /var/logs. The tftp server mentions little problems like
files not found. So to does xinetd complain if it finds a problem
lsof (or netstat) to tell you whether something's listening:
[root@xxxxxx root]# lsof -c x -a -i
COMMAND PID USER   FD   TYPE DEVICE SIZE NODE NAME
xinetd  913 root    5u  IPv4   1759       TCP *:pop3 (LISTEN)
xinetd  913 root    6u  IPv4   1760       TCP *:rsync (LISTEN)
xinetd  913 root    7u  IPv4   1761       UDP *:tftp
xinetd  913 root    9u  IPv4   1762       TCP *:time (LISTEN)
[root@xxxxxx root]#

The tftp client which _may_ have more intelligence than your board:
# 192.168.0.99 does not exist here:
Numbat:~# tftp 192.168.0.99
tftp> get fred
Transfer timed out.

tftp> quit
# 192.168.1.1 exists, but there's no tftp server there
Numbat:~# tftp 192.168.1.1
tftp> get fred
Transfer timed out.
# Magpie is my working server
tftp> Numbat:~# tftp magpie
tftp> get fred
Error code 1: File not found
tftp> Numbat:~# logout
Connection to Numbat closed.
summer@xxxxxx:~$

tcpdump which is excellent for snooping traffic on your LAN.






-- Please, reply only to the list.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb




_______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/redhat-devel-list

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus




_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux