Author Topic: DHCP and MAC addresses: How to Purge?  (Read 3554 times)

seth

  • Guru
  • ****
  • Posts: 485
  • A day w/o LinuxMCE is like a day w/o sunshine!
    • View Profile
DHCP and MAC addresses: How to Purge?
« 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
".....Because Once you've LinuxMCE'd....."
System stats located at my user page:

http://wiki.linuxmce.org/index.php/User:Seth

atomic

  • Making baby steps
  • Posts: 3
    • View Profile
Re: DHCP and MAC addresses: How to Purge?
« Reply #1 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

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: DHCP and MAC addresses: How to Purge?
« Reply #2 on: November 06, 2008, 03:43:20 pm »
You could just try switching their IP addresses in the web-admin. 
"Change is inevitable. Progress is optional."
-- Anonymous