Mailing List Archive

Virtual interface problems
Hi Everyone,

Hope you are all well..

I have some problems to configure bandwidth monitoring for domains in an
xen vps......

Suppose we have three domains..... The ifconfig entry will something
like this

vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3691 errors:0 dropped:0 overruns:0 frame:0
TX packets:412527 errors:0 dropped:776 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:435348 (425.1 Kb) TX bytes:24588202 (23.4 Mb)

vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4894 errors:0 dropped:0 overruns:0 frame:0
TX packets:412178 errors:0 dropped:667 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:477402 (466.2 Kb) TX bytes:25068366 (23.9 Mb)

vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:64606 errors:0 dropped:0 overruns:0 frame:0
TX packets:376113 errors:0 dropped:610 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18405141 (17.5 Mb) TX bytes:73257575 (69.8 Mb)

Only the specific part taken.... When we stop and start all these
domains it will be vif4.0, vif5.0, vif6.0 and if we restrat once again
it would take the next three digits and will be going up. Only a system
reboot would bring this to its first stage...

So really bandwidth monitoring seems to be a horrible task... I use the
contents of /proc/net/dev as mrtg collects data from there... So if i
restart a domain i must make related changes in mrtg config files....

Any one any idea how to make this interface name permanent for a
domain.... All suggestions are accepted....

Please bear the ignorance of a newbie :-(

Thanks
Sadique

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: Virtual interface problems [ In reply to ]
On Mon, Jun 06, 2005 at 03:32:47AM +0530, sadique@vanillanetworks.com wrote:
> Any one any idea how to make this interface name permanent for a
> domain.... All suggestions are accepted....

With recent 2.0-testing you can put vifname in the config file:

vif=[ 'mac=aa:00:00:4b:a0:c1, bridge=xen-br0, vifname=vif-example.0' ]

So then it would have a device always called vif-example.0.