Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: DHCP Static Maps on OS X 10.4 Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: DHCP Static Maps on OS X 10.4 Server
Authored by: EricMc on Aug 07, '07 08:28:36AM

I've had mixed results from changing the client id in this case. It seems to be that if there is already an entry for the machine you are trying to statically assign an IP for, the DHCP server will use that regardless of the new assignment. Changing the client id can make the machine look like a different one from the perspective of the DHCP server.

The most reliable way I have found to make this work is to stop the DHCP server, edit dhcpd_leases in /var/db/ (as root or with sudo, of course), and then restart the DHCP server.

To edit the lease, just find the machine in question (you may have to hunt down its MAC address) and change the ip on the lease to the one you have statically assigned. There can be several instances in the file for a given machine. Just delete all but the one you have edited.

Just deleting the entry won't work because the client will send in its old IP when it renews and the DHCP server will accept this instead of using the static assignment.

After the DHCP server is back up, go to the client machine and click the renew DHCP button on the appropriate interface in the network preferences.

[ Reply to This | # ]