From owner-freebsd-net@FreeBSD.ORG Sat Jan 14 22:30:34 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90D4016A420 for ; Sat, 14 Jan 2006 22:30:34 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EE2643D6B for ; Sat, 14 Jan 2006 22:30:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k0EMUTig010801; Sat, 14 Jan 2006 14:30:29 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k0EMUT5p010800; Sat, 14 Jan 2006 14:30:29 -0800 Date: Sat, 14 Jan 2006 14:30:29 -0800 From: Brooks Davis To: David Leimbach Message-ID: <20060114223029.GA10293@odin.ac.hmc.edu> References: <3e1162e60601141157k2d89204eg379d39edeb13af0b@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <3e1162e60601141157k2d89204eg379d39edeb13af0b@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-net@freebsd.org Subject: Re: tap interfaces on FreeBSD 6.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2006 22:30:34 -0000 --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_.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--