From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FzHNa-00054o-Qi for garchives@archives.gentoo.org; Sat, 08 Jul 2006 18:18:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k68IDlTS020558; Sat, 8 Jul 2006 18:13:47 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k68I1i2t024563 for ; Sat, 8 Jul 2006 18:01:44 GMT Received: by nf-out-0910.google.com with SMTP id b2so217323nfe for ; Sat, 08 Jul 2006 11:01:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dLna+FZzmnYufaap0wF/XtRWIBYw1fsXc7oxUWJ0t9jAxzEbxVi+nbZ4UHZpuxFQJbC3CuOQIYNv+gLHp6Lxtuxc9CXOqiy2uzV3Hm1UIEs/H4I/tPe4YkJvN9vDyyZnR5mkELNtalEzKwAXXSxL9st1RjKT3+Z+98QFQd8nPzU= Received: by 10.49.93.18 with SMTP id v18mr2389919nfl; Sat, 08 Jul 2006 11:01:44 -0700 (PDT) Received: by 10.49.7.1 with HTTP; Sat, 8 Jul 2006 11:01:44 -0700 (PDT) Message-ID: Date: Sat, 8 Jul 2006 15:01:44 -0300 From: "Claudinei Matos" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] tun/tap - ifconfig tun0 - device not found In-Reply-To: <20060708185305.badad17c.hilse@web.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_36234_10992636.1152381704119" References: <20060708185305.badad17c.hilse@web.de> X-Archives-Salt: bec91aaa-3055-48fa-90d1-5e6f95844e17 X-Archives-Hash: 960672d0fb554619594e9a99cde9bd1d ------=_Part_36234_10992636.1152381704119 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline tks for the help.. I was really thinking about give dummy interface a try but instead I did solved my problem using an lo alias like this: ifconfig lo:0 192.168.1.2 broadcast 192.168.1.2 netmask 255.255.255.255 supposing that eth0 is on the same network ;) what is funny is that on all LVS guides I'd read, they just mention the sequence: modprobe tun ifconfig tun0 x.x.x.x no one talk about initiate the tun device or to use some other software to do that. tks, claudinei matos On 7/8/06, Hans-Werner Hilse wrote: > > Hi, > > On Fri, 7 Jul 2006 19:04:41 -0300 > "Claudinei Matos" wrote: > > > I'm trying to use tun/tap to assign some ip to my server (since I'll > need it > > to my LVS solution) and I think it's a trivial task to put tun to work, > but > > I'm trying in 3 different machines (with 2 different kernels) and in > both > > they when I try to ifconfig tun0 I get the follow message: > > tun0: error fetching interface information: Device not found > > > > Well, I'd try to look if is something wrong with my kernel configuration > but > > is everything ok since it just need tun/tap support to be compiled (I > did > > tried both module and built-in). > > > > /dev/net/tun is a valid character device with 10, 200 (major/minor) > > ...and, is at first all you get by enabling TUN support in the kernel. > See /usr/src/linux/Documentation/networking/tuntap.txt for more > information about the ioctl() you have to issue in order to register a > tun network device (TUNSETIFF). The docs have a code example, too. > > Oh, and I think OpenVPN has inbuilt functionality to create or remove > tun network devices (independent from OpenVPNs other functionality). > > I've not completely understood what your usage scenario was, but maybe > a dummy network device is enough? > > -hwh > -- > gentoo-user@gentoo.org mailing list > ------=_Part_36234_10992636.1152381704119 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline tks for the help.. I was really thinking about give dummy interface a try but instead I did solved my problem using an lo alias like this:

ifconfig lo:0 192.168.1.2 broadcast 192.168.1.2 netmask 255.255.255.255

supposing that eth0 is on the same network ;)

what is funny is that on all LVS guides I'd read, they just mention the sequence:
modprobe tun
ifconfig tun0 x.x.x.x

no one talk about initiate the tun device or to use some other software to do that.

tks,

claudinei matos

On 7/8/06, Hans-Werner Hilse <hilse@web.de> wrote:
Hi,

On Fri, 7 Jul 2006 19:04:41 -0300
"Claudinei Matos" <claudineimatos@gmail.com> wrote:

> I'm trying to use tun/tap to assign some ip to my server (since I'll need it
> to my LVS solution) and I think it's a trivial task to put tun to work, but
> I'm trying in 3 different machines (with 2  different kernels) and in both
> they when I try to ifconfig tun0 I get the follow message:
> tun0: error fetching interface information: Device not found
>
> Well, I'd try to look if is something wrong with my kernel configuration but
> is everything ok since it just need tun/tap support to be compiled (I did
> tried both module and built-in).
>
> /dev/net/tun is a valid character device with 10, 200 (major/minor)

...and, is at first all you get by enabling TUN support in the kernel.
See /usr/src/linux/Documentation/networking/tuntap.txt for more
information about the ioctl() you have to issue in order to register a
tun network device (TUNSETIFF). The docs have a code example, too.

Oh, and I think OpenVPN has inbuilt functionality to create or remove
tun network devices (independent from OpenVPNs other functionality).

I've not completely understood what your usage scenario was, but maybe
a dummy network device is enough?

-hwh
--
gentoo-user@gentoo.org mailing list
------=_Part_36234_10992636.1152381704119-- -- gentoo-user@gentoo.org mailing list