LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2007, 01:48 AM   #1
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Rep: Reputation: 30
Dhcp


Hi
I have a dhcp server running on my RH Enterprise 3.0.
My problem is that my windows clients gets the same ip whenever they log in(even after 15 days). I would like to make the server such that the clients that logs in (after 12 hours) gets an dynamic ip not a fixed one

What should i do?

I am attaching the dhcp.conf file and dhcp.leased line(which remains the same)

Sanjib Gupta

[root@router dhcp]# vi dhcpd.leases
}
lease 192.168.50.194 {
starts 3 2007/06/27 05:52:32;
ends 3 2007/06/27 07:52:32;
tstp 3 2007/06/27 07:52:32;
binding state active;
next binding state free;
hardware ethernet 00:11:25:65:72:4a;
uid "\001\000\021%erJ";
client-hostname "boseinstitute";
}
lease 192.168.50.224 {
starts 3 2007/06/27 05:57:21;
ends 3 2007/06/27 07:57:21;
tstp 3 2007/06/27 07:57:21;
binding state active;
next binding state free;
hardware ethernet 00:14:2a:cf:0d:c2;
uid "\001\000\024*\317\015\302";
client-hostname "Tushar";
}




[root@router dhcp]# more /etc/dhcpd.conf
# Sample dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

ddns-update-style ad-hoc;

# option definitions common to all supported networks...
option domain-name "boseinst.ernet.in";

# Your name servers. You can normally find these in
# your /etc/resolv.conf file. These will be distributed to all DHCP
# clients.
option domain-name-servers 192.168.50.1;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# Configuration for an internal subnet.
subnet 192.168.50.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.50.175 192.168.50.225;
option domain-name-servers 192.168.50.1, 202.54.9.1;
option domain-name "xxx.xxx.in";
option routers 192.168.50.1;
option broadcast-address 192.168.50.255;
# default-lease-time 600;
default-lease-time 864000;
max-lease-time 7200;
}

Last edited by sanjibgupta; 06-27-2007 at 01:53 AM.
 
Old 06-27-2007, 02:41 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i think you're misinterpreting this. DHCP is designed to allocate known addresses from a given pool. it is not supposed to deliberately pick IP addresses at random every time. whilst that logic could help you understand the dynamic potential of dhcp, it's pointless. a client with a dhcp lease will, once obtained, not ask "can i have an ip address?" but "i used to have ip address a.b.c.d, can i have it again?". and the dhcp server will normally just say "yes". in an environment with little contest for ip addresses, it's totally normal for a dhcp client to keep the same address for years...

basically, you have no problem.
 
Old 06-27-2007, 03:46 AM   #3
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Original Poster
Rep: Reputation: 30
Thanks for reply
But what happens if i have near about 10 new users coming in everyday getting there address from the dhcp server and they do not exist the next day and new pc come in.
Will i end up my dhcp pool?
Sanjib Gupta
 
Old 06-27-2007, 07:31 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
don't understand you, sorry. if you're concerned about lease expiry and such then the dhcp server handle that just fine. if it needs that one extra address then it would release out somethign that's already been leased once but is not currently in use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dhcp failed with error (Pump Told us : no dhcp reply recived.) alok.rhct Linux - Networking 3 03-24-2007 07:28 AM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration