From: Alberto =?iso-8859-1?q?Trevi=F1o?= Subject: Re: KVM Management : Public Bridge setup Date: Mon, 11 Aug 2008 21:12:12 -0600 Message-ID: <200808112112.12363.alberto@byu.edu> References: <618716.82336.qm@web35805.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: KVM List To: "jdsw2002@yahoo.com" Return-path: Received: from baler.byu.edu ([128.187.16.45]:9161 "EHLO webmail-int.byu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbYHLDMI (ORCPT ); Mon, 11 Aug 2008 23:12:08 -0400 In-Reply-To: <618716.82336.qm@web35805.mail.mud.yahoo.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Friday 08 August 2008 08:18:26 pm jd wrote: > The /etc/qemu-if script seems to be taking the interface as a > parameter, is there a way to pass the bridge name to the script as well. > Thus from the command line one can pass the bridge that one whats to > attach to. (One can potentially one script for each bridge and pass the > script name to qemu... but it seems bit unnecessary.) I name my tap devices (using ifname=...) as follows: tap.br0.05.1 where tap -- this is a tap device br0 -- the name of the bridge 05 -- the ID of the VM (each of my VM's has a unique numeric ID) 1 -- The NIC # on the VM (1, 2, 3, or 4 depending on # of NIC's) Then on my scripts I can extract the bridge name and use it. This also has the advantage of helping me know just by the name what bridge this devices is hooked up to, what VM it belongs to, and which NIC it is inside the VM.