creation of tap interface

Alain G. Fabry alainfabry at belgacom.net
Fri Nov 23 09:36:42 PST 2007


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list