Sponsored Content
Special Forums IP Networking DHCP lease under SuSE is not working., limited at 10 minutes Post 302533153 by aixlover on Wednesday 22nd of June 2011 09:37:25 PM
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;
}

 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
auto_parms(1M)															    auto_parms(1M)

NAME
auto_parms - initial system configuration plus DHCP support command SYNOPSIS
DESCRIPTION
The command is a system initialization command that handles first-boot configuration, that is, the setting of unique system "initial iden- tity parameters", and ongoing management of DHCP lease(s). The command is invoked at boot time by the command. Initially it loads a list of available ethernet interfaces and requests a DHCP lease on each interface. See the rc(1M) manpage for information about for invocation context. While checking for availability of a lease on each interface, also consults and examines the variable If it is set to "1", attempts to request a lease on the the interface designated by If is set to "0" (the default case) or is absent from does not attempt a DHCP request on that interface. Once a lease is secured, the information supplied with the lease is used to initialize key networking parameters; see dhcpdb2conf(1M). If detects that the system is undergoing "first-boot" (meaning the system's hostname is not yet set), it invokes to verify the DHCP-sup- plied parameters and to collect any parameters not supplied by DHCP. For all subsequent boots, the data supplied by a DHCP lease is assumed by to be correct. Note that in a (non-mobile) environment where DHCP is used for IP address management, under normal conditions the lease information should not change between reboots. This is accom- plished by placing in "lease maintenance mode" prior to exiting. FILES
The command itself. Common subroutines used by and sub-area commands. Log files written and saved by AUTHOR The command was developed by HP. SEE ALSO
dhcpdb2conf(1M), rc(1M), set_parms(1M). auto_parms(1M)
All times are GMT -4. The time now is 03:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy