Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2001 08:50:58 -0600
From:      Hyunseog Ryu <hyun@staff.norlight.net>
To:        Jean-Christophe Varaillon <jcv@vbc.net>
Cc:        "Andy [TECC NOPS]" <andy@tecc.co.uk>, freebsd-net@FreeBSD.ORG
Subject:   Re: - TFTP: Time out -
Message-ID:  <3AAA3F52.8AD19E74@staff.norlight.net>
References:  <Pine.BSF.4.10.10103061633060.54055-100000@brunel.uk1.vbc.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------E8A859026FE4E290ADF36910
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ok. guys

First, you only need one tftp configuration from /etc/inetd.conf file
Either use /tftpboot or /usr/home/jcv.
And killall -HUP inetd

Then use following.

get /c3640-i-mz.120-9.bin

Remember that if you use -s /directory, actually tftp consider
/directory as it's own / (root) directory.
-s is used to change it's root directory to other <directory>.

Because tftpd actually try to read "/tftpboot/c3640-i-mz.120-9.bin" from 
/tftpboot/tftpboot/c3640-i-mz.120-9.bin, it didn't work.

Hyun

Jean-Christophe Varaillon wrote:
> 
> It is still not working between my machine and the cisco #(
> 
> So, let summurize what I should fixe:
> 
> === Make my FreeBSD machine as a tftp server ===
> 
> vi /etc/inetd.conf:
> --
> tftp dgram udp  wait root /usr/libexec/tftpd  tftpd -l -s /tftpboot
> tftp dgram udp  wait root /usr/libexec/tftpd  tftpd -l -s /usr/home/jcv
> --
> 
> --
> homer# ps auwx | grep inetd
> root   108  0.0  0.5  1044  604  ??  Is   27Feb01   0:00.19 inetd -wW
> jcv  23629  0.0  0.9  1548 1136  pc  I+    4:15PM   0:00.02 vi
> /etc/inetd.conf
> homer# kill -HUP 108
> --
> 
> I can see that the server is actually listening:
> --
> %netstat -a | grep tftp
> udp4       0      0  *.tftp                 *.*
> %
> --
> 
> ===== TFTP LOCALHOST TEST =====
> %su
> Password:
> 
> homer# cd /tftpboot
> homer# ls -l
> total 8544
> -rw-r--r--  1 nobody  nobody  4991380 Mar  6 15:39
> c3640-i-mz.120-7.XK1.bin
> -rw-r--r--  1 nobody  nobody  3731009 Mar  6 15:03 c3640-i-mz.120-9.bin
> 
> homer# cd /usr/home/jcv
> homer# ls -l c3640-i-mz.120-9.bin
> -rw-r--r--  1 nobody  nobody  0 Mar  6 16:03 c3640-i-mz.120-9.bin
> homer# tftp 127.0.0.1
> 
> tftp> status
> Connected to 127.0.0.1.
> Mode: netascii Verbose: off Tracing: off
> Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
> tftp> get /tftpboot/c3640-i-mz.120-9.bin
> Transfer timed out.
> 
> tftp> quit
> 
> homer#vi /var/log/messages
> ...
> Mar  6 16:29:03 homer tftpd[23756]: read: Connection refused
> Mar  6 16:29:08 homer tftpd[23758]: read: Connection refused
> 
> =================================
> 
> Oh by the way, when you make your IOS upgrade form your tftp server to
> your router, you don't have to creat a blank file in flash ?
> 
> Regards,
> Jean-Christophe.
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
--------------E8A859026FE4E290ADF36910
Content-Type: text/x-vcard; charset=us-ascii;
 name="hyun.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hyunseog Ryu
Content-Disposition: attachment;
 filename="hyun.vcf"

begin:vcard 
n:Ryu;Hyunseig
tel;fax:262-792-7655
tel;work:262-792-7965
x-mozilla-html:FALSE
org:Norlight Telecommunications;Applications Engineering
adr:;;275 North Corporate Drive;Brookfield;WI;53045;USA
version:2.1
email;internet:hyun@staff.norlight.net
title:Network Engineer
note:MCSE, CCDA
fn:Hyunseig Ryu
end:vcard

--------------E8A859026FE4E290ADF36910--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AAA3F52.8AD19E74>