FreddieG
Posts: 10
Joined: Tue Mar 15, 2016 12:36 pm

list of dhcp clients

Sun May 08, 2016 9:01 am

how can I see the list of connected clients of the dhcp?
any special commands?

Thanks for advise

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: list of dhcp clients

Sun May 08, 2016 9:09 am

Are you running your own dhcp server on your RPi? If so, what implementation, and have you checked its own documentation?

If the dhcp server is elsewhere on your network, do you have have adminstration rights to query it?

In any case, your terminology is odd: a dhcp server simply distributes configuration information on request from a client - once it has answered that request there is no longer any need for a connection between the server and its client.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: list of dhcp clients

Sun May 08, 2016 9:40 am

If you are running the DHCP server on your Pi, you could look at its leases file. This won't be entirely accurate as it will show all systems that have been given an address and not released it - which includes systems that didn't disconnect cleanly.

As an example, for DNSMasq the leases file is /var/lib/misc/dnsmasq.leases

Return to “Beginners”