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

Re: [Xen-devel] How to get VM IP address through XenStore



James Harper wrote:
I just did a google search for "ip address from mac address" and there
are lots of people asking much the same question but I didn't come
across any useful answers.

My favourite method is "ping -b -c 1 <broadcast-addr>" and then look for the MAC address in /proc/net/arp. There are numerous cases where it doesn't work, but it works often enough to be useful. If you're using DHCP and you can get to the DHCP server you can also ask it about the mapping.

Finally, there's reverse ARP and rarpd which could be made to be useful if you could watch for ARP requests and use them to build up a /etc/ethers file.

jch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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