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/
Home Products Support Community News


RE: [Xen-devel] How to get domU IP address

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, "Meng Xu" <mxu@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] How to get domU IP address
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Thu, 13 Sep 2007 20:14:09 +1000
Delivery-date: Thu, 13 Sep 2007 03:14:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C30E9928.D7F9%Keir.Fraser@xxxxxxxxxxxx>
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: <CF69DDBC6B268242847609B4EB0A16F01D1C48@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C30E9928.D7F9%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acf1slQtCehIDhdNRp6CrSrDBlkwzwAHi/Q5AAc9PrA=
Thread-topic: [Xen-devel] How to get domU IP address
> Allocation of IP addresses is an administrator issue. By default your
> will probably issue a DHCP request, and if that's serviced by a remote
> DHCP server outside your control then finding the IP address is a bit
> tricky. If you need tight control then you could issue static IPs to
> by modifying their setup scripts, or by modifying the DHCP server
> to issue static IPs for certain MAC addresses. Or issue private IPs
> dom0 and do NAT. Or...

Depending on if the DomU is on the same network as Dom0 (eg, you could probably use something like 'nmap -sP -PR' and then grep the arp tables for the MAC address. This will
probably work even if the DomU is firewalled from , as ARP filtering is
almost never done.

Is there the concept of a xen socket for communicating with other
domains? It would be nice if this existed and you could run something
like snmp over it, which would allow you to get this and more


Xen-devel mailing list

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