Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2007 18:33:48 +0100
From:      "Alain G. Fabry" <alainfabry@belgacom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: creation of tap interface
Message-ID:  <20071123173348.GA41157@mail.pcextreme.nl>
In-Reply-To: <20071123105953.GJ66812@amilo.cenkes.org>
References:  <20071122214158.GA37193@mail.pcextreme.nl> <20071123105953.GJ66812@amilo.cenkes.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 23, 2007 at 01:59:55PM +0300, Andrew Pantyukhin wrote:
> On Thu, Nov 22, 2007 at 10:41:58PM +0100, Alain G. Fabry wrote:
> > 
> > Hi,
> > 
> > I'm setting up Qemu, have installed Ubuntu and Gentoo guests on
> > FreeBSD host but I would like to get the network interfaces to
> > work also.
> > 
> > I get the following error however when trying to create the tap
> > interfaces
> > 
> > FreeBSD# ifconfig tap create ifconfig: SIOCIFCREATE: Invalid
> > argument
> > 
> > What is the problem here?
> 
> The command should work as you typed it, but try this:
> # kldload if_tap
> # ifconfig tap0 create
>              ^^^

I actually tried that already aswell but it didn't work. So I added
device	tap
in the kernel, recompiled and still the same problem

FreeBSD# kldload if_tap
kldload: can't load if_tap: File exists
--> I guess because I compiled it in the kernel

FreeBSD# ifconfig tap0 create
ifconfig: SIOCIFCREATE: Invalid argument

FreeBSD# ifconfig tun0 create
ifconfig: SIOCIFCREATE: Invalid argument
--> get the same for a tun interface



> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071123173348.GA41157>