Discussion Locked

Very strange DHCP problem

0 helpful
83 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

DHCP configurations problem
I am trying to set up DHCP server running NT 4.0 and SP6a. I have gonfigured the scope, DNS, and Default Gateway. However, when the first PC tries to get an IP address from the server. The DHCP server assigns the entirescope to the same MAC address, which is not the MAC address of the PC trying to get an IP, and it is labeled bad address. I have reinstalled DHCP on three different servers, without any luck. The same thing happened on all 3. I have reapplied the SP, and I have followed the steps to set up DHCP step by step according to MS. I am not repeating the same error every time I configure it. I have had it set up by three different techs in our group.

83 replies

by mckaytech

I've only seen something similar when there was another DHCP server on the network.

In view of what you've already tried, I would suggest isolating the problem by using just the server and one workstation on an isolated hub? If it then works okay, there is something else on the network that is responding to DHCP requests.

The other option would be to do a packet trace and see what information is actually being transmitted and received at the DHCP server or at the workstation. What I saw in my situation was an unexpected response packet from an unknown (up to that point) DHCP server.

paul

by bharris

I saw something very similar years ago and it ended up being a printer. It was the JetDirect card.

by avalon

My JetDirect print servers were also causing trouble with DHCP. I was getting duplicate addresses assigned to workstations and losing all connectivity to the printers. I ended up assigning fixed IP addresses to the print servers and excluding these IP addresses from the general scope. I agree that the only way you can know for sure is to run a trace though.

by rick_b

I have seen this problem twice.
Once was a bad NIC inside the server.
(Both cards were the same so it was to diagnose, but we put to new cards and two different kind and it cleared up.
Then at a different company, same thing happen and it was a Jet Direct Card in an HP4.
The cards was stealing the IP address in both cases. I hope that helps.

by dmiles

Seems like you have used diagnotic to locate the problem and it is still there so have you checked the address just to make sure nothing is missing,also the problem may be in the router,just a guess.

by sfo farmer

First: Does the MAC address match the workstation? Doublecheck the MAC address to match it to the workstation. If it's an hp printer, it's MAC should show up. If the MAC is of a router- do you have IPHelper loaded properly on your router(s)?

Second- when this client pulls it's DHCP address- does it show the IP of the DHCP server? Does it match your server's IP. (I just had a user two weeks ago plug in an Apple Airport wireless/hub/router/nat DHCP server- and it caused all sorts of havoc).
If you don't get an IP check on both the server and the client : from a command prompt look at your arp tables to see if they are even talking? Go to a command prompt and do an ARP -A.

Third- do you have any Novell servers on your network that may be dishing out BOOTP?

Fourth- Take your server and a test workstation and put them on a hub by themselves. If DHCP works; add a second workstation. If that works the problem is not with the server, but either the network or a particular device.If you get an IP or MAC address of another device and can't trace it- there are few spots on the web you can get a MAC address database by manufacturer and limit it to a class of device (printer/network appliance/other dhcp server etc.) If you can'tfind the DB- e-mail me and I will send you a copy.

Hope this helps you!
SFO

by jsoto

I am not sure why you are having such a bad time with that. I would say,
1. uninstall sp6 and start with SP4 then may be SP5.
2. try different clients each time.
3. Unplug any print servers like Jetdirects.
4. Good luck

by drdon

Check the addresses in the scope to make sure they are not assigned as static to any device. Next, locate the device that claims the address (ARP) and remove it (turn it off). If you cannot remove it, reserve the address in the scope as a static.Verify you have TCPIP configured on the client to use DHCP and try again.

by dheupel

I concur with others that a likely culprit is a bad NIC card somewhere, or even more likely, an older JetDirect card that is using all its ports to respond to your DHCP server.

If you have a tool like HPOpenView, you should be able to find where that device is on your network and disable it. Then you can re-test your DHCP server. Chances are good everything will operate as expected.

Also, if you don't have WINS isntalled on one of your NT servers, I would recommend that it be installed on one ASAP.

Good luck.

by ronnonf

Is it possible that you either have a server running the DHCP service that was forgotten about or someone is experimenting.

The best and easiest way to trace this DHCP address is on the client run ipconfig /all (for Winnt machines) or Winipcfg (for Win9x machines). Go to the line that contains the Ip address for the DHCP server and write it down. Then if you are using WINS sort the WINS server by ip until you find the culprit and stop the DHCP Server service on that machine.
Or search the DNS for the Ip address and stop the service on the culprit.

by sdraney

This must be a new network since this type of event does not occur when any other IP DHCP leasing has gone on in the past...if I remember correctly.
Try this:
1. set dhcp to normal settings/scope/dns/, etc.
2. once the dhcp server (preferably NOTthe same as the PDC) is up make certain no other machines are waiting for a lease...
3. Go to the network config of each client and make certain the BrowseMaster is set to NO and announce set to NO.
4. Manually ask for a lease using the following syntax:
(for NT) ipconfig /release
ipconfig /renew
ipconfig /all
This first makes certain the machine doesn't have a cached IP and then asks for a lease which you confirm using the /all command and looking for a valid IP lease in the response.
(for Win98) go to START, RUN, type winipcfg.exe and a window will come up allowing the same commands from a GUI interface on that platform.

If all this is not helpful you should look at the WINS structure and make sure all the relationships are correct and that no cross control exists between all these systems that is abnormal.

by gadawg

Have you used any imaging software on this network to create client workstations (or the server) such as ghost?

by drmicro

I would suggest isolating your system to eliminate other network devices from the mix. Since you have three servers that are supposedly identical, take one of them and set up an isolated test ring or subnet with just the server (it will have to temporarily act as a PDC/BDC for this) and one workstation, connected directly. No routers, no switches, no other devices to confuse the issue. If you get a proper IP address with this setup, then you can eliminate setup errors on both the server and the workstation, then your problem has to be elsewhere on the network: another server, a rogue switch or router, print device, etc. If you are switching between network protocols (ie, ethernet to token-ring or vice-versa), check to see the actual MAC address as it's received at the DHCP server and as it should be at the requesting workstation. I've heard of some instances where the MAC address has been bit-flipped, which would cause the DHCP server to return a bogus IP address. Hope this helps!

by it_doc

I have tried this set up and determined that it is not the server or the WKS. I am in the process of checking the Jet Direct cards.
Thanks

by baziite

It looks like a NIC problem .....A network printer or Network Disk Array or a Faulty NIC on one of the PCs on the Network . Best is to start small . ie with the PDC ( with DHCP installled ) and a single client . Check that the IP is alloted correctly . then add other clients and servers one by one and you'll definitely find the culprit .

by chris hirst

The likely solution is that you are using a Internet Proxy Server (but not MS Proxy) on the network eg:Wingate or similar, As these services all install a limited DHCP server as a default part of their configuration which can cause the problems described.

by terminator

Find out what device (more likely to be a faulty Jet Direct Card or faulty NIC) owns that MAC address and you will find the root of the problem

Good luck

by wblack

Try stopping the DHCP Server service and WINS service in the Control Panel of the server. Then restart the services, delete the BAD_ADDRESS and the corresponding WINS entry. Do all of the above with the offending device turned off. Then, with WINS and DHCP still stopped, put a fixed IP address in the device. Restart WINS and DHCP, then reset the device to pick up a DHCP address.

by mbraffor

Good ideas but most techs start removing and replacing cards to fix because it's easy. I would instead look to your workstation. Has the "old" IP address been released? If it hasn't the whole problem may stem from there. DHCP addresses are maintained in a "cache" file on the system. To reset this cache for NT type IPconfig /release_all on the start/run menu.

by lee v.

You didn't say whether you assigned a static address to the server you wish to use as the DHCP server, but I believe that is a must on NT. If you try to have a DHCP server also asking for an address you can end up in strange timing loops, which would likely cause trouble with WINS and any type of dynamic DNS assignment as well. The DHCP configuration documents that I have seen all suggest assigning static addresses to all servers, and using the DHCP pools for clients only.

by trish_sutter

It could be a nick. But I would look first at the IP addresses that are already in use. Could be that you're server's trying to dynamically allocate a static address. You might have to re-address you scope. Use the commands ping xxx.xxx.xxx.xxx and IPCONFIG to see what your addresses are on the workstations etc...Then after that I'd try the more complicated solutions presented here-in. (such- as nicks, etc...)

by quest4

Under scope propert have you set the begingging and ending TCP/IP address? Are you using WINS and DNS? I've got pretty much the same setup and it is working fine on our LAN, but you must turn on WINS and setup DNS for it to do so.

by jsilden

Couple of things to check / look at / for --

First, go into the server's "event log" for "system;" you're looking for a "browser" event (e.g., 8015, etc).

If your client(s) are mixed (e.g., W95, 98, NT, Mac, etc), you "should" see these events (one of 'em says something to effect of "browser has forced an election").

Reason / cause(s): incompatibilities in the IP code between the various MS OS' -- on all MS clients, be sure that in Network / TCP/IP / Properties that "Browse LM Master"is set to DISABLED.

Likewise, if you have any IP-addressed printers, get the latest drivers / configurators and make sure they (the printers) "know" that they're a client and not a DHCP resource.

Finally, if your network includes a gateway / router (e.g., to the internet / an ISP), it might be "competing" with the server as the DHCP resource.

by agent_lovato

It could be a bad NIC but I doubt it. You mentioned you have 3 servers identical. Is this a PDC BDC Environment? If so, have you set up your DNS primary zone correctly? It would seem to me that the problem resides with DNS as the DHCP is trying to assign all the addresses to one MAC which it is possibly seeing as a zone. Try going back through your PDC and making sure you are to spec.

by chughes910

It's very possible that the hub needs to be reset. We also ran into a similar problem
and we setup the DHCP server agian and with no help we took the system down and reset the hubs and everything came back up with no more problems. Hope this helps it did for us.

by Former member

I think it's because you're a bonehead, and boneheads don't give away 4000 points because they don't have them and I think you just want a free answer. My answer to you is to find a different occupation.

by it_doc

I may have overloked the point. However, that is not a professional answer. I would leave it with that.

by bigbadwolf13

Depending on the computers you are using, you might have to disable dial up adapter. Sounds like your modem is trying to connect you to the internet instead of your NIC. So the IP adress your getting is probably 169.***.***.*** which is a Windows defaul IP Address

by a.r.h.

When you re-install the DHCP service, do you follow it up with re-installing the SP6a? If not, you'll be running the unpatched DHCP Service which does have issues, especially when other services are running the SP6a version.

by rogerlaurel

I cannot really call this an answer but a inquiry for more information. Is this PC and DHCP server on a routed network? Are the routers running as DHCP relay agents? If so, check to see if there is two or more DHCP servers with overlapping scopesfor the network segment the PC is on.

by underdog

From a DOS window, run the following commands:
arp -g
tracert XXX.XXX.XXX.XXX

ARP will give you the IP and MAC address of the offending device. Once you have the IP address TRACERT will give you the name of the offending device. The device is probable a router or a conncentrator with a NMM, network management module, or a switch.

Also check the DNS server log to insure that you have not reused the name of a server previously removed from the network but not removed from DNS or LMHOSTS for WINS.

To properly configure your network do the following:
Step 1. Disconnect all devices from the network.
Step 2. Draw a sketch of the network with all the devices to be added - i.e. extra servers, routers, switches, concentrators, hubs, print servers, printers with internal network cards, RAS/modem servers, and workstations. Label each device with its MAC address.

Step 2. Assign a static IP address, outside of the DHCP pool, but on the same subnet as the NT server, to each of the servers, routers, and concentrators with NMM, network memory modules. ALSO, EACH ADDITIONAL NETWORK CARD IN the NT server MUST HAVE ITS OWN STATIC IP address.

Step 3. Program the router used as the default gateway with a ststic IP address on the LAN side. TURN off DHCP in the router.

Step 4. Add each class of device, one at a time, to the network. In a DOS window, on the server, type the following command:
arp -g

This command will give you the IP address and MAC address of any device connected.
Next run:
tracert XXX.XXX.XXX.XXX
this will not only give you the number of hops be the name of the device with that IP address.
These will help in checking you connections and your network IP map.
Finally make copies of the Corrected Ip made. Post in the server closet and file with the network documentation.

by it_doc

Thank you for taking the time and providing a detailed answer.
These steps have been tried.

by sir_tuc

# Of Questions Asked 3
Questions With No Reponses 0
Questions Closed Due To Rating Inactivity 0
Answers Accepted 0% 0
Answers Rejected 3% 1
Answers Not Rated 97% 34

These are your stats. You have asked at least 3 questions and have not awarded ANYONE points from accepting their answers. Are are indeed a BONEHEAD!! QUIT and be a garbage collector!

by it_doc

I appoplogize for not rating the answers. I have been out of town, and very busy.
I prommise to do better. However, you do not know my experience level to make such a comment

by taroy

All the others have very good solutions. I would first set all my printers with static IP addresses in the last octet .30 range. I would also check to ensure that my scope range is set from .40 to .240. That will give you 200 IPs to use from the DHCP. Also I would check to be sure that I have only one WINS server online as this can sometimes cause problems.

by sagager

Check if you do not have a firewall that acts as a DHCP on your network, like for instance a Linksys or many others.

by acquiziter

There are Three possible answers that my current knowledge can give you.Hopefully it'll help.first, rebuild your tcp/ip stack either by assigning relevant search orders, or by editing your system stack drivers by changing the irrelevant drivers to a.old extention.Second, Speedguide.net offers updates to the MS dhcp/tcp/ip drivers that increase performance. Third, registry tweaks have always been my soltion.Try ( regedit/HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/VxD/DHCP or DhcpOptions)editing these keys with relevant values.(Speedguide.net can help in this regard too.)

by cisconetworks

Is there any type of Proxy server or NAT device between the Workstations and the server? This may cause such a problem.

by crisisbleeds

Had a similar problem. Pc could not get an address. I set it statically but TCP/IP would not function properly. All addresses had gotten assigned and listed as bad address.
We had a pipeline 75 on the network causing problems witha win95 machine. The win95 complained of duplicate address. I turned off proxy mode on the router. I also reinstalled the winsock 2.0 update on the win95 machine. Look for a folder called ws2bakup which lets you know that winsock 2.0 has been installed. If found run file within named ws2bakup.bat which will revert the winsock back to the previous version. Download the winsock 2.0 package for win95 and install it. Hope this helps, after doing these things my problem with DHCP was resolved.

by zs6dgb

1)The first ip address in the subnet is the network address. SKIP this one, even though DHCP sometimes lets you add it.(The last is the broadcast address)
2)Check to see if a registry key with old DHCP scope information on the DHCP Server still
exists @ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSetServices \DHCPServer\Configuration\Subnets\
\IpRanges\
and delete the relevant key.
3) ensure that the server ip is in the 'exclusion' range, & that the DHCP client service for the Server is disabled.
4)Check the default lease duration.
5)Ensure that the DHCP Manager DNS Servers option is set to the default value of 0.0.0.0.
Delete this key & re-start DNS service , if you want to clear the DNS properties
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DhcpServer\Configuration\Subnets\\SubnetOptions\08...(relevant scope)
6)Check server ip settings
eg DHCP relay agent? ; a router? using Bootp
7) Force ip renewal using ipconfig /renew
on NT, or winipcfg and press renew button on Win95.
8)The computer running DHCP/Wins/DNS must have a static IP.
9)Do a WINSCHK (from resource kit CD) & JetPack

Regards
David

by zs6dgb

1)The first ip address in the subnet is the network address. SKIP this one, even though DHCP sometimes lets you add it.(The last is the broadcast address)
2)Check to see if a registry key with old DHCP scope information on the DHCP Server still
exists @ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSetServices \DHCPServer\Configuration\Subnets\
\IpRanges\
and delete the relevant key.
3) ensure that the server ip is in the 'exclusion' range, & that the DHCP client service for the Server is disabled.
4)Check the default lease duration.
5)Ensure that the DHCP Manager DNS Servers option is not set to the default value of 0.0.0.0.
Delete this key & re-start DNS service , if you want to clear the DNS properties
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DhcpServer\Configuration\Subnets\\SubnetOptions\08...(relevant scope)
6)Check server ip settings
eg DHCP relay agent? ; a router? using Bootp
7) Force ip renewal using ipconfig /renew
on NT, or winipcfg and press renew button on Win95.
8)The computer running DHCP/Wins/DNS must have a static IP.
9)Do a WINSCHK (from resource kit CD) & JetPack

Regards
David

by zs6dgb

1)The first ip address in the subnet is the network address. SKIP this one, even though DHCP sometimes lets you add it.(The last is the broadcast address)
2)Check to see if a registry key with old DHCP scope information on the DHCP Server still
exists @ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSetServices \DHCPServer\Configuration\Subnets\
\IpRanges\
and delete the relevant key.
3) ensure that the server ip is in the 'exclusion' range, & that the DHCP client service for the Server is disabled.
4)Check the default lease duration.
5)Ensure that the DHCP Manager DNS Servers option is not set to the default value of 0.0.0.0.
Delete this key & re-start DNS service , if you want to clear the DNS properties
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DhcpServer\Configuration\Subnets\\SubnetOptions\08...(relevant scope)
6)Check server ip settings
eg DHCP relay agent? ; a router? using Bootp
7) Force ip renewal using ipconfig /renew
on NT, or winipcfg and press renew button on Win95.
8)The computer running DHCP/Wins/DNS must have a static IP.
9)Do a WINSCHK (from resource kit CD) & JetPack

Regards
David

This discussion is closed to new replies.