DHCP Max-lease-time Maximum

Home » CentOS » DHCP Max-lease-time Maximum
CentOS 10 Comments

Hi,

I m looking for the max value for max-lease-time. would 512640 seconds
(1 year) work?

Thanks . Götz

10 thoughts on - DHCP Max-lease-time Maximum

  • DHCP uses FFFFFFFF16 to represent an infinite lease. Try if it’s supported. Anyway, it’s insane value as year lease time :)

    Eero

    2016-07-06 11:22 GMT+03:00 Götz Reinicke – IT Koordinator < goetz.reinicke@filmakademie.de>:

  • :) … the long lease is for some Accesspoints which we dont like to configure static, just plug in and run.

    /Götz

    Am 06.07.16 um 10:24 schrieb Eero Volotinen:

  • How about static ip mapping on dhcp?

    Eero

    2016-07-06 11:27 GMT+03:00 Götz Reinicke – IT Koordinator < goetz.reinicke@filmakademie.de>:

  • To much work ;) every MAC I dont have to type counts.

    /G

    Am 06.07.16 um 10:31 schrieb Eero Volotinen:

  • why not configure reservations for those access points?

    the downside of a really long lease time is if you have to change something like DNS, gateway, whatever, the clients with a really long lease will not ‘see’ the change until 50% of hte lease time expires as thats the default refresh.


    john r pierce, recycling bits in santa cruz

  • Am 06.07.16 um 18:19 schrieb John R Pierce:
    Hi, what do you mean with “reservations”? the APs in question just need an IP for connecting to the managemnt server which is in the same subnet.

    Thanks for your feedback . Götz

  • Static MAC ip mapping on dhcp server?

    Eero
    7.7.2016 12.38 ip. “Götz Reinicke – IT Koordinator” < goetz.reinicke@filmakademie.de> kirjoitti:

    Am 06.07.16 um 18:19 schrieb John R Pierce:
    Hi, what do you mean with “reservations”? the APs in question just need an IP for connecting to the managemnt server which is in the same subnet.

    Thanks for your feedback . Götz

  • a DHCP reservation is when you convert a lease to a static reservation, so each time that MAC/identifier asks for an IP, you give it one thats preconfigured. typically you can just cut/paste an entry form
    /var/state/dhcpd.leases into /etc/dhcpd.conf and tweak it to something like…

    host myhost {
    hardware ethernet 00:01:08:00:ad:33;
    fixed-address 192.168.0.249;
    option host-name “myhost”;
    }

    or if you’re clever write a bit of perl to do that automatically,


    john r pierce, recycling bits in santa cruz

  • Thanks, I did know that and we are using this in other situations. But as written in my third reply:

    To much work every MAC I dont have to type counts.

    Regards . Götz

    Am 07.07.16 um 11:44 schrieb Eero Volotinen:

  • Take some time to write a script, and you’ll earn much time after. But it’s a really, really bad idea to configure too long leases.

    Sylvain. Pensez ENVIRONNEMENT : n’imprimer que si ncessaire