[xen-tools] Re: Traffic accouting with xen
George Cherian
georgechianrs at gmail.com
Sun Aug 20 01:12:44 CEST 2006
Hey,
Really thanks for the quick response. I think this is a very neat idea. I have one question though: Will this be proper bridged networking? And are there any other ways to configure the networking for the domU. I have seen ioemu in many places. So what's the difference between ioemu and vif?
Thanks a lot.
-George
On Sat, Aug 19, 2006 at 10:21:40PM +0000, Steve Kemp wrote:
> On Sun, Aug 20, 2006 at 03:46:42AM +0530, George Cherian wrote:
>
> > Is there some way to do traffic accounting in xen using the xen-tools.
>
> No.
>
> > I couldn't find anything in the 'bin' directory related to traffic management.
>
> The obvious way to achieve this is to do traffic counting on the host system
> via the "vif" interfaces which are created for the xen guest domains.
>
> Theres no reason why that shouldn't work, and I've done it successfully in
> the past.
>
> To simplify things I like to make sure that the inferface names are
> predictable. So for example the guest domain named "foo.my.flat"
> will have the interface name "vif-foo".
>
> You can do this by setting the configuration file to have
> something like this:
>
> vif = ['ip=192.168.1.222, vifname=vif-foo']
>
> Then on the host name you can see the traffic via: ifconfig vif-foo:
>
> vif-foo Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1262100 errors:0 dropped:0 overruns:0 frame:0
> TX packets:12285494 errors:0 dropped:1490 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:173826361 (165.7 MiB) TX bytes:780228401 (744.0 MiB)
>
> I hope that helps ..
>
> Steve
> --
>
> >
> > Thanks in advance.
> >
> > -George
> >
> >
> >
>
> --
> Steve
> --
> http://www.steve.org.uk/
>
More information about the xen-tools-discuss
mailing list