Re: 2nd try : tap SIOCIFCREATE failure

2007-11-29 Thread Yuri Pankov
On Wed, Nov 28, 2007 at 03:00:35PM +0100, Alain G. Fabry wrote:
> 
> When creating the tap interface, my system gives the following
> 
> FreeBSD# uname -a
> FreeBSD FreeBSD 6.2-RELEASE
> FreeBSD# kldstat
> Id Refs AddressSize Name
>  1   11 0xc040 6f7554   kernel
>  21 0xc0af8000 140c0snd_hda.ko
>  32 0xc0b0d000 479a8sound.ko
>  41 0xc0b55000 1d278kqemu.ko
>  51 0xc0b73000 8ea4 aio.ko
>  61 0xc4f44000 9000 if_bridge.ko
>  71 0xc5079000 16000linux.ko
>  81 0xc60ce000 4000 if_tap.ko
> FreeBSD# ifconfig tap0 create
> ifconfig: SIOCIFCREATE: Invalid argument
> 
> 
> Trying to get this running so my qemu clients have network access...
> 
> Thanks in advance,
> 
> Alain

Hrm, getting the same on 5.5/6.2, though it works on 7.0/-CURRENT. Try
building `device tap' in kernel, and if it fails, I'd ask [EMAIL PROTECTED]


HTH,
-- 
Yuri Pankov <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 2nd try : tap SIOCIFCREATE failure

2007-11-28 Thread Philip M. Gollucci
Alain G. Fabry wrote:
> When creating the tap interface, my system gives the following
> 
> FreeBSD# uname -a
> FreeBSD FreeBSD 6.2-RELEASE
> FreeBSD# kldstat
> Id Refs AddressSize Name
>  1   11 0xc040 6f7554   kernel
>  21 0xc0af8000 140c0snd_hda.ko
>  32 0xc0b0d000 479a8sound.ko
>  41 0xc0b55000 1d278kqemu.ko
>  51 0xc0b73000 8ea4 aio.ko
>  61 0xc4f44000 9000 if_bridge.ko
>  71 0xc5079000 16000linux.ko
>  81 0xc60ce000 4000 if_tap.ko
> FreeBSD# ifconfig tap0 create
> ifconfig: SIOCIFCREATE: Invalid argument
I never had to manually issue the create command, you should just see it
in the ifconfig -a output.

When qemu starts, "Opened by process id " should be in the ifconfig
output by the tap0 interface.

You'll need to use the /etc/qemuifup or whatever its called, I forget.
Or the command line options to set networking info like netmask, ip,
gateway for the tap.


-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 2nd try : tap SIOCIFCREATE failure

2007-11-28 Thread Heiko Wundram (Beenic)
Am Mittwoch, 28. November 2007 15:00:35 schrieb Alain G. Fabry:
> FreeBSD# uname -a
> FreeBSD FreeBSD 6.2-RELEASE
> FreeBSD# kldstat
> Id Refs AddressSize Name
>  1   11 0xc040 6f7554   kernel
>  21 0xc0af8000 140c0snd_hda.ko
>  32 0xc0b0d000 479a8sound.ko
>  41 0xc0b55000 1d278kqemu.ko
>  51 0xc0b73000 8ea4 aio.ko
>  61 0xc4f44000 9000 if_bridge.ko
>  71 0xc5079000 16000linux.ko
>  81 0xc60ce000 4000 if_tap.ko
> FreeBSD# ifconfig tap0 create
> ifconfig: SIOCIFCREATE: Invalid argument

Try:

ifconfig tap create

-- 
Heiko Wundram
Product & Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"