From: Harry Putnam <reader@newsguy.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: [OT] network discovery tools
Date: Wed, 25 May 2011 15:28:04 -0500 [thread overview]
Message-ID: <87wrhev82z.fsf@newsguy.com> (raw)
In-Reply-To: irjn34$sij$1@dough.gmane.org
Grant Edwards <grant.b.edwards@gmail.com> writes:
[...]
>> But when you do it that way, and say want to VNC or ssh or the like to
>> something connected by a dhcp serving WAP then how do you find the
>> address?
>
> The best thing to do is to use a DHCP server and DNS server that are
> "connected" somehow. Then hostnames "just work". Or you can
> statically assign IP addresses in the DHCP server so that DHCP clients
> always get hard-wired IP addresses that match up with the /etc/hosts
> file on the DNS server.
>
> I use OpenWRT for WAP, DNS, and DHCP, and it all pretty much "just
> works". When a DHCP client is assigned an IP address, the DNS server
> knows about it and you can access it by it's hostname just the way you
> would with a static setup.
>
> For various reasons, I assign static IP addresses to a number of
> devices, but I do it via the DHCP server's configuration, not by
> configuring each individual device.
That sounds like a good plan... and worth some thought. However I was
only asking to find IPs on the home lan after the fact. Not the
general question of how to setup the lan (though I welcome the ideas
you present).
I seem to have latched onto a tool by a bit more googling, and getting
lucky, called netdiscover that is in portage now.
Just one simple command found all machines active on the home lan
including those with DHCP served addresses:
netdiscover -i eth0 <ENTER>
Oddly a similar command but aimed at a range misses a few:
netdiscover -i eth0 -r 192.168.0.0/24 <ENTER>
I guess the tool may use some heuristics if you give it less info.
And for one reason or another a plain `arp' command misses several of
those discovered with `netdiscover -i eth0'
So I found what I needed... thanks.
next prev parent reply other threads:[~2011-05-25 20:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-25 19:45 [gentoo-user] [OT] network discovery tools Harry Putnam
2011-05-25 19:54 ` Stéphane Guedon
2011-05-25 20:26 ` Vincent-Xavier JUMEL
2011-05-25 19:59 ` [gentoo-user] " Grant Edwards
2011-05-25 20:28 ` Harry Putnam [this message]
2011-05-26 18:22 ` Neil Bothwick
2011-05-25 21:55 ` [gentoo-user] " Neil Bothwick
2011-05-26 16:24 ` Florian Philipp
2011-05-26 19:04 ` Mick
2011-05-28 1:11 ` [gentoo-user] " James
2011-05-29 22:33 ` Harry Putnam
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=87wrhev82z.fsf@newsguy.com \
--to=reader@newsguy.com \
--cc=gentoo-user@lists.gentoo.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox