From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYOCp-00049A-2E for qemu-devel@nongnu.org; Wed, 18 May 2005 09:03:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYOCn-00048K-LZ for qemu-devel@nongnu.org; Wed, 18 May 2005 09:03:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYOCm-0003yc-Fa for qemu-devel@nongnu.org; Wed, 18 May 2005 09:03:20 -0400 Received: from [65.74.133.9] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DYODc-0006Jd-Qp for qemu-devel@nongnu.org; Wed, 18 May 2005 09:04:13 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Dynamic bridging Date: Wed, 18 May 2005 13:55:50 +0100 References: <20050518005250.PPLV11036.lakermmtao01.cox.net@smtp.east.cox.net> In-Reply-To: <20050518005250.PPLV11036.lakermmtao01.cox.net@smtp.east.cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505181355.50450.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, sol10x86@cox.net On Wednesday 18 May 2005 01:52, Ben Taylor wrote: > I was trying to get the bridging working (with the help > of pbrook and nox- on the irc #qemu channel) and > eventually got it working under Sun JDS/3 (Suse 9.1) > after adding the bridge-util's rpm. > > After some experimentation, I found that once I setup > the bridge on my primary interface, (eth0) and I used > the qemu-ifup script, the tunnels would automatcially > attach to the bridge, and when qemu shuts down, they > automatically go away. > > primary-ifup > Code: > > #!/bin/sh > /sbin/brctl addbr br0 > /sbin/ifconfig eth0 0.0.0.0 promisc up > /sbin/ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast \ > 192.168.1.255 up This line should be changes to ifconfig br0 ...., and moved to the end of the script. You shouldn't give the component devices an IP address, just the br interface. Using the component interfaces directly is liable to lead to weird problems on the host. Also, if youdon't want to use a static IP, you can just run dhclient (or equivalent) on the br0 interface as normal. My setup looks someting like: /sbin/brctl addbr br0 /sbin/ifconfig eth0 0.0.0.0 up /sbin/brctl addif br0 eth0 dhclient br0 Paul