From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Webb Subject: Re: Trouble understanding net config options Date: Thu, 16 Jul 2009 00:24:14 +0100 Message-ID: <20090715232414.GO2003@arachsys.com> References: <20090715231219.GZ2455@nerd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Michael Jinks Return-path: Received: from alpha.arachsys.com ([91.203.57.7]:41685 "EHLO alpha.arachsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752750AbZGOX4Z (ORCPT ); Wed, 15 Jul 2009 19:56:25 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Michael Jinks 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.