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
# 1  
Old 11-10-2009
Which IPs from the range are assigned to DHCP enabled clients

Hi All

dhcpd.conf has a range of IPs sa for example( 192.168.1.201 192.168.1.220)

So this is the range of IP addresses the server will issue to DHCP enabled PC clients booting up on the network

How do i know which IPs are being used or which IPs from the range are assigned to dhcp enabled clients ?

Thanks
# 2  
Old 11-10-2009
Code:
arp -an


Last edited by Yogesh Sawant; 03-29-2010 at 05:05 PM.. Reason: added code tags
# 3  
Old 11-10-2009
Quote:
Originally Posted by TonyLawrence
arp -an
Thank you Tony.
# 4  
Old 11-12-2009
DHCP server runs out of IPs

Hi all
When DHCP server assign a IP to dhcp enabled clients it reserve IPs for the time specified in the dhcp.conf file and I have set it to 24 hours.

Very often DHCP server runs out of IPs so is there a way to release the IP from the client which are not pingable or down?

Or is there a script to handle this situation?

Please let me know.
Thanks
# 5  
Old 11-12-2009
You could set your dhcp lease time to a shorter duration

dhcpd.leases (Linux Reviews)

Linux Tutorial - Linux DHCP Server Configuration
# 6  
Old 11-12-2009
Thanks

Can I delete the entry from dhcpd.leases for the host which says "binding state free" ?
Thanks
# 7  
Old 11-13-2009
It is not recommended, and I am not sure what the ramifications for that would be. You could restart the service after making the changes
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