Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In Lion Server Admin, under DHCP settings, it is possible to see a list of "Clients", but for me this list is nearly always empty, except in the rare occasions when I allow a machine on my network that is not statically mapped. Is it in fact the case that statically mapped IP addresses are not listed under "Clients" by default? Is there a way to see currently connected, statically mapped IP addresses?

share|improve this question

2 Answers 2

You can look at "dynamically" attributed leases with:

more /var/db/dhcpd_leases

You can look at "statically" and "dynamically" attributed leases with:

grep '\[en.\]' /var/log/system.log | more
share|improve this answer
    
The output from the first is nothing. Still no list of "dynamically" assigned leases. –  raxacoricofallapatorius Apr 29 '12 at 15:32
    
If this file is empty then you don't have any "dynamically" assigned lease. –  daniel Azuelos May 1 '12 at 14:19

Don't think so, no. There is a need to know which DHCP addresses are currently in use so that stale addresses can be re-issued to new clients, etc. You're looking for statically-connected users under DHCP, which is by definition not static. They will not show there.

One way to check though might be to ping the broadcast address and hope the static clients are configured to respond to pings. (IE. 192.168.1.255 on a 192.168.1.0/24 subnet).

share|improve this answer
    
It would still be useful to know (in response to a user with a statically issued address having difficulties with his network connection) whether a static lease has been successfully issued. –  raxacoricofallapatorius Nov 27 '11 at 15:37
    
Static lease? Are you talking about a DHCP reservation? –  Harv Nov 28 '11 at 22:52
    
The UI says "Static Maps". –  raxacoricofallapatorius Nov 28 '11 at 22:58
    
Why wouldn't you just ping the target IP instead of the broadcast address? –  Jason Salaz Dec 27 '11 at 4:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.