LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


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

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, 07:16 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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



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 09: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 05:11 PM
Delete leases from dhcpd.leases when remove a subnet from dhcpd.conf phongnh Linux - Server 2 10-12-2010 04:49 AM
Wrote 0 leases to leases file - DHCP server lionel.rpm Linux - Server 3 07-22-2009 06:05 PM
LXer: IRC Clients for Linux Part 1: List of 6 GUI Clients LXer Syndicated Linux News 0 09-12-2008 04:40 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration