LinuxMCE Forums

General => Installation issues => Topic started by: seth on November 05, 2008, 01:32:13 PM

Title: DHCP and MAC addresses: How to Purge?
Post by: seth on November 05, 2008, 01:32:13 PM
 :)
Hi there,

I have a question. I had a media director that had some hardware issues. I would like to keep it for testing, however, the IP address that it was assigned by the core, keeps referring to its MAC address. I would like to clear the questionable MAC address from getting the 192.168.80.5 IP address assigned to it.

What file or .conf piece do I need to modify to clear the offending MAC address, and give this IP to my new MD, rather than having it assigned to the old, testing MD's MAC address?

End result is that I want the new MD (which is working great as .6) to become .5

Thanks In Advance,

Regards,

Seth
Title: Re: DHCP and MAC addresses: How to Purge?
Post by: atomic on November 06, 2008, 12:09:56 AM
Seth,

You can certainly add a host reservation in your dhcpd.conf file, just append after everything:

------------------------
host name-goes-here {
hardware ethernet (insert mac address here, without brackets)
fixed address x.y.z.w
}
------------------------

Also, dhcp stores the addresses it gives out in a leases file (/var/lib/dhcpd/dhcpd.leases), you can probably delete it, touch, and restart dhcpd (i am not sure if this will break something on a lmce system), or possibly, make offending address expire. Safest way though is to add a host reservation.

Best regards
Title: Re: DHCP and MAC addresses: How to Purge?
Post by: Zaerc on November 06, 2008, 03:43:20 PM
You could just try switching their IP addresses in the web-admin.