Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi all,
I recently ran an apt-get upgrade and things seemed to have worked fine, until this morning (about 10 days later) when all windows clients failed to acquire an IP address. if i read the conf file correctly the max lease time is set to 2 days. so the upgrade may not have caused the problem, but nothing else was changed recently. i assume there is a problem with the dhcp3-server (which i didnt configure - i inherited this network).
we run debian etch kernel 2.6.8.
i checked /etc/default/dhcp3-server which seems to have the correct entry (eth1). init.d script also points at that file.
any idea where to start? at this point i dont even know what to google for.
funnily enough, when i did an apt-get update it couldnt resolve the proxy server name to its address. i changed apt.conf from computer name to ip address. apt-get update ran fine. i checked hosts entries and it should have resolved. i could even ping the proxy, under its name.
well, these are the symptoms. any idea? cheers, rotezecke
If the DHCP daemon is running on the server the first thing I would do (after verifying all the network settings on the server) is fire up Wireshark on a client and capture the DHCP traffic from a client to the server and analyze what is happening during the exchange. http://broadcastengineering.com/infr...tutorial_part/
Also sounds like your servers DNS resolution isn't working properly.
Hi,
relevant entires in ps aux:
/usr/sbin/named -u bind
/usr/sbin/dhcpd3 -q eth1 (which seems to be correct).
restarting these services doesnt help. the configuration of these settings didnt change in over a year. but as i said - i did an upgrade a couple of weeks ago.
and yes, i can ping both my nameservers.
/var/log/syslog:
dhcp & dns related errors look like something like this:
time servername dhcpd: comutername.domain.org: temporary name server failure
time servername dhcpd: DHCPDISCOVER from (mac address) via eth1: network xxx.xxx.xxx/24 no free leases
i shall have a go at wireshark and post the results (if any)
Cheers,
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
Quote:
Originally Posted by rotezecke
Hi,
relevant entires in ps aux:
/usr/sbin/named -u bind
/usr/sbin/dhcpd3 -q eth1 (which seems to be correct).
restarting these services doesnt help. the configuration of these settings didnt change in over a year. but as i said - i did an upgrade a couple of weeks ago.
and yes, i can ping both my nameservers.
/var/log/syslog:
dhcp & dns related errors look like something like this:
time servername dhcpd: comutername.domain.org: temporary name server failure
time servername dhcpd: DHCPDISCOVER from (mac address) via eth1: network xxx.xxx.xxx/24 no free leases
i shall have a go at wireshark and post the results (if any)
Cheers,
Well just from the errors that I see it looks like the problem is that you have used all leases. is comutername.domain.org actually defined in your dhcp.conf file? If so try commenting that then restart the server.
Hiya
not sure how to define comutername.domain.org dhcp3.conf
i cant copy paste the entry, but it goes something like this:
ddns-update-style interim;
option domain-name "domain.org";
default lease time ...;
max lease time ...;
authorative;
update static leases: off;
log-facility local7;
subnet 192.xxx.xxx netmask 255.255.255.0
option netbios-name-servers computername.domain.org
...
option domain-name-servers computername1.domain.org computername2.domain.org
(please ignore syntax)
i changed the netbios and domain name server entries to ip-addresses (didnt help) - as i assume all this goes back to DNS problems.
there is something with bind9 and refreshing keys when changes are made. maybe that also applies to debian upgrades. this is far beyond my linux skillz though.
if this makes any sense to anyone, please let me know. i may have to move this thread and or change the title.
cheers,
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style interim;
# option definitions common to all supported networks...
#option domain-name-servers ns1.example.org, ns2.example.org;
option domain-name "nimfm.org";
default-lease-time 86400;
max-lease-time 172800;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# deny client-updates;
update-static-leases off;
# 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;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
Actually on some systems vim (you mean vi) actually point to vim. From my experience when you learn vim you know most of vi.
oh, thats what it is! i got along just fine in vi until i met debian where vi does not seem to point at vim. it drove me nuts!
I think in this setup DHCP requires DNS to be working - but it's broken. in our setup a range wasnt needed. the IPs are defined in bind's db.files. dhcp cant find the domain.
This thread is looking at the problem from the wrong end (well, I guess that's my fault ain't it?) and I herewith close it. I shall post a conclusion once DNS is fixed (if ever). Thank you all for your input (and watch out for a new thread on DNS and bind - possibly coming soon)
Cheers,
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
Quote:
Originally Posted by rotezecke
oh, thats what it is! i got along just fine in vi until i met debian where vi does not seem to point at vim. it drove me nuts!
I think in this setup DHCP requires DNS to be working - but it's broken. in our setup a range wasnt needed. the IPs are defined in bind's db.files. dhcp cant find the domain.
This thread is looking at the problem from the wrong end (well, I guess that's my fault ain't it?) and I herewith close it. I shall post a conclusion once DNS is fixed (if ever). Thank you all for your input (and watch out for a new thread on DNS and bind - possibly coming soon)
Cheers,
Yeah and this is why I should not post as soon as I get out of bed. but yeah vim will point to vi but on debian they are different.
problem solved.
DNS was broken - DHCP relied on DNS. I used # instead of ; to comment in the zone files. also, i update serial number when i made changes. at some point bind must have decided it had enough of my behavior and stopped working. i made the changes, ran rndc relaod and bobs our uncle.
thanks for all your input.
by the way, we have no range setting as we do not allow unauthorised computers on the network.
cheers, rotezecke
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.