From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQAdt-0004po-KM for qemu-devel@nongnu.org; Mon, 25 Apr 2005 16:57:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQAdr-0004pb-SK for qemu-devel@nongnu.org; Mon, 25 Apr 2005 16:57:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQAdr-0004bu-Oy for qemu-devel@nongnu.org; Mon, 25 Apr 2005 16:57:19 -0400 Received: from [213.21.137.89] (helo=mail.zipman.it) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQAg1-0003CF-Ro for qemu-devel@nongnu.org; Mon, 25 Apr 2005 16:59:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.zipman.it (Postfix) with ESMTP id 746091C006 for ; Mon, 25 Apr 2005 22:55:59 +0200 (CEST) Received: from mail.zipman.it ([127.0.0.1]) by localhost (zipmanfw [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02611-03-3 for ; Mon, 25 Apr 2005 22:55:55 +0200 (CEST) Received: from [192.168.0.20] (unknown [192.168.0.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.zipman.it (Postfix) with ESMTP id 95B681C005 for ; Mon, 25 Apr 2005 22:55:55 +0200 (CEST) Message-ID: <426D595B.7010208@zipman.it> Date: Mon, 25 Apr 2005 22:55:55 +0200 From: Flavio Visentin MIME-Version: 1.0 Subject: Re: [Qemu-devel] Two network interfaces ? References: <3727392705042412507e4cc38@mail.gmail.com> <2faa4b5cea2dd3cad16854fe6bf9ea8b@teleline.es> <372739270504241423263d76bb@mail.gmail.com> In-Reply-To: <372739270504241423263d76bb@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | Thanks, I just figured out how to do this ;-) | Here is my /etc/qemu-ifup script in case someone reads this thread : A little more generic, if you want more nics or use more than 1 VM. #!/bin/sh INTERF="$1" NUM=$(echo $INTERF | sed 's/[^0-9]//g') sudo /sbin/ifconfig $INTERF 192.168.$NUM.1 - -- Flavio Visentin | \|||/ | @/0.0\@ | \ - / +------------------oOOo---oOOo------------------ There are only 10 types of people in this world: those who understand binary, and those who don't. GPG Key: http://www.zipman.it/gpgkey.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCbVlbusUmHkh1cnoRApcSAJ0dEQo3OuAuHFps/1NuT46LX3PMnACfYuHG vILcsQOj8lFN9ViCAZNL58c= =g/cM -----END PGP SIGNATURE-----