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-users

Re: FW: [Xen-users] Externally determining xenU IP

On Thu, 1 Dec 2005 12:19:17 -0500 
Steve Brueckner <steve@xxxxxxxxxxxxxx> wrote:

> >> Steve Brueckner schrieb:
> >> 
> >> Is there a way, from the xen0 domain, to determine the IP address of
> >> a running xenU domain? I'm looking for a general solution, whether
> >> the xenU IP is assigned statically or via DHCP. I'm using the default
> >> bridging networking script. I tried looking at the output of ifconfig
> >> in xen0, figuring maybe one of the vif interfaces would tell me the
> >> ip of xenU, but no luck. 
> >
> >Stephan Seitz wrote:
> > 
> > i assume, your using dhcp for domU's ip configuration, so your able
> > to add some 
> > 
> > host HOSTNAME {
> >     hardware ethernet aa:0e:0c:a0:34:4e;
> >     fixed-address 1.2.3.4;
> > }
> > 
> > to your dhcpd.conf
> > 
> > referenced mac addresses can be easily adjusted in the xen
> > configuration files. 
> > 
> > i don't see a need for requesting ip's, as you're able to fix the ip
> > to the host. 
> 
> Thanks for your response.  Unfortunately I don't have control over the dhcp
> server, so I don't think this approach will work.  What I need is a general,
> programmatic way to get IP for xenU from xen0 in any situation.  I'm
> creating an application for use in any environment, not just in my office.
> Maybe there is no dhcp.  Maybe there is no dns.
> 
> After tinkering with this for a few hours, I'm starting to think it can't be
> done without some sort of Expect or perl script to interact with the xenU
> console.

Just an idea: if the domain has used the network recently, the MAC -> IP mapping
will be in the arp cache.  And the domain->mac mapping would be available in
dom0.   At first thought, it seems a little more tenable than using expect and
console, but it may miss sometimes if the arp cache does not contain the MAC
(maybe you could use RARP if it misses?)

Tim 

> 
> P.S. please send responses to the mailing list instead of directly to
> individual subscribers, thanks.
> 
> Steve Brueckner, ATC-NY
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 

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

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