Date: Tue, 6 Mar 2001 11:27:15 +0000 (GMT) From: Jean-Christophe Varaillon <jcv@vbc.net> To: "Andy [TECC NOPS]" <andy@tecc.co.uk> Cc: Alfred Perlstein <bright@wintelcom.net>, freebsd-net@FreeBSD.ORG Subject: RE: - TFTP: Time out - Message-ID: <Pine.BSF.4.10.10103061116460.51397-100000@brunel.uk1.vbc.net> In-Reply-To: <NDBBKOKIGKLFGGPFHCGBGEONCKAA.andy@tecc.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jcv@vbc.net> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10103061116460.51397-100000>