From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QPKmM-0002vt-Fw for garchives@archives.gentoo.org; Wed, 25 May 2011 20:34:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EAD91C3B8; Wed, 25 May 2011 20:28:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B7301C3B9 for ; Wed, 25 May 2011 20:28:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id C5DB91B402C for ; Wed, 25 May 2011 20:28:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -5.285 X-Spam-Level: X-Spam-Status: No, score=-5.285 required=5.5 tests=[AWL=1.314, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oXrfl+qkNafY for ; Wed, 25 May 2011 20:28:19 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id B4B9F1B4037 for ; Wed, 25 May 2011 20:28:19 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QPKgj-0005kV-Ag for gentoo-user@gentoo.org; Wed, 25 May 2011 22:28:17 +0200 Received: from c-98-215-231-30.hsd1.in.comcast.net ([98.215.231.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 22:28:17 +0200 Received: from reader by c-98-215-231-30.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 22:28:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Harry Putnam Subject: [gentoo-user] Re: [OT] network discovery tools Date: Wed, 25 May 2011 15:28:04 -0500 Organization: Still searching... Message-ID: <87wrhev82z.fsf@newsguy.com> References: <871uzmwon0.fsf@newsguy.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-231-30.hsd1.in.comcast.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Y7pCPzLkTlp/5x3Puo2c5s7yEaY= X-Archives-Salt: X-Archives-Hash: e861885b7409d0937d459336a94b536f Grant Edwards 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 Oddly a similar command but aimed at a range misses a few: netdiscover -i eth0 -r 192.168.0.0/24 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.