Date: Sat, 14 Jan 2006 14:30:29 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: David Leimbach <leimy2k@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: tap interfaces on FreeBSD 6.0 Message-ID: <20060114223029.GA10293@odin.ac.hmc.edu> In-Reply-To: <3e1162e60601141157k2d89204eg379d39edeb13af0b@mail.gmail.com> References: <3e1162e60601141157k2d89204eg379d39edeb13af0b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 14, 2006 at 11:57:40AM -0800, David Leimbach wrote: > On a newly installed FBSD 6.0 system I did the following to try to create= a > tap0 interface. >=20 > opty1# cat /dev/null > /dev/tap0 > /dev/tap0: Operation not supported >=20 > I repeated the above about 5 times just to see if it changed, got the same > result. >=20 > Then > opty1# ifconfig tap0 create > ifconfig: SIOCIFCREATE: Invalid argument >=20 > then I did another: > opty1# cat /dev/null > /dev/tap0 >=20 > and got > tap0: Ethernet address: 00:bd:bb:d2:16:00 >=20 > and now I have tap0. > > What's the correct way to create this thing the first time on devfs? I'm guessing what happened here is that tap is not compiled into your kernel so the attempts to crate it via dev cloning failed. ifconfig indescriminantly attempts to kld_load if_<iftype>.ko where iftype is ^([^0-9-]*) from the first arugment when the first argument isn't an existing device. You need to load the module or compile in support. > It seems like setting this up might be tricky for a qemu configuration > script. >=20 > I had been using the "vde" port to set up qemu in the past but now the qe= mu > port has a new version that doesn't support the syntax of the older "vde" > port, and I'm not up to moving vde to the latest version for FreeBSD by > myself [it's chock full of linuxism which is probbaly fine since it's from > UML I think] >=20 > Any advice? I'd like to expose qemu machines on my local network for ssh > access into them. IIRC, you don't need to create the device nodes at all. I think qemu just tries to open /dev/tap# from 0-9. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDyXuDXY6L6fI4GtQRAkE7AJ9aehklwsRpZiLEyW2FJyQayUlCEACgjIdJ VHXy1fFB3+yhtnfPo3oPM5c= =r7dH -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060114223029.GA10293>