From owner-freebsd-net Tue Mar 6 3:10: 7 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 B0EAD37B719 for ; Tue, 6 Mar 2001 03:09:55 -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 14aFLj-0006Ou-00; Tue, 6 Mar 2001 11:09:51 +0000 Received: from [195.217.37.155] (helo=southampton) by fw-smtp.tecc.co.uk with smtp (Exim 2.12 #3) id 14aFJi-00044P-00; Tue, 6 Mar 2001 11:07:46 +0000 From: "Andy [TECC NOPS]" To: "Jean-Christophe Varaillon" Cc: Subject: RE: - TFTP: Time out - Date: Tue, 6 Mar 2001 11:14:14 -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 > -----Original Message----- > From: Jean-Christophe Varaillon [mailto:jcv@vbc.net] > Sent: 06 March 2001 10:57 > Subject: RE: - TFTP: Time out - > > > Hi Andy, > > Do you know if it is possible to creat a blank file on the directory > Flash: of a cisco router 3640 ? I think "router> copy null flash:filename" should do the trick. Make use of the cisco online help. For example, using the ? char as below will provide you with most of what you need on ciscos. router> copy ? /erase Erase destination file system. flash: Copy from flash: file system ftp: Copy from ftp: file system null: Copy from null: file system nvram: Copy from nvram: file system rcp: Copy from rcp: file system running-config Copy from current system configuration slot0: Copy from slot0: file system slot1: Copy from slot1: file system startup-config Copy from startup configuration system: Copy from system: file system tftp: Copy from tftp: file system xmodem: Copy from xmodem: file system ymodem: Copy from ymodem: file system router> copy null ? flash: Copy to flash: file system ftp: Copy to ftp: file system lex: Copy to lex: file system null: Copy to null: file system nvram: Copy to nvram: file system rcp: Copy to rcp: file system running-config Update (merge with) current system configuration startup-config Copy to startup configuration system: Copy to system: file system tftp: Copy to tftp: file system router> copy null I used one of the Cisco 3660's here for these examples (rather than a 3640 you have) but the results will be pretty much the same. Regards Andy > > 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