I have a centOS DHCP server configured to give out a lease of 20 mins. But a client is requesting a lease for 10 mins. Is it possible to configure dhcpd to give out a lease of 20 mins even if client requests for a 10 mins lease.
问问题
1385 次
2 回答
1
Yes it can. DHCPD server will provide the Lease based on dhcpd options
min-lease-time 120; <- Mean minimum lease DHCP server will assign greater than 120 secs
max-lease-time 120; <- Mean maximum lease DHCP server will assign less than 120 secs
default-lease-time 120; <- Mean default lease DHCP server will assign is 120 secs
you want all 3 options for all the networks ranges you will setting up otherwise what happens client may get weird leases.
You can check man pages on linux server you have dhcpd configured
man 5 dhcpd
于 2017-10-30T21:38:18.683 回答
0
See dhcpd.conf(5):
The min-lease-time statement
min-lease-time time;
Time should be the minimum length in seconds that will be assigned to a lease.
于 2010-08-09T16:42:40.003 回答