Author Topic: [SOLVED]"Stuck" dhcp lease.  (Read 3344 times)

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
[SOLVED]"Stuck" dhcp lease.
« on: March 10, 2014, 08:44:58 pm »
For some days, the DHCP widget on the Zentyal admin page is showing one, non existent DHCP lease.
Don't know why or how it happened, but I'd like to delete that.
Tried searching for the DHCP "lease" file, but could not find it.
In the syslog, for the last few days, no lease was given to that specific MAC address.

Tried restarting DHCP module and rebooting the whole server, but the non existent DHCP lease remains.
If someone knows how to get rid of the phantom dhcp lease, please elaborate.

Cheers.
« Last Edit: March 10, 2014, 10:45:52 pm by Escorpiom »
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

julio

  • Guest
Re: "Stuck" dhcp lease.
« Reply #1 on: March 10, 2014, 09:55:03 pm »
DHCP Lease File: /var/lib/dhcp/dhcpd.leases
Check "binding state active;" entries.
« Last Edit: March 10, 2014, 09:57:00 pm by Julio »

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: "Stuck" dhcp lease.
« Reply #2 on: March 10, 2014, 10:25:37 pm »
Awesome tip Julio. Found the bugger!

Code: [Select]
lease 192.168.30.32 {
starts 6 2014/01/04 21:11:40;
ends never;
tstp never;
cltt 6 2014/01/04 21:11:40;
binding state active;
next binding state free;
hardware ethernet 20:7d:74:9a:46:e8;

Had to be some weird Apple equipment according to the MAC address.
Looking at that entry, it becomes obvious that the lease never ends, and that it's indeed "active".
I've set the parameters for lease time, but in this odd case, it seemed to have been ignored.

I'll just delete the entry and hopefully be done with it...

Thanks again.

Cheers. 

Edit: Deleted entry and all is dandy again...
 
« Last Edit: March 10, 2014, 10:28:09 pm by Escorpiom »
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

julio

  • Guest
Re: "Stuck" dhcp lease.
« Reply #3 on: March 10, 2014, 10:40:40 pm »
I'm glad I was able to help.  :)
Please mark your topic [SOLVED].  ;)

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: "Stuck" dhcp lease.
« Reply #4 on: March 10, 2014, 10:46:48 pm »
Please mark your topic [SOLVED].  ;)

Should have known that one. My bad  :P

Cheers.
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...