From owner-freebsd-net Tue Mar 6 3:35:31 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 6576D37B719 for ; Tue, 6 Mar 2001 03:35:24 -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 14aFkQ-0006ez-00; Tue, 6 Mar 2001 11:35:22 +0000 Received: from [195.217.37.155] (helo=southampton) by fw-smtp.tecc.co.uk with smtp (Exim 2.12 #3) id 14aFiQ-0004Di-00; Tue, 6 Mar 2001 11:33:18 +0000 From: "Andy [TECC NOPS]" To: "Jean-Christophe Varaillon" Cc: "Alfred Perlstein" , Subject: RE: - TFTP: Time out - Date: Tue, 6 Mar 2001 11:39:45 -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 > TFTP Methode: > --- Dunno about the tftp operation, could be a number of things. Try looking in /var/log/messages for ftpd[xx] error messages. > > FTP Methode: > --- > Router#copy ftp://x.x.x.48/tftpboot/c3640-i-mz.120-7.XK1.bin flash: > Destination filename [c3640-i-mz.120-7.XK1.bin]? > Accessing ftp://x.x.x.48/tftpboot/c3640-i-mz.120-7.XK1.bin... > %Error opening ftp://x.x.x.48/tftpboot/c3640-i-mz.120-7.XK1.bin > (Protocol error) > Router# > --- here, you are missing the username:passwd combination. If you have a local account on the box, say "jean" then try copying the bin flash image to your local account:- freebsd$ cp /tftpboot/c3640-i-mz.120-7.XK1.bin ~jean/ Then, on the cisco do :- router> copy ftp://jean:xxxx@x.x.x.48/c3640-i-mz.120-7.XK1.bin flash: where you put your local account passwd after ftp://jean: Regards Andy > > This is the sample of /etc/inetd.conf: > --- > ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l > #telnet stream tcp nowait root /usr/libexec/telnetd telnetd > #shell stream tcp nowait root /usr/libexec/rshd rshd > #login stream tcp nowait root /usr/libexec/rlogind rlogind > #finger stream tcp nowait/3/10 nobody /usr/libexec/fingerd fingerd -s > #exec stream tcp nowait root /usr/libexec/rexecd rexecd > #uucpd stream tcp nowait root /usr/libexec/uucpd uucpd > #nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd > # run comsat as root to be able to print partial mailbox contents w/ biff, > # or use the safer tty:tty to just print that new mail has been received. > #comsat dgram udp wait tty:tty /usr/libexec/comsat comsat > #ntalk dgram udp wait tty:tty /usr/libexec/ntalkd ntalkd > tftp dgram udp wait root /usr/libexec/tftpd tftpd -l > -s /tftpboot > #bootps dgram udp wait root /usr/libexec/bootpd bootpd > --- > > where: > --- > %cd / > %ls -l > ... > drwxr-xr-x 2 nobody nobody 512 Mar 5 18:37 tftpboot > ... > --- > > > Regards, > Jean-Christophe. > > On Tue, 6 Mar 2001, Andy [TECC NOPS] wrote: > > > I always had these kinda problems both with > > FreeBSD, Linux, etc etc. Found various ways > > around them in the end but the best way is if > > you are running a version of IOS 12.0 or later > > on the Cisco then use the newer copy commands > > in IOS that allow ftp eg:- > > > > router> copy ftp://user:pass@box.whatever/config.cond startup-config > > > > much better than :- > > > > router> copy tftp startup-config > > > > Regards > > Andy > > > > > -----Original Message----- > > > From: owner-freebsd-net@FreeBSD.ORG > > > [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Alfred Perlstein > > > Sent: 05 March 2001 18:23 > > > To: Jean-Christophe Varaillon > > > Cc: freebsd-net@FreeBSD.ORG > > > Subject: Re: - TFTP: Time out - > > > > > > > > > * Jean-Christophe Varaillon [010305 10:17] wrote: > > > > > > > > +-----------+ +------------+ > > > > |FreeBSD 4.1|<--------->| Cisco 3640 | > > > > +-----------+ +------------+ > > > > > > > > I want to transfer a file from the FreeBSD machine to the Cisco. > > > > My machine is configured as a TFTP server and the cisco is > "configured" > > > > as a client. > > > > > > > > The TFTP communication is stopped because of a timeout. > > > > > > > > Why should I have a timeout ? > > > > > > Because afaik tftp has a really terrible client/server notion, > > > there's no good way to tell if a client has 'gone away'. Without > > > the timeout, if a client was to disappear the tftpd server would > > > hang around forever. > > > > > > > BUT, I can transfer a files from the Cisco to my machine witout any > > > > trouble. at this moment, the cisco is configured as a TFTP > > > Server, and I > > > > think that my machine also, but it reacts as a client. > > > > > > You should probably be able to fix this by changing the value of > > > "TIMEOUT" in /usr/src/libexec/tftpd/tftpd.c, then doing this in > > > /usr/src/libexec/tftpd: > > > > > > make ; make install > > > > > > -- > > > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > > > > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message