From owner-freebsd-current Wed Jul 26 8:46:28 2000 Delivered-To: freebsd-current@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id BED0937B932; Wed, 26 Jul 2000 08:46:17 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13HT56-0006Qf-00; Wed, 26 Jul 2000 16:26:48 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13HT56-0003BN-00; Wed, 26 Jul 2000 16:26:48 +0100 Date: Wed, 26 Jul 2000 16:26:48 +0100 From: Ben Smithurst To: Sheldon Hearn Cc: brian@FreeBSD.org, current@FreeBSD.org Subject: Re: if_tun.ko seems broken Message-ID: <20000726162648.D28657@strontium.scientia.demon.co.uk> References: <281.964607587@axl.ops.uunet.co.za> <616.964609698@axl.ops.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <616.964609698@axl.ops.uunet.co.za> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn wrote: > On Wed, 26 Jul 2000 12:33:07 +0200, Sheldon Hearn wrote: > >> Does this have anything to do with your recent change to if_tun.c? > > Nope. I've reverted rev 1.75 of if_tun.c and the behaviour persists. > Someone locally insists that the ifconfig line > > ifconfig tun0 inet 10.0.0.1 > > should work. Any ideas? I think the device needs to be opened before you can do anything with it. PPP of course does this for you, but if you want to ifconfig it yourself you might try something like ``dd if=/dev/tun0 of=/dev/null count=0'' first. That makes ifconfig work for me at least, I'm not sure if it's the "right" way. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message