From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 10:05:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56278106564A for ; Thu, 10 Apr 2008 10:05:35 +0000 (UTC) (envelope-from andrew@farnborough.darq.net) Received: from farnborough.darq.net (fab.darq.net [82.136.41.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1858FC32 for ; Thu, 10 Apr 2008 10:05:34 +0000 (UTC) (envelope-from andrew@farnborough.darq.net) Received: from localhost (localhost [127.0.0.1]) by farnborough.darq.net (Postfix) with ESMTP id 3C1BB1D088; Thu, 10 Apr 2008 11:09:01 +0100 (BST) X-Virus-Scanned: amavisd-new at darq.net Received: from farnborough.darq.net ([127.0.0.1]) by localhost (farnborough.darq.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LLXKDjbBsiHS; Thu, 10 Apr 2008 11:08:57 +0100 (BST) Received: by farnborough.darq.net (Postfix, from userid 1057) id 05AA71D0FD; Thu, 10 Apr 2008 11:08:57 +0100 (BST) Date: Thu, 10 Apr 2008 11:08:57 +0100 From: Andrew Cid To: Jim Stapleton Message-ID: <20080410100856.GA96607@farnborough.darq.net> References: <80f4f2b20804081710k5af28466k17f3d38cdd6e344a@mail.gmail.com> <20080409091859.GA14939@farnborough.darq.net> <80f4f2b20804091825y2a37bddehd68e91f57426dc04@mail.gmail.com> <20080410093625.GA95076@farnborough.darq.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080410093625.GA95076@farnborough.darq.net> User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: QEMU networking quirkiness on 7.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 10:05:35 -0000 > Yes, this needs to be setup on the host system. The way a bridge is > configured has changed on 7. Here are the steps assuming that your > external interface is em0: > > # ifconfig tap0 create > # ifconfig tap0 up > # ifconfig em0 up > # ifconfig bridge0 create > # ifconfig bridge0 addm tap0 addm em0 > > Now tap0 and em0 are bridged together. You should configure your > external IP on the bridge instead of em0 as you normally would. If you > use DHCP then: > > # dhclient bridge0 Forgot to add that you'll also need to create the /etc/qemu-ifup script, otherwise this won't work. That's what the script should look like: #!/bin/sh ifconfig ${1} up Don't forget to make it executable: # chmod 755 /etc/qemu-ifup > And start qemu: > > # qemu -boot c -net nic -net tap -hda > > Now the VM should be able to see your LAN and get an IP from DHCP (if > that's what you use on your LAN) -- accid.net