* RE: [patch, rfc] put IP addresses into xenstore (Gerd Knorr)
@ 2005-12-21 19:50 Bonnell, David
2005-12-22 10:48 ` Gerd Knorr
0 siblings, 1 reply; 4+ messages in thread
From: Bonnell, David @ 2005-12-21 19:50 UTC (permalink / raw)
To: xen-devel
I have been using arping to do a reverse ARP on the MAC address(es) to
obtain the IP address(es) used by each domain but this will be easier.
David Bonnell
Corporate Architect
BMC Software
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: RE: [patch, rfc] put IP addresses into xenstore (Gerd Knorr)
@ 2005-12-22 21:51 Bonnell, David
2005-12-23 13:48 ` Gerd Knorr
0 siblings, 1 reply; 4+ messages in thread
From: Bonnell, David @ 2005-12-22 21:51 UTC (permalink / raw)
To: Gerd Knorr; +Cc: xen-devel
Arping sends ARP "who-has" requests, either broadcast or directed to a
specific MAC address and displays the responses. I retrieve the MAC
address of each VIF of each domain from XenStore and use arping to
obtain the associated IP address.
http://freshmeat.net/projects/arping/
Regards,
David Bonnell
Corporate Architect
BMC Software
-----Original Message-----
From: Gerd Knorr [mailto:kraxel@suse.de]
Sent: Thursday, 22 December 2005 10:48 AM
To: Bonnell, David
Cc: xen-devel@lists.xensource.com
Subject: Re: [Xen-devel] RE: [patch, rfc] put IP addresses into xenstore
(Gerd Knorr)
Bonnell, David wrote:
> I have been using arping to do a reverse ARP on the MAC address(es) to
> obtain the IP address(es) used by each domain but this will be easier.
How does that work? What I've found depends on either the host replying
to broadcast pings or on brute-force, i.e. try every IP address in the
network (which isn't exactly nice, especially in a /16 ...).
cheers,
Gerd
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RE: [patch, rfc] put IP addresses into xenstore (Gerd Knorr)
2005-12-22 21:51 Bonnell, David
@ 2005-12-23 13:48 ` Gerd Knorr
0 siblings, 0 replies; 4+ messages in thread
From: Gerd Knorr @ 2005-12-23 13:48 UTC (permalink / raw)
To: Bonnell, David; +Cc: xen-devel
Bonnell, David wrote:
> Arping sends ARP "who-has" requests, either broadcast or directed to a
> specific MAC address and displays the responses.
No. It does that if you ping an IP address, but not if you ping a MAC
address. For pinging mac addresses it sends a ICMP ping, to the MAC
address specified, with broadcast (IP-)address as destination in the
header. And thats exactly the problem, machines tend to not respond to
broadcast pings for security reasons (allows certain kinds of DoS
attacks), so this isn't going to work reliable. Try "echo 1 >
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" in your domU and
receiving the IP address with arping doesn't work any more ...
Another problem is that there are multiple arping versions out there,
for example the iputils ship an arping utility to, and that one doesn't
even support pinging hosts by MAC address.
cheers,
Gerd
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-12-23 13:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 19:50 [patch, rfc] put IP addresses into xenstore (Gerd Knorr) Bonnell, David
2005-12-22 10:48 ` Gerd Knorr
-- strict thread matches above, loose matches on Subject: below --
2005-12-22 21:51 Bonnell, David
2005-12-23 13:48 ` Gerd Knorr
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.