From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Haxby Subject: Re: How to get VM IP address through XenStore Date: Tue, 10 Jun 2008 12:10:22 +0100 Message-ID: <484E611E.2080802@oracle.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: jian zhang , xen-devel List-Id: xen-devel@lists.xenproject.org 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 " 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