All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: Jan Kiszka <jan.kiszka@web.de>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible?
Date: Wed, 23 Feb 2011 15:47:23 +0100	[thread overview]
Message-ID: <201102231547.23804.arnd@arndb.de> (raw)
In-Reply-To: <alpine.LFD.2.02.1102230720590.27714@bbs.intern>

On Wednesday 23 February 2011, Gerhard Wiesinger wrote:
> After some further tests and looking at the iproute ip and kernel code I 
> finally gave up because I thing such a setup it is not possible without 
> breaking up/reconfiguring eth0. When I have to reconfigure eth0 I think a 
> better approach is to configure a bridge which I finally did and works 
> well.
> 
> I tried to explain/document the macvtap/macvlan concepts and limitations 
> below. Please comment on it whether this is true or false.
> 
> macvtap/macvlan driver concepts and limitations:
> 1.) macvlan driver adds a MAC address to a lower interface device where 
> the actual macvlanx device is based on
> 2.) macvtap driver is based on macvlan driver and macvtap driver adds 
> additional functionality of interface <=> external program communication 
> with stdin/stdout channel.
> 3.) Limitations: macvtap/macvlan based devices can only communicate with 
> childs based on the same lower device (e.g. eth0 in this sample) but not 
> to the lower device itself, only to the outside world of the interface

Correct.

> finally this makes the macvlan/macvtap approach useless because main eth0 
> interface must still be broken in the chain and reconfigured which was 
> against the requirements that eth0 should not be touched and reconfigured!

Yes, that is unfortunate, but it's the same that you'd get with a bridge
device: 
When you have a bridge on top of eth0, you can no longer assign an IP
address to eth0 and let it communicate with the virtual ports on the
bridge. You need to instead set the IP address on the bridge itself.

Macvlan is slightly better because it allows you to have multiple
host devices that can each have their own MAC/IP address, unlike
the bridge, but of course it can not be connected to anything else
besides macvlan or macvtap ports.

	Arnd

      parent reply	other threads:[~2011-02-23 14:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-19 19:32 [Qemu-devel] Network bridging without adding bridge with brctl, possible? Gerhard Wiesinger
2011-02-20  9:44 ` [Qemu-devel] " Jan Kiszka
2011-02-20 10:19   ` Gerhard Wiesinger
2011-02-20 11:19     ` Jan Kiszka
2011-02-20 21:28     ` Arnd Bergmann
2011-02-21  6:12       ` Gerhard Wiesinger
2011-02-20 12:49   ` Gerhard Wiesinger
2011-02-20 14:15     ` Jan Kiszka
2011-02-20 15:19       ` Gerhard Wiesinger
2011-02-20 17:39         ` Jan Kiszka
2011-02-20 20:03           ` Gerhard Wiesinger
2011-02-20 21:33             ` Arnd Bergmann
2011-02-21  6:40               ` Gerhard Wiesinger
2011-02-21  8:44                 ` Jan Kiszka
2011-02-21 12:07                   ` Arnd Bergmann
2011-02-23  6:38                     ` Gerhard Wiesinger
2011-02-23 12:53                       ` Jan Kiszka
2011-02-24  6:49                         ` Gerhard Wiesinger
2011-02-24  7:50                           ` Jan Kiszka
2011-02-24  8:00                             ` Arnd Bergmann
2011-02-23 14:47                       ` Arnd Bergmann [this message]

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=201102231547.23804.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=jan.kiszka@web.de \
    --cc=lists@wiesinger.com \
    --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.