This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to delete a DHCP Lease ?

Hello all, 

i was changing the mac address of a user that had a static ip. but the new hardware not was using the ip put static. 

In the lease time i saw that the ip is still in lease for one day for the old mac address. Is there a way to manual delete

this lease so that i can change the hardware of a user in time ? 

 

Thanks and regards

Marco



This thread was automatically locked due to age.
Parents
  • Hi.. I know this answer is very late.

    Still I would like to mention that to release the IP lease from DHCP, you have to delete the entry that has been earlier created and then create a fresh entry for that IP.

    Changing the MAC address in existing entry will not work.

    I tried this in XG310 (SFOS 17.5.9 MR-9) and it worked fine.

     

    - Sandeep Paruthi

  • DHCP lease should be deletable via advanced shell by deleting the file

    /tmp/dhcpd.leases

    In Linux, deleting the file dhcpd.leases, will remove all the leases, but first you need to stop the dhcp service via the command "service dhcpd:stop -dsnosync", delete the file and restart the service "service dhcpd:start -dsnosync"

    Try and let us know.

    Regards

Reply
  • DHCP lease should be deletable via advanced shell by deleting the file

    /tmp/dhcpd.leases

    In Linux, deleting the file dhcpd.leases, will remove all the leases, but first you need to stop the dhcp service via the command "service dhcpd:stop -dsnosync", delete the file and restart the service "service dhcpd:start -dsnosync"

    Try and let us know.

    Regards

Children
No Data