WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to get VM IP address through XenStore
From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Tue, 10 Jun 2008 12:10:22 +0100
Cc: jian zhang <cheechuang@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 10 Jun 2008 05:51:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D013DCD9C@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <c77ea6600806092257h2778a129vb9d4e6bf5eccba6c@xxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D013DCD9C@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
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

<Prev in Thread] Current Thread [Next in Thread>