From: John Haxby <john.haxby@oracle.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: jian zhang <cheechuang@gmail.com>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: How to get VM IP address through XenStore
Date: Tue, 10 Jun 2008 12:10:22 +0100 [thread overview]
Message-ID: <484E611E.2080802@oracle.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D013DCD9C@trantor>
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
prev parent reply other threads:[~2008-06-10 11:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 5:57 How to get VM IP address through XenStore jian zhang
2008-06-10 6:29 ` James Harper
2008-06-10 11:10 ` John Haxby [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=484E611E.2080802@oracle.com \
--to=john.haxby@oracle.com \
--cc=cheechuang@gmail.com \
--cc=james.harper@bendigoit.com.au \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.