find assigned dhcp addresses
If I am running a dhcp server, how do I find what IP addresses have been assigned to connected computers?
|
Code:
arp -n |
While that gives you a result it may not be just addresses that have been handed
out by your dhcp server; clients could have hard-coded IPs that happen to match your subnet/netmask, and you'd see them in your arp table irrespective of how they acquired those IPs. Depending on which dhcp server daemon/process you're using you should be able to parse current leases out from its log-/status files. For the isc dhcp-server look at dhcp.leases. Cheers, Tink |
Actually, section 20.2.2 gives the answer http://www.linuxtopia.org/online_boo...lease-database
Quote:
Not quite the same thing |
All times are GMT -5. The time now is 07:50 PM. |