View previous topic :: View next topic |
Author |
Message |
TimSSC Apprentice
Joined: 20 Apr 2006 Posts: 170 Location: Cambridge, MA
|
Posted: Thu Jun 28, 2007 5:43 pm Post subject: getting a client IP list? |
|
|
I've looked around for how to do this, but haven't been able to do anything. I have a home server (or router) that I set up using the gentoo home router guide. My question is, is there a way to get a list of all the IP addresses the computer is providing to the LAN? thanks.
( I want to know this so that I can easily SSH into one of the other computers. It's a laptop though, so I don't want to set up a static IP address.) |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Thu Jun 28, 2007 5:57 pm Post subject: |
|
|
Are you looking for the dhcp lease range or for the list of leases currently active?
The range is something you should find in the config file, the active leases in a file like /var/lib/dhcpd/dhcpd.leases (may depend on the dhcp server application you use and its configuration). _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
TimSSC Apprentice
Joined: 20 Apr 2006 Posts: 170 Location: Cambridge, MA
|
Posted: Thu Jun 28, 2007 7:04 pm Post subject: |
|
|
Hi,
I'm looking for the list of currently active leases. However, the file /var/lib/hdcpd/dhcpd.leases doesn't exist. I think it's because my dhcp server is dnsmasq. Sorry, I should have been more explicit. |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu Jun 28, 2007 10:01 pm Post subject: |
|
|
it is /var/lib/misc/dnsmasq.leases _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
ecks n00b
Joined: 27 Feb 2007 Posts: 64
|
Posted: Fri Jun 29, 2007 3:21 am Post subject: |
|
|
from there, once you know the range, you can use nmap with the -sP option to scan a your range, it's pretty fast and tells you what computers are up. |
|
Back to top |
|
|
|