All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kapp" <infotrack@gmx.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] several guests with static ip-address
Date: Thu, 27 Oct 2005 14:31:30 +0200 (MEST)	[thread overview]
Message-ID: <8711.1130416290@www30.gmx.net> (raw)
In-Reply-To: Pine.LNX.4.61.0510262302330.29200@filer.marasystems.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1722 bytes --]

> On Wed, 26 Oct 2005, Michael Kapp wrote:
> 
> > OK, can you give me some hints how to do that?
> >
> > I've tested it with a tun/bridged setup, but it only work with one
> guest,
> > here is my configuration for the qemu-ifup script:
> 
> Each qemu gets it's own tun device, and you need to make sure your script 
> gets this proper...
> 
> I've never used any qemu-ifup scripts. Very much prefer using static tun 
> interfaces, and when I forget I usually set up the host configuration 
> manually as root while qemu is running..
> 
> > ...this works so far. But how can i get another guest into this subnet?
> 
> It's just about adding his tun device to the same bridge, and giving it 
> "link up"..

----

OK, this is the solution for the qemu-ifup scripts (or do it with static
interfaces):

guest1:

brctl addbr br0

ifconfig eth0 down
ifconfig eth0 0.0.0.0 promisc up
ifconfig tun1 0.0.0.0 promisc up
ifconfig br0 192.168.1.98 netmask 255.255.255.0 broadcast 192.168.1.255 up

brctl stp br0 off
brctl setfd br0 1
brctl sethello br0 1
brctl addif br0 eth0
brctl addif br0 tun1
route add default gw 192.168.1.1

--

guest2 (will be started after guest1 is up):

ifconfig tun2 0.0.0.0 promisc up

brctl addif br0 tun2

...and so on, for other guests...
----

That the two guests can communicate with each other, it is neccassary to
bring up the guests with a unique mac-address.

Thanks!

Regards 
Michael


> Regards
> Henrik
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++

  reply	other threads:[~2005-10-27 12:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25 20:35 [Qemu-devel] several guests with static ip-address Michael
2005-10-26  5:59 ` Henrik Nordstrom
2005-10-26  8:04   ` Michael Kapp
2005-10-26 21:05     ` Henrik Nordstrom
2005-10-27 12:31       ` Michael Kapp [this message]
2005-10-27 13:31         ` Mario Goppold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8711.1130416290@www30.gmx.net \
    --to=infotrack@gmx.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.