Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getting a client IP list?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TimSSC
Apprentice
Apprentice


Joined: 20 Apr 2006
Posts: 170
Location: Cambridge, MA

PostPosted: Thu Jun 28, 2007 5:43 pm    Post subject: getting a client IP list? Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Jun 28, 2007 5:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
TimSSC
Apprentice
Apprentice


Joined: 20 Apr 2006
Posts: 170
Location: Cambridge, MA

PostPosted: Thu Jun 28, 2007 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Jun 28, 2007 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecks
n00b
n00b


Joined: 27 Feb 2007
Posts: 64

PostPosted: Fri Jun 29, 2007 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum