From owner-freebsd-net Tue Mar 6 3:27:31 2001 Delivered-To: freebsd-net@freebsd.org Received: from brunel.uk1.vbc.net (brunel.uk1.vbc.net [194.207.2.8]) by hub.freebsd.org (Postfix) with ESMTP id 01FCB37B719 for ; Tue, 6 Mar 2001 03:27:24 -0800 (PST) (envelope-from jcv@vbc.net) Received: from localhost (jcv@localhost) by brunel.uk1.vbc.net (8.11.0/8.11.0) with ESMTP id f26BRFC52507; Tue, 6 Mar 2001 11:27:15 GMT X-Authentication-Warning: brunel.uk1.vbc.net: jcv owned process doing -bs Date: Tue, 6 Mar 2001 11:27:15 +0000 (GMT) From: Jean-Christophe Varaillon X-Sender: jcv@brunel.uk1.vbc.net To: "Andy [TECC NOPS]" Cc: Alfred Perlstein , freebsd-net@FreeBSD.ORG Subject: RE: - TFTP: Time out - In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I precise that I can download file from Router to my FreeBSD machine and not from my FreeBSD machine to the Cisco router. TFTP Methode: --- Router#copy tftp flash Address or name of remote host [x.x.x.48]? Source filename [tftpboot/c3640-i-mz.120-7.XK1.bin]? Destination filename [c3640-i-mz.120-7.XK1.bin]? Accessing tftp://x.x.x.48/tftpboot/c3640-i-mz.120-7.XK1.bin... %Error opening tftp://x.x.x.48/tftpboot/c3640-i-mz.120-7.XK1.bin (Timed out) Router# --- 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# --- 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