From: Chris Webb <chris@arachsys.com>
To: Michael Jinks <michael.jinks@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Trouble understanding net config options
Date: Thu, 16 Jul 2009 00:24:14 +0100 [thread overview]
Message-ID: <20090715232414.GO2003@arachsys.com> (raw)
In-Reply-To: <f02c30210907151617x2af5e3d6vd8280ace7207eeb@mail.gmail.com>
Michael Jinks <michael.jinks@gmail.com> writes:
> How do I make a guest use a specific tap? Quoting
> from my initial post, my -net options are:
>
> -net nic -net tap,name=tap11 -net nic -net tap,name=tap12
You want
-net nic,vlan=0 -net tap,vlan=0,ifname=tap11 -net nic,vlan=1 -net tap,vlan=1,ifname=tap12
to get the effect that (I think) you're looking for: one nic connected to
tap11 using vlan0 and one nic connected to tap12 using vlan1.
Without the vlan parameters, everything's on vlan0 so you get two nics and
two tap interfaces all connected together inside qemu on a single virtual
switch.
Best wishes,
Chris.
next prev parent reply other threads:[~2009-07-15 23:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 22:54 Trouble understanding net config options Michael Jinks
2009-07-15 23:05 ` Stephane Bakhos
2009-07-15 23:08 ` Michael Jinks
2009-07-15 23:12 ` Stephane Bakhos
2009-07-15 23:12 ` Andreas Plesner Jacobsen
2009-07-15 23:17 ` Michael Jinks
2009-07-15 23:24 ` Chris Webb [this message]
2009-07-15 23:41 ` Michael Jinks
2009-07-16 0:03 ` Charles Duffy
2009-07-15 23:48 ` Andreas Plesner Jacobsen
2009-07-15 23:07 ` Andreas Plesner Jacobsen
2009-07-15 23:22 ` Michael Jinks
2009-07-15 23:27 ` Stephane Bakhos
2009-07-15 23:35 ` Andreas Plesner Jacobsen
2009-07-15 23:42 ` Michael Jinks
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=20090715232414.GO2003@arachsys.com \
--to=chris@arachsys.com \
--cc=kvm@vger.kernel.org \
--cc=michael.jinks@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox