From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DPodk-00049k-SD for qemu-devel@nongnu.org; Sun, 24 Apr 2005 17:27:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DPodh-00048L-Qp for qemu-devel@nongnu.org; Sun, 24 Apr 2005 17:27:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPodh-0003cc-Jg for qemu-devel@nongnu.org; Sun, 24 Apr 2005 17:27:41 -0400 Received: from [64.233.162.205] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DPocl-0005Se-2E for qemu-devel@nongnu.org; Sun, 24 Apr 2005 17:26:43 -0400 Received: by zproxy.gmail.com with SMTP id 8so1014572nzo for ; Sun, 24 Apr 2005 14:23:25 -0700 (PDT) Message-ID: <372739270504241423263d76bb@mail.gmail.com> Date: Sun, 24 Apr 2005 17:23:25 -0400 From: Aziz Kezzou Subject: Re: [Qemu-devel] Two network interfaces ? In-Reply-To: <2faa4b5cea2dd3cad16854fe6bf9ea8b@teleline.es> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3727392705042412507e4cc38@mail.gmail.com> <2faa4b5cea2dd3cad16854fe6bf9ea8b@teleline.es> Reply-To: Aziz Kezzou , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Natalia Portillo Cc: qemu-devel@nongnu.org > -nics 2 >=20 > El 24/04/2005, a las 20:50, Aziz Kezzou escribi=F3: >=20 > > Hi all, > > I am using QEMU with tun/tap on a linux host. > > I would like to have qemu emulate two network interfaces for the guest > > (FreeBSD). > > > > Any hints on how to do that ? > > Thks, > > -aziz > > > > Thanks, I just figured out how to do this ;-) Here is my /etc/qemu-ifup script in case someone reads this thread : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D #!/bin/sh if [ "$1" =3D "tun0" ] then=09 sudo /sbin/ifconfig $1 192.168.0.1 else sudo /sbin/ifconfig $1 192.168.1.1 fi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Greetings, -aziz