From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BulTL-0003U3-13 for qemu-devel@nongnu.org; Wed, 11 Aug 2004 01:16:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BulTJ-0003Tr-TY for qemu-devel@nongnu.org; Wed, 11 Aug 2004 01:16:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BulTH-0003Tn-JJ for qemu-devel@nongnu.org; Wed, 11 Aug 2004 01:16:21 -0400 Received: from [144.140.70.14] (helo=gizmo04bw.bigpond.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1BulPN-0004MC-ME for qemu-devel@nongnu.org; Wed, 11 Aug 2004 01:12:18 -0400 Message-ID: <4119AA28.9020200@migasia.com> Date: Wed, 11 Aug 2004 15:10:00 +1000 From: "Jesus M. Salvo Jr." MIME-Version: 1.0 Subject: Re: [Qemu-devel] Help with tun/tap with qemu References: <20040810150655.25395.qmail@webmail-au.server-secure.com> <4118EEBE.1020009@fabianowski.de> <1092163933.49245.2.camel@pcgem.rdg.cyberkinetica.com> <4119885E.3020002@migasia.com> In-Reply-To: <4119885E.3020002@migasia.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Jesus M. Salvo Jr. wrote: >> > OK, I have now setup a bridge on linux as follows. > On the host OS, I have the following script and ran it as root: > > #!/bin/sh > /usr/sbin/brctl addbr br0 > /sbin/ifconfig eth2 0.0.0.0 promisc up > /sbin/ifconfig tap0 0.0.0.0 promisc up > /sbin/ifconfig br0 192.168.0.199 netmask 255.255.255.0 broadcast > 192.168.0.255 up > /usr/sbin/brctl stp br0 off > /usr/sbin/brctl setfd br0 1 > /usr/sbin/brctl sethello br0 1 > /usr/sbin/brctl addif br0 eth2 > /usr/sbin/brctl addif br0 tap0 > /sbin/route add default gw 192.168.0.1 > Works now. Changed references of tap0 to tun0 in the above script. I have to run the script just after running qemu, since the tun0 interface is not created until qemu is ran.