From owner-freebsd-newbies Mon Sep 11 6:23:40 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from villosa.wanadoo.fr (smtp-abo-1.wanadoo.fr [193.252.19.122]) by hub.freebsd.org (Postfix) with ESMTP id A3D0337B42C; Mon, 11 Sep 2000 06:23:37 -0700 (PDT) Received: from Mix-Toulouse-203-228.abo.wanadoo.fr (193.250.3.228) by villosa.wanadoo.fr; 11 Sep 2000 15:23:35 +0200 Date: Mon, 11 Sep 2000 15:23:28 +0200 (CEST) From: Junichi Saito X-Sender: junichi@momotaro.bsd.org To: Nik Clayton Cc: Jaroshenko Serge , freebsd-newbies@FreeBSD.ORG Subject: Re: your mail In-Reply-To: <20000910230708.A36061@canyon.nothing-going-on.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Indeed, 'cat < /dev/tun0' gives me tun0 entry. I now see I misunderstood what handbook says about tunnel divice. Thank you. j. On Sun, 10 Sep 2000, Nik Clayton wrote: > On Mon, Sep 04, 2000 at 09:29:43AM +0200, Junichi Saito wrote: > > In my case, ppp as well as tun are compiled in the kernel. When the > > command 'ifconfig -a' is run, they should show up: so dose indeed ppp0 but > > not tun0. > > The tun? interfaces are created when a device tries to read from them. > > For example, I currently have tun0, because of my PPP link. > > # ifconfig -a | grep tun > tun0: flags=8150 mtu 1500 > > If I now try and read from /dev/tun1, using cat(1), the interface tun1 > will be created. > > # cat < /dev/tun1 > ^C > # ifconfig -a | grep tun > tun0: flags=8150 mtu 1500 > tun1: flags=8010 mtu 1500 > > For you, tun0 will be created when you run a program that tries to use it. > > N > -- > Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. > Telephone line, $24.95 a month. Software, free. USENET transmission, > hundreds if not thousands of dollars. Thinking before posting, priceless. > Somethings in life you can't buy. For everything else, there's MasterCard. > -- Graham Reed, in the Scary Devil Monastery > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message