LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to renegotiate leases of clients? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-renegotiate-leases-of-clients-4175511274/)

sluge 07-16-2014 07:33 AM

How to renegotiate leases of clients?
 
Hello,



I have a dhcpd4.conf on Solaris 11


Code:

# dhcpd.conf
#
# Configuration file for ISC dhcpd
# (created by installadm(1M))
#

default-lease-time 360;
max-lease-time 720;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# arch option for PXEClient
option arch code 93 = unsigned integer 16;

# Set logging facility (accompanies setting in syslog.conf)
log-facility local7;

# Global name services
option domain-name-servers 192.168.11.10;


subnet 192.168.11.0 netmask 255.255.255.0 {
  range 192.168.11.40 192.168.11.41;
  option broadcast-address 192.168.11.255;
  option routers 192.168.11.1;
  next-server 192.168.11.29;
}

class "SPARC" {
  match if not (substring(option vendor-class-identifier, 0, 9) = "PXEClient");
  filename "http://192.168.11.29:5555/cgi-bin/wanboot-cgi";
}




When I boot the client for the first time, it got 11.41 address. When I boot the same client for the second time, it taked 11.42, not 11.41.

How to modify conf file to renegotiane addresses?

T3RM1NVT0R 07-19-2014 07:16 AM

The default lease time is mentioned in seconds if I am not wrong. From the config you pasted it appears that the default lease time is 6 minutes (360 seconds) and the max lease time is 12 minutes (720 seconds). So if you want the system to retain the same IP for a longer period of time then increase default lease time and max-lease-time values and restart dhcp services on the server.


All times are GMT -5. The time now is 07:38 AM.