Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hello I am trying to get fedora dhcp set up but for some reason the clients are not getting dns. If I statically set dns everything works as expected. Here is the dhcpd.conf:
Ok so in further looking at the issue, I found that windows was just using its old lease (which didnt have dns for some odd reason) and a full release(ipconfig /release) was required in order to show a network failure. All of dhcp has failed. It appears(from wireshark) that the problem is due to to the server not granting any more request, because I can see the clients asking for the dhcp address .
I am getting closer to the problem, it appears in /var/log/messages. When a client tries to make a request this output comes out:
Oct 29 18:23:11 cisconet dhcpd: DHCPREQUEST for 0.0.0.0 from YY:YY:YY:YY:YY:YY via eth5: unknown lease 0.0.0.0.
I have not made any recent changes to the server(other then the power going out to cause all of this...so I am unable to track changes that may have been made by someone else). In /var/lib/dhcpd/dhcpd.leases there are some leases . Also dhcpcd is running:
ps awx | grep dhcpd
2277 ? Ss 0:00 /usr/sbin/dhcpd
Do you see any trouble in the config above ? Also looking at the leases, it dose not appear that I am anywhere near the max based on the range.
Hmmm, in looking around it appears the windows client is doing something strange:
"That makes no sense at all. Clients just shouldn't do that. The
client is clearly broadcasting this packet, as it's being picked up by
your relay.
What could be happening here is that the client is sending a
DHCPREQUEST with no requested-address option. In this case, piaddr(0)
would print "0.0.0.0". This is not valid according to RFC 2131.
"
Ok, so I have fixed it and the problem was clearly client side. The windows xp machines were requesting an improper address and were using cache before that. Doing an ipconfig /release on the clients then restarting the machine allows them to grab the proper ip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.