[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] ARP problems in -testing?



 > >
> > vif = [ 'mac=XX:XX:XX:XX:XX:XX' ]
> >
> > Now, the MAC address is always the same and thus I don't 
> need the ugly ping 
> > hack.
> 
> this is good, but if I start multiple domains, like this
> 
>       xm create vm4-bproc vmid=1
>       xm create vm4-bproc vmid=2
>       xm create vm4-bproc vmid=3
>       xm create vm4-bproc vmid=4
> 
> then I'll end up with 4 copies of the same mac. Is there some 
> way to tie 
> mac generation to vmid ?

The following will work, though has obvious limitations (256 domains):
vif = [ 'mac=XX:XX:XX:XX:%02x:XX' % vmid ]

The netback vif needs a MAC addr too, and this is picked as the frontend's MAC 
addr+1. This was probably a bad choice as people tend to pick consecutive MAC 
addrs for their domains. We should probably move the front/back bit to a mor 
esignificant bit.

Hence, the above vif= line sets vmid into the 2nd octet.

Ian



Ian


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.