PDA

View Full Version : DHCP not serving up Vista


bradycl_84043
2007-06-07, 12:11 AM CDT
Hey all,

Have a server which up until this afternoon was running FC6. Caching, chrooted DNS server with DHCP setup to provide dynamic DNS.

Installed F7 this evening, and set up DNS and DHCP with the exact same config files as used before. Work beautifully for my other linux boxes on the network. Works beautifully for my XP boxes on the network.

My Vista boxes refuse to get an address.

I know it's Vista specific because one of the machines is the laptop I am now writing on, which gets an address fine when booted from my Fedora drive, and does not when booted from my Vista drive.

Here is the dhcpd.conf:
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
authoritative;
include "/etc/rndc.key";

server-identifier hive;
ddns-domainname "home.clark.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
ddns-updates on;
ignore client-updates;

zone home.clark. {
primary 192.168.1.10;
key rndckey;
}

default-lease-time 21600;
max-lease-time 43200;

option domain-name "home.clark.";
option ip-forwarding off;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers 192.168.1.10;

zone 1.168.192.in-addr.arpa. {
primary 192.168.1.10;
key rndckey;
}

zone home.clark. {
primary 192.168.1.10;
key rndckey;
}
}

And here is what I am seeing in /var/log/messages repeatedly when a Vista system attempts to connect:
Jun 6 23:57:17 hive dhcpd: DHCPDISCOVER from 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:18 hive dhcpd: DHCPOFFER on 192.168.1.198 to 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:21 hive dhcpd: DHCPDISCOVER from 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:21 hive dhcpd: DHCPOFFER on 192.168.1.198 to 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:29 hive dhcpd: DHCPDISCOVER from 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:29 hive dhcpd: DHCPOFFER on 192.168.1.198 to 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:44 hive dhcpd: DHCPDISCOVER from 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 6 23:57:44 hive dhcpd: DHCPOFFER on 192.168.1.198 to 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 7 00:03:24 hive dhcpd: DHCPDISCOVER from 00:0c:f1:86:d8:a6 (Locutus) via eth1
Jun 7 00:03:25 hive dhcpd: DHCPOFFER on 192.168.1.198 to 00:0c:f1:86:d8:a6 (Locutus) via eth1

Like I say, all clients could connect fine when this was up and running with the same dhcpd.conf file in FC6 just hours ago.

Any ideas? Packages I could have forgotten to install, anything?

giulix
2007-06-07, 01:55 AM CDT
Not really, looks like it is offering a lease that gets refused, doesn't it ? Maybe some security setting on vista ?

bradycl_84043
2007-06-07, 10:29 AM CDT
Well, I've tried with the firewall on or off... I've got SELinux and firewall disabled on the Fedora box, so I'm pretty sure that that isn't it.

The only difference between my F7 and FC6 boxes is that I tried to go *very* bare-bones with my F7 install... removed even most of the base packages from the original install. So I'm also wondering what other packages could be needed.

I'm just stymied by the fact that a) this worked fine in FC6, and b) it's working fine for the XP boxes on my network.

I'm going to try reinstalling F7 when I get home tonight, and I guess let it install more of the stuff it installs by default that I don't need... :( and if that doesn't work, I guess I'll go back to FC6 for now... I'll let you know how it goes, but in the meantime, if anyone has any ideas or can repro, please let me know.

Thanks!

bradycl_84043
2007-06-07, 10:58 AM CDT
Okay... found this... http://support.microsoft.com/kb/928233

Might this apply?

And I wonder why it didn't in FC6, if so...

Would I address this by setting always-broadcast on; in my dhcpd.conf? I'd certainly prefer not to have to modify any Vista client I allow on my network.

If no one knows I'll test when I can and post results.

bradycl_84043
2007-06-07, 02:05 PM CDT
In the meantime, is there anyone running Fedora 7 as a DHCP server that is successfully handing out IP's to Vista clients?

bradycl_84043
2007-06-07, 02:33 PM CDT
Setting always-broadcast on; had no effect. Still no response to DHCPOFFER from Vista.

bradycl_84043
2007-06-07, 11:18 PM CDT
To close cleanly... :) Found my fix for this.

I came home and reinstalled F7 and still had the problem.
Then I reinstalled FC6 and had the problem still!
At this point, after a *small* bout of crying, I did just a little more searching.

Still kinda shaking my head that everybody was okay with it except Vista.

One lousy bad little almost irrelevant line... LOL

Changed
server-identifier hive;
to
server-identifier 192.168.1.10;

and all is well. Apparently I had modified the hosts file on my previous FC6 installation. Seems dhcpd was resolving hive for me and passing 127.0.0.1 to the clients. Vista didn't like this. Changing it to use the DHCP server's IP address explicitly got everything working.

PeTzZz
2007-06-09, 02:41 PM CDT
Just noting that I merged the question of ImranIjaz and bradycl_84043's answer to it to the thread ImranIljaz made about the same problem. That thread is here (http://forums.fedoraforum.org/showthread.php?t=157503).