Date: Mon, 11 Sep 2000 15:23:28 +0200 (CEST) From: Junichi Saito <j.saito@wanadoo.fr> To: Nik Clayton <nik@freebsd.org> Cc: Jaroshenko Serge <jaroshenko@mail.ru>, freebsd-newbies@FreeBSD.ORG Subject: Re: your mail Message-ID: <Pine.BSF.4.21.0009111516410.175-100000@momotaro.bsd.org> In-Reply-To: <20000910230708.A36061@canyon.nothing-going-on.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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<POINTTOPOINT,RUNNING,PROMISC,MULTICAST> 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<POINTOPOINT,RUNNING,PROMISC,MULTICAST> mtu 1500 > tun1: flags=8010<POINTOPOINT,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009111516410.175-100000>