NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Hot54321's avatar
Hot54321
Apprentice
Dec 30, 2023

Increase DHCP LeaseTime setting?

Hi,
Where can I find this setting to increase DHCP Leasetime? This simple setting it seems its not include in the firmware? Why is that? This is a basic setting that should in the firmware.

28 Replies

  • Not supported yet by stock firmware. NG has been asked years ago to add it but still no progress.

    Why do you want to increase it? The default of 1 day is more than enough for home networks.
    • schumaku's avatar
      schumaku
      Guru - Experienced User
      Curious what you expect to happen after this one day or 1440 minutes expiration time? I expect the DHCP client will retain it's assigned IP address forever.

      When the lease reaches 50% (T1) of its validity period, the DHCP client unicasts a DHCP Request message to the DHCP server to request lease renewal. If the server renews the lease (counted from 0), it sends a DHCP Ack message to the client.

      So after 12 hours, the DHCP server gives an ack an does start another period, reset the timer. This can continue for days, weeks, months.
      • microchip8's avatar
        microchip8
        Master

        Some people like a very short least time, like 2 hours or so, in places where lots of clients come and go so that the DHCP pool doesn't get exhausted that easy. Of course there are ways around that, but just saying. I don't know why you'd want to increase the lease beyond a day time.

    • Hot54321's avatar
      Hot54321
      Apprentice

      No, I want to de-crease it to 1 hour instead of 24Hour.

  • schumaku's avatar
    schumaku
    Guru - Experienced User
    Please explain what for exactly... DHCP renewal is a fully transparent process, no need to reconnect or the like. No matter if we talk of 60 minutes, 480 minutes, 1440 minutes or longer.

    A correct working DHCP client is able to refresh it's allocated IP address virtually forever - without ever expiring. Certainly as long as the DHCP server is not restarted or reset. And without going through a DHCP Discover process assigning the DHCP client a new IP address

    Fancy some excursion into the DHCP process? Here you go:

    ----
    1. When the lease reaches 50% (T1) of its validity period, the DHCP client unicasts a DHCP Request message to the DHCP server to request lease renewal. If the server renews the lease (counted from 0), it sends a DHCP Ack message to the client. If the server rejects the renewal request, it sends a DHCP Nak message to the client, which must then send a DHCP Discover message to apply for a new IP address.

    2. If no response is received from the DHCP server when the lease reaches 87.5% (T2) of its validity period, the DHCP client broadcasts a DHCP Request message to request lease renewal. Similar to T1, if the client receives a DHCP Ack message, the server has renewed the lease; if the client receives a DHCP Nak message, the client must send a DHCP Discover message to apply for a new IP address.

    3. If no response is received when the lease expires, the client stops using the IP address and sends a DHCP Discover message to apply for a new IP address.
    When a DHCP client no longer needs to use its allocated IP address and the lease has not expired, the client sends a DHCP Release message to the DHCP server to request IP address release. The server saves the configuration of this client and records the IP address in the allocated IP address list. The IP address can then be allocated to this client or other clients. To request a configuration update, a client can send a DHCP Inform message to the server.
    ---
    • Hot54321's avatar
      Hot54321
      Apprentice

      I want to it decrease my lease time for example to 1 hour instead of 24Hours. 
      How to achieve that? 

      It is automatically that the DHCP lease time is 24Hours, but I want to de-crease it to 1 hour. 

      • schumaku's avatar
        schumaku
        Guru - Experienced User

        Hot54321 wrote:

        I want to it decrease my lease time for example to 1 hour instead of 24Hours. 
        How to achieve that? 

        It is automatically that the DHCP lease time is 24Hours, but I want to de-crease it to 1 hour. 


        Facing a problem with a DHCP running out due to a lot of walk-in visitors as microchip8 says? Either way, it won't magically fix the unspecified DNS issues you are apparently behind. 

         


        microchip8 wrote:

        Some people like a very short least time, like 2 hours or so, in places where lots of clients come and go so that the DHCP pool doesn't get exhausted that easy.