LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2010, 09:55 AM   #1
BFCsaus
Member
 
Registered: Jan 2007
Posts: 36

Rep: Reputation: 15
dhcp leases


Hi, I have a problem with roaming laptops and DHCP. The clients are XP and the server is Redhat V2.4.

Basically, when a user goes from 'site A' to 'site B' they can wait upto 90 seconds for an IP address but will pickup an IP address after a release/renew. DHCP works perfectly well at 'site A' but not at 'site B' and all the stationary desktops never have a problem at 'site B'...

Ive cut/pasted the relevant DHCP log bits and also a snippet from dhcpd.conf and dhcpd.leases. The line stating duplicate IP Addresses is what concerns me most. Also on occsasions the user has to go to Network settings and hit the repair button on the laptop to get the IP and other times has to release/renew.

In the dhcpd.leases file the MAC address of the laptop in question has 2 IP addresses associated with them which are on the same subnet..

From the log the client seem's to do a DHCPDISCOVER and also a DHCPREQUEST which I think maybe wrong but am not a DHCP expert hence my question...

Any thoughts/comments would be gratefully received...


MESSAGES

Apr 27 09:12:17 serverA dhcpd: DHCPDISCOVER from 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:18 serverA dhcpd: DHCPREQUEST for 172.27.180.206 from 00:24:7e:xx.xx.xx.xx via eth0
Apr 27 09:12:18 serverA dhcpd: DHCPACK on 172.27.180.206 to 00:24:7e:xx.xx.xx.xx via eth0
Apr 27 09:12:18 serverA dhcpd: DHCPOFFER on 172.27.182.188 to 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:22 serverA dhcpd: client 00:24:7e:xx:xx:xx has duplicate leases on l1
Apr 27 09:12:22 serverA dhcpd: DHCPREQUEST for 172.27.180.206 from 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:22 leics09126 dhcpd: DHCPACK on 172.27.180.206 to 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:30 serverA dhcpd: DHCPREQUEST for 172.27.180.206 from 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:30 serverA dhcpd: DHCPACK on 172.27.180.206 to 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:46 serverA dhcpd: DHCPREQUEST for 172.27.180.206 from 00:24:7e:xx:xx:xx via eth0
Apr 27 09:12:46 serverA dhcpd: DHCPACK on 172.27.180.206 to 00:24:7e:xx:xx:xx via eth0


DHCPD.LEASES

lease 172.27.180.206 {
starts 2 2010/04/27 08:12:46;
ends 2 2010/04/27 14:12:46;
hardware ethernet 00:24:7e:xx:xx:xx:xx;
uid 01:00:24:7e:xx.xx.xx.xx;
client-hostname "client";
~~~~
~~~~
lease 172.27.182.188 {
starts 2 2010/04/27 08:12:17;
ends 2 2010/04/27 08:12:22;
hardware ethernet 00:24:7e:xx.xx.xx.xx;
uid 01:00:24:7e:xx.xx.xx.xx;
client-hostname "client";


DHCPD.CONF

~~~
~~~
subnet 172.27.0.0 netmask 255.255.0.0 {
range 172.27.180.1 172.27.180.254;
range 172.27.181.1 172.27.181.254;
range 172.27.182.1 172.27.182.254;
option domain-name-servers 172.27.101.1,172.21.101.1,172.28.1.58;
option routers 172.27.1.1;
option netbios-name-servers 172.16.127.2,172.21.100.108;
default-lease-time 21600;
max-lease-time 86400;
option netbios-node-type 8;
option broadcast-address 172.27.255.255;
option subnet-mask 255.255.0.0;
next-server 172.27.100.139;
filename "/etc/integra/tftp/boot.ovl";
}
 
Old 04-27-2010, 05:39 PM   #2
OdinnBurkni
Member
 
Registered: Feb 2007
Location: Iceland
Distribution: Fedora 14, CentOS, FreeNAS
Posts: 127

Rep: Reputation: 20
DHCPd problem

1st. question. How is your setup? Can you draw it or describe it?
2nd. question. How many nics does this server have?
3rd. question. You seem to have several subnets, is it all on the same nic and if so, is it VLANed...?

Also... There's a file under /etc/sysconfig and it's called dhcpd and it should look something like this:
Code:
DHCPDARGS="eth1 eth2"
Or whatever the nic is that should hand out IP's.

Hope I can help you but to do so I need a little more info...
 
  


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
Wrote 0 leases to leases file - DHCP server lionel.rpm Linux - Server 3 07-22-2009 06:05 PM
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 02:08 AM
DHCP leases running out without being renewed? TotalLinuxNoob Linux - Networking 1 05-01-2009 11:55 AM
DHCP SERVER ... no free leases!!!!! eder_michael11 Linux - General 2 04-25-2006 05:47 PM
dhcp not writing leases oberon-ken-obi Linux - Newbie 8 04-14-2005 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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