You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Clear DCHP leases

How does one clear out the DCHP leases. I want to remove a bunch of leases that went out before I put up an access list on the airport. There must be a config file somewhere. Thank you.

Xserve Mac OS X (10.4.7)

Posted on Sep 7, 2006 7:02 PM

Reply
2 replies

Sep 7, 2006 10:17 PM in response to Gary Habeeb

When a DHCP server assigns a lease, a file is created on the machine which received the lease which tells it which IP address it can have and how long for. You may be able to find details about the DHCP configuration by going through the information on this page; the actual record of assigned addresses may not be stored in a file, but may instead be present in the computer's RAM.

(15937)

Sep 13, 2006 4:23 PM in response to Gary Habeeb

Here is how we do it.

1. Stop the dhcp server either through Server Admin or from a command line command of sudo serveradmin stop dhcp.

2. delete the file /var/db/dhcpd_leases. You will need root access. Terminal command of sudo rm -f /var/db/dhcpd_leases

3. Restart dhcp via server admin or by terminal command of sudo serveradmin start dhcp

Be very careful when deleting files in terminal!

Hope it helps.

Clear DCHP leases

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.