Which IPs from the range are assigned to DHCP enabled clients


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Which IPs from the range are assigned to DHCP enabled clients
# 8  
Old 11-13-2009
Quote:
Can I delete the entry from dhcpd.leases for the host which says "binding state free" ?
binding state free does not mean that the lease is not in use. A binding state statement declares the lease's binding state. When the DHCP server is not configured to use the failover protocol, a lease's binding state will be either active or free. The failover protocol adds some additional transitional states, as well as the backup state, which indicates that the lease is available for allocation by the failover secondary.

Your best approach is to reduce the lease duration time.
# 9  
Old 11-13-2009
Quote:
Originally Posted by fpmurphy
Your best approach is to reduce the lease duration time.
Correct.

The DHCP client will try to establish a new lease if that client is still active, so this approach works best, if you don't have more address space to allocate.

Or you could allocate more address space, since it is free and cheap (when you are using NAT, that is).
# 10  
Old 11-13-2009
Thanks all,
I set lease time to 12 hours in dhcp.conf.

default-lease-time 43200;
max-lease-time 86400;

---------- Post updated at 07:05 PM ---------- Previous update was at 01:38 PM ----------

Hi

One more question:
Is there a command or way to find how many IPs are available that can be assigned to dhcp enabled clients from the DHCP server.
# 11  
Old 11-14-2009
Quote:
Is there a command or way to find how many IPs are available that can be assigned to dhcp enabled clients from the DHCP server.
Have a look at DHCPstatus. It is available on SourceForge and elsewhere. Consists of Perl scripts which parse dhcpd.conf and dhcpd.leases and displays status information, including the number of IP addresses in the dynamic pool that are free.
# 12  
Old 11-18-2009
Quote:
Originally Posted by fpmurphy
Have a look at DHCPstatus. It is available on SourceForge and elsewhere. Consists of Perl scripts which parse dhcpd.conf and dhcpd.leases and displays status information, including the number of IP addresses in the dynamic pool that are free.
Thanks
DHCPstatus worked.Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

How to get IP of computer assigned by DHCP?

I have a computer at work with no control over the network settings. We have to pay for a static IP so that won't happen. I'm running an SSH server so I can connect back and analyze data when I'm sitting in boring classes. I want to know how to get the IP of this machine when I'm on the same... (8 Replies)
Discussion started by: corrado33
8 Replies

2. Shell Programming and Scripting

Checking range of ips

Given a range of IPs similar to this: "212.63.183.19","212.63.183.19","3560945427","3560945427","CN","China" "217.7.143.0","217.7.143.0","3641151232","3641151232","CN","China" "218.0.0.0","218.31.255.255","3657433088","3659530239","CN","China"... (13 Replies)
Discussion started by: SkySmart
13 Replies

3. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

4. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

5. Shell Programming and Scripting

Shell script to ping a range of IPs

Hi Can someone give me a shell script that can ping a range of IPs and return IPs which are not pingable. Range for example say 192.168.0.1 to 192.168.0.50 and whichever are not pingable then return the IP. Thanks for your help (3 Replies)
Discussion started by: tannu
3 Replies

6. Shell Programming and Scripting

print range between two patterns if it contains a pattern within the range

I want to print between the range two patterns if a particular pattern is present in between the two patterns. I am new to Unix. Any help would be greatly appreciated. e.g. Pattern1 Bombay Calcutta Delhi Pattern2 Pattern1 Patna Madras Gwalior Delhi Pattern2 Pattern1... (2 Replies)
Discussion started by: joyan321
2 Replies

7. Shell Programming and Scripting

how to remove the assigned value from the string

Hi I have the following assignment in my ksh script: PX_LIST="4119 2390 2294 2776 2897 4099" Is there any sed/awk command which would allow the to remove certain number from this string. Let's say I need to remove PX=2390 from PX_LIST, so the output after deletion will be" PX_LIST="4119 2294... (5 Replies)
Discussion started by: aoussenko
5 Replies

8. Solaris

Unix terminal re-assigned with wrong IP address from window's DHCP

Hi all, I have this problem that puzzles me, i have setup all the right DHCP configuration in Windows Server. The reservation IP address in windows for this specific unix terminal. However, when i rebooted the unix terminal the IP which was already assigned for this box somehow change to a total... (0 Replies)
Discussion started by: tlee
0 Replies

9. HP-UX

st_san_safe enabled

$ uname -a HP-UX vfauh203 B.11.11 U 9000/800 486452371 unlimited-user license SCSI TAPE: dev = 0xcd520000 Failed open - st_san_safe enabled () is there any tools i can run to further investigate this err0r i received from syslog.log ? im new to hp-ux thanks (1 Reply)
Discussion started by: libchk
1 Replies

10. UNIX for Dummies Questions & Answers

What does $? mean when assigned to a variable?

If i write this statement in a Korn Shell script RCODE=$? what possibly does it eman? (3 Replies)
Discussion started by: ranjita.c
3 Replies
Login or Register to Ask a Question