WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] can one do traffic accounting on bridged domU's?

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] can one do traffic accounting on bridged domU's?
From: Rudi Ahlers <rudiahlers@xxxxxxxxx>
Date: Sat, 16 May 2009 11:00:31 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 16 May 2009 02:01:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=s3AvCQ2Cy4GDJshRE7vc8dgcas+6TayJKRtm119IDfg=; b=YJPpLaT+nLdU7rqBYNS5QebNZ3KfI+SJHnia4YMFP10n/5ALl5DOpIi16TyYMwTn2y DInJybP34s+KMkznqPKwN7plNw0B029F4yCvJsbNUvwXCXlPDYUWz77j/mQnKkZKWBYC Ew30808jw8Yh9Wm+opY0i7+to299htbhFoW7Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=shNZ9Yh1bNjN6t04H3JH6b8jWhF4uRL7vYakoXYoVPXxRoQZzh7t3bSIE4OZKEIECn vO5SciLyWXlfN7PeaPLhfTnffxcQ+/nK6ZHEczOOuRkujUvl1LzgVlsZXyk2bBKonHw/ /1FT3NVwuxt7IGpvT5Xg1XF9FV4wIFF7VHwhs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0905151837x51026dfaq77085950c811cc0e@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <695200da0905151451g7f5ac147s4afb14a42fd929bc@xxxxxxxxxxxxxx> <7207d96f0905151837x51026dfaq77085950c811cc0e@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Sat, May 16, 2009 at 3:37 AM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Sat, May 16, 2009 at 4:51 AM, Rudi Ahlers <rudiahlers@xxxxxxxxx> wrote:
> Hi,
> I'm just wondering, is it possible to setup the dom0 to perform traffic
> account of domU's, which are setup using bridge mode networking?

Possible, but not easy. You can name domU interfaces so they have
persistent naming. Once you have that, snmp should work.

One gotcha is that you probably need to restart snmpd after domU
startup/shutdown.

Regards,

Fajar

Hi Fajar,

This is how I have it currently. Each domU's interface name is "hard coded" in it's config file, as follows:

vif        = ['ip=1.2.3.4, vifname=vifrudi0,  mac=aa:00:bf:5b:79:01 ']

But the problem I have is that snmp doesn't always work as expected, and I'm thinking of a different approach, perhaps with iptables?


--
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users