1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dnsmasq + lease time > 3 characters = problems ?

Discussion in 'DD-WRT Firmware' started by g412b, Mar 7, 2006.

  1. g412b

    g412b Network Guru Member

    So i am using dnsmasq as a dhcp deamon.
    Now i want to have an infinite lease time so i changed the nvram value to dhcp_lease=infinite .
    The Problem is, for some reason this is not properly translated to the /tmp/dnsmasq.conf

    It reads:
    dhcp-range=192.168.1.100,192.168.1.149,255.255.255.0,infinitem

    Notice the extra m behind infinite.
    This cause the dhcp lease time to be another vaule then infinite.
    Can someone confirm this behavior to me and a solution to it ?

    ps: I am using v23 SP1 06/03/06
     
  2. g412b

    g412b Network Guru Member

    Hmmm figured this one out now

    It seems that the value of dhcp_lease is supposed to be a integer number only that specifies the dhcp lease time in minutes (because dd-wrt seems to be automatticly appending the m value)

    Unhandy if you ask me because there seems to be no way to change ddwrt from appending that letter "m"

    maybe something to fix in the next version ?
     

Share This Page