From owner-freebsd-net Tue Mar 6 8:48: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from relay.tecc.co.uk (luggage.tecc.co.uk [193.128.6.129]) by hub.freebsd.org (Postfix) with SMTP id 9F8AE37B719 for ; Tue, 6 Mar 2001 08:48:02 -0800 (PST) (envelope-from andy@tecc.co.uk) Received: from fw-smtp.tecc.co.uk [195.217.37.39] by relay.tecc.co.uk with esmtp (Exim 1.70 #1) id 14aKcz-000164-00; Tue, 6 Mar 2001 16:48:01 +0000 Received: from [195.217.37.155] (helo=southampton) by fw-smtp.tecc.co.uk with smtp (Exim 2.12 #3) id 14aKay-0005pE-00; Tue, 6 Mar 2001 16:45:56 +0000 From: "Andy [TECC NOPS]" To: "Jean-Christophe Varaillon" Cc: Subject: RE: - TFTP: Time out - Date: Tue, 6 Mar 2001 16:52:27 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 In-Reply-To: Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org OK, from that all seems fine. But remeber that doing %tftp localhost and then trying a local get failed, so I suspect that there is something wrong with the local setup somewhere. Right, how come you have two lines beginning "tftp" in your /etc/inetd.conf ?? Thought there should be only one (the one ending -s /tftpboot). Big point here is that inetd is invoked -wW so it's wrapping. Check /etc/hosts.allow (or is it /usr/local/etc/hosts.allow these days? dunno, check up on it). Do a man inetd and check this yourself. Try doing %telnet localhost 69 and see if your daemon will even allow a connection. If none of these we'll try again Regards Andy > -----Original Message----- > From: owner-freebsd-net@FreeBSD.ORG > [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Jean-Christophe > Varaillon > Sent: 06 March 2001 16:37 > To: Andy [TECC NOPS] > Cc: freebsd-net@FreeBSD.ORG > Subject: RE: - TFTP: Time out - > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message