LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dhcp leases (http://www.linuxquestions.org/questions/linux-newbie-8/dhcp-leases-804528/)

BFCsaus 04-27-2010 10:55 AM

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";
}

OdinnBurkni 04-27-2010 06:39 PM

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...


All times are GMT -5. The time now is 05:30 AM.