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
UDHCPD.CONF(5)						 GNU/Linux Administrator's Manual					    UDHCPD.CONF(5)

NAME
udhcpd.conf - udhcp server configuration file DESCRIPTION
The file /etc/udhcpd.conf contains configuration information specific to the udhcp server. It should contain one configuration keyword per line, followed by appropriate configuration information. OPTIONS
start ADDRESS The starting address of the IP lease block is ADDRESS. The default is 192.168.0.20. end ADDRESS The ending address of the IP lease block is ADDRESS. The default is 192.168.0.254. interface INTERFACE The udhcp server should listen on INTERFACE. The default is eth0. max_leases LEASES Offer at most LEASES leases (including those reserved by OFFERs, DECLINEs, and ARP conflicts). The default is 254. remaining REMAINING If REMAINING is yes, store the time remaining for each lease. If it is no, store the expiration time for each lease. The default is yes. auto_time SECONDS Write the lease information to a file every SECONDS seconds. The default is 7200. decline_time SECONDS Reserve an IP for SECONDS seconds if a DHCP decline message is received. The default is 3600. conflict_time SECONDS Reserve an IP for SECONDS seconds if an ARP conflict occurs. The default is 3600. offer_time SECONDS Reserve an IP for SECONDS seconds if it is offered. The default is 60. min_lease SECONDS Reserve an IP for the full lease time if the lease to be given is less than SECONDS seconds. The default is 60. lease_file FILE Write the lease information to FILE. The default is /var/lib/misc/udhcpd.leases. pidfile FILE Write the process ID to FILE. The default is /var/run/udhcpd.pid. notify_file FILE Execute FILE after the lease information is written. By default, no file is executed. siaddr ADDRESS BOOTP specific option. The default is 0.0.0.0. sname NAME BOOTP specific option. There is no default. boot_file FILE BOOTP specific option. There is no default. option OPTION DHCP specific option. subnet ADDRESS timezone OFFSET router ADDRESS... timesvr ADDRESS... namesvr ADDRESS... dns ADDRESS... logsvr ADDRESS... cookiesvr ADDRESS... lprsvr ADDRESS... hostname HOSTNAME bootsize SIZE domain DOMAIN swapsvr ADDRESS rootpath PATH ipttl TTL mtu MTU broadcast ADDRESS ntpsrv ADDRESS... wins ADDRESS... requestip ADDRESS lease SECONDS dhcptype TYPE serverid ADDRESS tftp FILE bootfile FILE The default for lease is 864000. There are no defaults for the other options. SEE ALSO
udhcpd(8). GNU
/Linux 2001-09-26 UDHCPD.CONF(5)
All times are GMT -4. The time now is 03:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy