LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-30-2007, 01:59 AM   #1
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
Unhappy Problem with DHCP lease getting full


Hi all,

We have DHCP server running on RHEL AS 4. Currently we are facing problem like, the DHCP scope gets full for one Subnet, but in practice when we scan for live IP addresses, there seems only about 70% IP addresses in use.

We have scope 10.8.117.41 - 10.8.117.254

We have looked in the dhcpd.leases file and we have observed that one single host occupies more than one IP addresses, which status is active for all IP addressess.

e.g.

lease 10.8.81.54 {
starts 4 2007/08/30 04:12:34;
ends 0 2007/09/02 04:12:34;
tstp 0 2007/09/02 04:12:34;
binding state active;
next binding state free;
hardware ethernet 00:50:8d:45:01:a1;
uid "\001\000P\215E\001\241";
client-hostname "computer1";
}

lease 10.8.81.219 {
starts 4 2007/08/30 04:16:26;
ends 0 2007/09/02 04:16:26;
tstp 0 2007/09/02 04:16:26;
binding state active;
next binding state free;
hardware ethernet 00:50:8d:45:01:a1;
uid "\001RAS \000P\215E\001\241\000\000\001\000\000\000";
client-hostname "computer1";
}



Above is an example of one host having Hardware address 00:50:8d:45:01:a1 registering more than one IP. There are many such examples of hosts having more than one IP active against their Mac address.

What I have observed that for every lease entry in a lease file, everytime there is a different uid. I really dont know what is uid, why is it changing everytime and how can I configure my server to ignore it and assign a single IP per MAC for any host?


Kindly help me...
 
Old 08-30-2007, 07:40 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you try to bound certain computers to a single ip by adding something like this to the conf file

Quote:
host raleigh {
option host-name "raleigh.example.com";
hardware ethernet 00:A1D:74:C3:F2;
fixed-address 192.168.1.6;
or try to decrease the lease time.

Quote:
default-lease-time 300;
max-lease-time 400;
 
Old 08-31-2007, 03:05 AM   #3
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Original Poster
Rep: Reputation: 17
I cannot bind IP addresses to MAC address for too many hosts and also there is no such need for it. And also even if I do lessen the lease period time, the problem still persists.

Kindly suggest what can I do so that my server will simply ignore the uid and assign one IP per MAC.
 
Old 09-02-2007, 01:23 PM   #4
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
This can be due to :
1. if a client has been manually configured with an IP address which is managed by DHCP because the DHCP server usually attempts to verify whether an IP address is currently in use before assigning it to a client. However, there is no guarantee that the manually configured client is currently connected to the network or available to respond when the DHCP server is verifying the IP address. So, the DHCP server may assign the IP address to a DHCP client. When the manually configured client connects to the network, you will have duplicate IP addresses on your network. IP addresses that are managed by DHCP should not be used to manually configure the network setup for a client. If a client needs to be manually configured with an IP address, that IP address should be excluded from the DHCP server's address pool.
or
2. If multiple DHCP servers are configured to assign the same IP address if two DHCP servers are configured to assign the same IP address to clients, then it is possible for two different clients to receive the same IP address. One of the clients will receive the IP address from one of the DHCP servers, and another client will receive the same IP address from the other DHCP server. Multiple DHCP servers can serve the same subnet or network, but they should not be configured with the same address pool or overlapping address pools.
 
Old 09-03-2007, 03:58 AM   #5
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Original Poster
Rep: Reputation: 17
Thanks soroccoheaven for reply,

That may be the case, because there are too many users in our organization and we are not able to control the users from assigning Manual IP which is a part of DHCP Scope. And many a times we find such users who has assigned such Manual IP.

But apart from that, for my interest I would like to know,

1) why then the DHCP server keeps the Previously assigned IP active, if it fails to assign the previously register IP to a client ( Because of IP already exists somewhere else ), why doesnot it frees that IP when it assigns the new IP to the same client?

2) What is uid in dhcpd.leases file, and why is it different everytime for the same client (Especially when the same client has more than one IPs active against its MAC Address, which I mentioned in my previous post.) Can changing uid be a cause of DHCP server assigning different IP every time to the same host?

3) And are the MAC Binded IPs assigned to any other host to which it was not binded, in case of scarcity of IPs in the Scope.


Thanks in advance!!!
 
Old 09-04-2007, 03:08 AM   #6
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
For questions 1,3 pls read the documentation so that you will get much more explanation.

Question 2.Actually the uid statement records the client identifier used by the client to acquire the lease but Clients are not required to send client identifiers, and this statement only appears if the client did in fact send one. Client identifiers are normally an ARP type (1 for ethernet) followed by the MAC address,like uid "\001\000P\215E\001\241" here 001 is for ethernet and remaining MAC.
 
  


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 lease unavailable bwilliam79 Linux - Networking 9 01-31-2008 05:37 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Requesting a new DHCP lease raypen Linux - Networking 2 06-07-2006 09:19 PM
Wireless doesn't get DHCP lease novice_iii Mandriva 1 04-17-2006 07:55 AM
Problem with obtaining a DHCP Lease on WG311T Card Hockeyfan Linux - Wireless Networking 5 11-24-2004 02:20 PM

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

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