LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 07-16-2014, 08:33 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 104

Rep: Reputation: 6
Question 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?
 
Old 07-19-2014, 08:16 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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.
 
  


Reply

Tags
dhcp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reason for multiple dhclient leases in /var/lib/dhclient/dhclient.leases psycroptic Linux - Networking 1 04-23-2014 10:24 AM
VPN connects, can't ping or RDP from linux clients, but Win clients are fine davidbell.mscf Linux - Networking 1 02-28-2011 06:11 PM
Delete leases from dhcpd.leases when remove a subnet from dhcpd.conf phongnh Linux - Server 2 10-12-2010 05:49 AM
Wrote 0 leases to leases file - DHCP server lionel.rpm Linux - Server 3 07-22-2009 07:05 PM
LXer: IRC Clients for Linux Part 1: List of 6 GUI Clients LXer Syndicated Linux News 0 09-12-2008 05:40 PM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration