Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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;
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...
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.