DHCP lease under SuSE is not working., limited at 10 minutes


 
Thread Tools Search this Thread
Special Forums IP Networking DHCP lease under SuSE is not working., limited at 10 minutes
# 1  
Old 06-22-2011
DHCP lease under SuSE is not working., limited at 10 minutes

Hi,

I got a strange issue here: We are using ISC DHCP v4 which is default in Open SuSE 11.4. These two options 'default-lease-time' and 'max-lease-time' are set in all subnets, with values between 43200 (12 hours) to 518400 (144 hours). See partial dhcpd.conf below please.

Now the lease time from Windows client's ipconfig output is only 10 minutes. Why? (dhcpd on servers restarted many times. ipconfig /release, ipconfig /renew on client run many times)

Please help. Thank you much in advance!

Code:
lease-file-name "/etc/dhcpd.leases";
default-lease-time 43200;  # 12 hours
max-lease-time 86400;      # 24 hours
one-lease-per-client true;

subnet 10.1.1.0 netmask 255.255.255.0 {
pool {
   failover peer "failover";
   range 10.1.1.100 10.1.1.200;
   deny dynamic bootp clients;
}
   option subnet-mask 255.255.255.0;
   option broadcast-address 10.1.1.255;
   option routers 10.1.1.1;
   default-lease-time 86400;
   max-lease-time 518400;
}

# 2  
Old 06-23-2011
Are you sure the clients are leasing from you?
# 3  
Old 06-23-2011
99.9% sure.

I've found the problem cause is DHCP failover feature. If failover is enabled on a subnet, the lease time for this subnet is limited to 10 minutes although default-lease-time is set to 100 hours. If failover is disabled on a subnet, the least time is set to the default lease time. I don't know why. Here is the failover sections in dhcpd.conf files:
Code:
# dhcpd.conf for primary dhcp server:
failover peer "failover" {
   primary;
   address 10.1.6.71;
   port 647;
   peer address 10.1.5.71;
   peer port 647;
   max-response-delay 60;
   max-unacked-updates 10;
   mclt 3600;
   split 128;
   load balance max seconds 3;
}
 
# dhcpd.conf for secondary dhcp server:
failover peer "failover" {
   secondary;
   address 10.1.5.71;
   port 647;
   peer address 10.1.6.71;
   peer port 647;
   max-response-delay 60;
   max-unacked-updates 10;
   load balance max seconds 3;
}

Please help. Thank you!

Last edited by aixlover; 06-23-2011 at 03:28 PM..
# 4  
Old 06-23-2011
Well, a nice design for failover has the secondary just recording leases unless the primary dies. A nasty design says it has to wait 10 minutes and then all the leases are free. Google time again.

Is the other server master and set lower? Try increasing MCLT. http://linux.die.net/man/5/dhcpd.conf


Code:
 
The mclt statement
mclt seconds; The mclt statement defines the Maximum Client Lead Time. It must be specified on the primary, and may not be specified on the secondary. This is the length of time for which a lease may be renewed by either failover peer without contacting the other. The longer you set this, the longer it will take for the running server to recover IP addresses after moving into PARTNER-DOWN state. The shorter you set it, the more load your servers will experience when they are not communicating. A value of something like 3600 is probably reasonable, but again bear in mind that we have no real operational experience with this.


Last edited by DGPickett; 06-23-2011 at 04:56 PM..
This User Gave Thanks to DGPickett For This Post:
# 5  
Old 06-23-2011
3600 (1 hour) for mclt is much longer than 10 minutes. How do you think it's still a mclt issue?

Thanks.

Last edited by aixlover; 06-23-2011 at 05:48 PM..
# 6  
Old 06-23-2011
Are both boxes configured just the same? Renewal should happen in a fraction of lease time, usually less than 50%. Could anything be messing with udp/tcp ports DHCP uses (firewall, other app.)?

Did you check both logs, to see that the failover feature is running right, not fallen over?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep a log file for the last 5 minutes of contents every 5 minutes

Hi all, System Ubuntu 16.04.3 LTS i have the following log INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042 INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies

2. UNIX for Beginners Questions & Answers

How to convert days hours minutes seconds to minutes?

Hi, please help with below time conversion to minutes. one column values: 2 minutes 16 seconds 420 msec 43 seconds 750 msec 0 days 3 hours 29 minutes 58 seconds 480 msec 11 seconds 150 msec I need output in minutes(total elapsed time in minutes) (2 Replies)
Discussion started by: ramu.badugula
2 Replies

3. Solaris

Solaris 10- DHCP lease time increase

HI Admins, can anyone tell me how can I increase the lease time in Solaris 10. I want to use that dhcp address for 4 weeks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies

4. Shell Programming and Scripting

[Solved] Working with date (add minutes using variables)

Dear all, today I'm scratching my head with a simple (I believe) issue. Working with date is quite simple, so if I Need to add some seconds to current time, I'll use: date --date='+30 seconds' +"%Y-%m-%d %H:%M:%S"But, how to pass the value to add from a variable? I tried the following without... (2 Replies)
Discussion started by: Lord Spectre
2 Replies

5. Red Hat

DHCP lease problem

Hi frnds I am testing DHCP server on vmware.I have two REDHAT 9 vmware machine.DHCP is installed on one machine and second machine is using as a client .I have configured DHCP with Ip Address ,Mask and Gateway.But client machine is not getting ip address.When i type ifconfig command on client it... (6 Replies)
Discussion started by: Vaibhav.T
6 Replies

6. UNIX for Dummies Questions & Answers

remove duplicate entries from dhcp.lease

Hi, I have to parse the dhcp.lease file and have to keep the most recent entry and remove the rest and also the number of lines between any two leases might not always be the same. eg: lease 5.5.5.252 { starts Wed Jul 27 09:48:39 2011 ends Wed Jul 27 21:48:39 2011 tstp Wed Jul... (1 Reply)
Discussion started by: bitspradp
1 Replies

7. UNIX for Advanced & Expert Users

DHCP lease under SuSE is not working. Why?

Hi, I got a strange issue here: We are using ISC DHCP v4 which is default in Open SuSE 11.4. These two options 'default-lease-time' and 'max-lease-time' are set in all subnets, with values between 43200 (12 hours) to 518400 (144 hours). See partial dhcpd.conf below please. Now the lease time... (0 Replies)
Discussion started by: aixlover
0 Replies

8. SuSE

Why this DHCP syslog-ng not working

Hi, I have an issue to setup DHCP log in syslog-ng. Here are what I've done: (1) Remove 'log-facility local7;' line from dhcpd.conf (2) Add following lines to /etc/syslog-ng/syslog-ng.conf: destination dhcplog { file("/var/log/dhcpd.log"); }; filter f_dhcpd { level(info) and match("dhcpd");... (1 Reply)
Discussion started by: aixlover
1 Replies

9. Shell Programming and Scripting

Convert minutes to hours, minutes, seconds

How would you convert lets say a 1000 minutes to hours, minutes, seconds (1 Reply)
Discussion started by: Vozx
1 Replies

10. SuSE

Touchpad not working - SuSE 8.2 - Toshiba Satellite A30

Hi all, I have a bit of an inexplicable problem.... Up until today, on my Toshiba Satellite A30 Laptop running SuSE 8.2 Professional, I had a dual mouse (USB Mouse / Touchpad) configuration in X and everything was running fine. I booted the laptop today, and for some reason unbeknownst to... (3 Replies)
Discussion started by: zazzybob
3 Replies
Login or Register to Ask a Question