qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Two network interfaces ?
@ 2005-04-24 19:50 Aziz Kezzou
  2005-04-24 20:27 ` Natalia Portillo
  0 siblings, 1 reply; 5+ messages in thread
From: Aziz Kezzou @ 2005-04-24 19:50 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Two network interfaces ?
  2005-04-24 19:50 [Qemu-devel] Two network interfaces ? Aziz Kezzou
@ 2005-04-24 20:27 ` Natalia Portillo
  2005-04-24 21:23   ` Aziz Kezzou
  0 siblings, 1 reply; 5+ messages in thread
From: Natalia Portillo @ 2005-04-24 20:27 UTC (permalink / raw)
  To: Aziz Kezzou, qemu-devel

-nics 2

El 24/04/2005, a las 20:50, Aziz Kezzou escribió:

> 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
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Two network interfaces ?
  2005-04-24 20:27 ` Natalia Portillo
@ 2005-04-24 21:23   ` Aziz Kezzou
  2005-04-25 20:55     ` Flavio Visentin
  0 siblings, 1 reply; 5+ messages in thread
From: Aziz Kezzou @ 2005-04-24 21:23 UTC (permalink / raw)
  To: Natalia Portillo; +Cc: qemu-devel

> -nics 2
> 
> El 24/04/2005, a las 20:50, Aziz Kezzou escribió:
> 
> > 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 :
===================================================
#!/bin/sh
if [ "$1" = "tun0" ]
then	
sudo /sbin/ifconfig $1 192.168.0.1
else
sudo /sbin/ifconfig $1 192.168.1.1
fi
====================================================

Greetings,
-aziz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Two network interfaces ?
  2005-04-24 21:23   ` Aziz Kezzou
@ 2005-04-25 20:55     ` Flavio Visentin
  2005-04-26 21:27       ` Ross Kendall Axe
  0 siblings, 1 reply; 5+ messages in thread
From: Flavio Visentin @ 2005-04-25 20:55 UTC (permalink / raw)
  To: qemu-devel

-----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-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Two network interfaces ?
  2005-04-25 20:55     ` Flavio Visentin
@ 2005-04-26 21:27       ` Ross Kendall Axe
  0 siblings, 0 replies; 5+ messages in thread
From: Ross Kendall Axe @ 2005-04-26 21:27 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

Flavio Visentin wrote:
> | 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.
> 

VDE (http://vde.sf.net) is IMHO the best way to do multiple VMs. Whether
it's suitable for the OP is anybody's guess.

Ross


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-26 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-24 19:50 [Qemu-devel] Two network interfaces ? Aziz Kezzou
2005-04-24 20:27 ` Natalia Portillo
2005-04-24 21:23   ` Aziz Kezzou
2005-04-25 20:55     ` Flavio Visentin
2005-04-26 21:27       ` Ross Kendall Axe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).