LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-05-2008, 03:40 AM   #1
wegadnie
Member
 
Registered: Oct 2007
Posts: 48

Rep: Reputation: 15
Question IP address and DHCP Server


Recently our clients hardly to get IP address via DHCP server than before and some times clients can not get IP address and return 169.xxx.xxx.xxx. I believe we're running out of the IP address so is there any way to know about that? Does reduce the lease time can help about this issue? We're running on Redhat Enterprise with BIND

Last edited by wegadnie; 09-07-2008 at 06:44 AM.
 
Old 09-05-2008, 04:31 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
If you've more Hosts then IP-Addresses are available for that particular netmask you'll have to create a new subnet declaration in dhcp.conf. Reducing the lease time won't solve it.
 
Old 09-07-2008, 06:56 AM   #3
wegadnie
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
As i described above, we're running out of IP address but is there any way to know that on Linux server? Like on Window server, if the scope doesn't have enough IP addresses then it shows a exclamation point near to it so we know it has the problem. Can we do the same on Linux?
 
Old 09-07-2008, 11:48 AM   #4
firefly2442
Member
 
Registered: Apr 2003
Location: USA
Distribution: Ubuntu
Posts: 95

Rep: Reputation: 15
You could look at the DHCP leases file:

http://linuxreviews.org/man/dhcpd.leases/

I know it works with dhcp3-server, I'm not sure about other DHCP software.
 
Old 09-07-2008, 01:01 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by odcheck View Post
If you've more Hosts then IP-Addresses are available for that particular netmask you'll have to create a new subnet declaration in dhcp.conf. Reducing the lease time won't solve it.
Reducing the lease time does help if some of the machines are laptops that get moved, or systems that are turned off at various times. That frees up their IPs to be used by another station more quickly.

Edit: It's usually kept in /etc/dhcpd.conf
 
Old 09-07-2008, 04:06 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Chort - upon interface shutdown, the system is expected to release its lease. For machines that are yanked from the net, the reduced lease time will allow dhcpd to reuse the IP more quickly as you state.
 
Old 09-07-2008, 05:19 PM   #7
mek1
LQ Newbie
 
Registered: Aug 2008
Posts: 11

Rep: Reputation: 0
We had a similar problem in our windows DHCP environment. One (5-6yr old!) server was handling all A D functions plus DHCP. I lowered the lease time then immediately noticed the resources would peak and stagger while narrowly keeping addresses available.

In the end we created VLAN's amd separate DHCP scope servers then got past that annoyance
 
Old 09-07-2008, 06:44 PM   #8
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by Mr. C. View Post
Chort - upon interface shutdown, the system is expected to release its lease.
Well that's what it's supposed to do, whether you would say it's expected is a different matter
 
  


Reply



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
dhcp server issue shio Linux - Server 1 07-06-2007 09:37 AM
DHCP Server, interface issue graciejj_82 Linux - Networking 1 09-07-2006 04:48 AM
dhcp server issue ruddernz Linux - Networking 2 01-27-2006 08:21 PM
dhcp server issue connecting (dhcpd) solussd Linux - Networking 1 01-27-2006 08:52 AM
dhcp server issue dshafi Linux - Networking 2 09-02-2005 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:26 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