From: Jan Kiszka <jan.kiszka@web.de>
To: Rob Landley <rob@landley.net>
Cc: blauwirbel@gmail.com, Vincent Palatin <vpalatin@chromium.org>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] -net interface association behavior change in current -git.
Date: Fri, 13 May 2011 08:39:31 +0200 [thread overview]
Message-ID: <4DCCD223.90504@web.de> (raw)
In-Reply-To: <4DCC8E21.3030405@landley.net>
[-- Attachment #1: Type: text/plain, Size: 2340 bytes --]
On 2011-05-13 03:49, Rob Landley wrote:
> On 05/12/2011 08:19 PM, Vincent Palatin wrote:
>>>> First of all, as you have 2 totally separated subnets in your setup, I
>>>> think your command-line should use "vlan=" parameter to isolate them,
>>>> else you will end up with some random routing/broadcasting (and random
>>>> tends to change over time).
>>>
>>> Does the kernel need some sort of vlan support compiled into it for this
>>> to work, or can the kernel not care?
>>
>> You don't need anything in your kernel, this is for Qemu network layer
>> configuration.
>
> Oh good. (The kernel has a couple different VLAN config options, plus
> cisco has vlan stuff in its routers... I've been trying not to get any
> of this complexity on me.)
>
>>>> In my understanding, the Linux kernel might assign interface number
>>>> depending on the order the interfaces are appearing.
>>>
>>> It's going in PCI bus order. And the _interfaces_ are still happily in
>>> PCI bus order both before and after this commit. What's changing is the
>>> association between interface and -net user or -net tap.
>>>
>>> The first one, with macaddr 11:11:11, is always eth0. But before the
>>> patch, eth0 is -net user, and after the patch eth0 is -net tap.
>>
>> So, did you try the vlan parameter which is supposed to associate each
>> interface with the proper thing (IMO the command line order should not
>> have anything to do with it) ?
>
> Apparently you cannot stick a vlan on -redir, and if you do the error
> message is a bit funky (cannot initialize -net user). Good to know...
>
> Yup, that fixed it. Thanks.
>
> By the way, does -redir only apply to -net user?
-redir (like all the other free-standing usernet switches) is legacy as
it can only be applied to a single usernet instance. And it's highly
confusing to which it refers. That's also documented in the man page.
> Actually, reading qemu
> --help it looks like I should be using hostfwd= but the documentation on
> that is REALLY WEIRD:
>
> This option can not be given multiple times, but multiple rules may
> be combined.
Where did you find this? A quick grep did not reveal the location to me.
qemu-options.hx states it clearly:
@item hostfwd=[tcp|udp]:
[...]
This option can be given multiple times.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next prev parent reply other threads:[~2011-05-13 6:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-12 2:39 [Qemu-devel] -net interface association behavior change in current -git Rob Landley
2011-05-12 13:20 ` Vincent Palatin
2011-05-13 1:10 ` Rob Landley
2011-05-13 1:19 ` Vincent Palatin
2011-05-13 1:49 ` Rob Landley
2011-05-13 6:39 ` Jan Kiszka [this message]
2011-05-13 10:31 ` Rob Landley
2011-05-13 10:57 ` Jan Kiszka
2011-05-13 6:15 ` Brad Hards
2011-05-12 14:10 ` Markus Armbruster
2011-05-13 1:48 ` Rob Landley
2011-05-13 6:54 ` Markus Armbruster
2011-05-13 10:34 ` Rob Landley
2011-05-13 12:19 ` Markus Armbruster
2011-05-13 21:45 ` Rob Landley
2011-05-16 14:12 ` Markus Armbruster
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=4DCCD223.90504@web.de \
--to=jan.kiszka@web.de \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rob@landley.net \
--cc=vpalatin@chromium.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.