Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows will not get a DHCP address from my OS X Server

Is there a trick I need to do to get my windows machines to get and address from my OS X Server?

Posted on Feb 19, 2013 3:23 PM

Reply
11 replies

Feb 20, 2013 8:51 AM in response to Vash108

Hi

  • You are using the DHCP server in OS X Server? It's the only DHCP server?
  • Mac and Windows machines on the same subnet?


In Server app for the DHCP server settings | Networks | your subnet choose Edit. Then click Edit next to DNS settings and in the 'Provide these search domains to connected clients' entry box type in your domain.


Setting this helped another person with mixed Mac / Windows client environment.

Feb 24, 2013 2:00 PM in response to FromOZ

They are all on the same subnet. The OSX lion server was the only DHCP server. I recently turned off DHCP and just using the router for DHCP until I can figure it out.


I am just using a work group for the windows machines. Is there a way I can associate them with my OSX server like a domain? I am sorry I am extremely new to the OSX server system.


All my other devices work fine Ex: iPad's, Xbox 360, PS3, Phones.

Feb 24, 2013 3:03 PM in response to Vash108

DHCP works on a lower level (so to speak) then Windows workgroups or domains or Apple Bonjour (Zero Conf) networking.


Basically when you turn on a machine (either Windows or Mac) which has the setting of get IP address automatically (not manual IP address set) it sends out a 'broadcast' to the network asking for any DHCP server to respond. The system which is setup as a DHCP server should then respond and then there is a communication between the two systems and the client machine is assigned an iP address and is told other info like the gateway address and DNS server.


Did you setup the search domains on the DHCP server on OS X? Some Windows users have said this solved their Windows client DHCP problems.


On the Windows client machines in a command prompt if you type "ipconfig /renew" does the Windows machine complain about not finding DHCP server?


If you give Windows machine temporarily an IP address can you ping the IP address of the OS X Server (running DHCP).

Feb 4, 2014 2:08 AM in response to Vash108

i have had the same issue. Windows clients (XP, 2003, 7) just could not receive an address from the dhcp server.

I think i got it solved by removing an invalid line in my dhcp server config file.

This is what i did:

  1. stop dhcp server
  2. open /etc/bootpd.plist (you need admin rights to edit)
  3. remove the following two lines:
    <key>dhcp_domain_name</key>
    <string></string>
  4. save file
  5. start dhcp server again


alternatively, you can fill the dhcp_domain_name with a valid domain name suffix. Both options seem to have worked just fine for me.

<key>dhcp_domain_name</key>

<string>whatever.mydomain.com</string>


Tips:

  • I am using Sublime Text for such tasks. It asks for administrator password when trying to save the file, much more convinient than trying to use TextEdit
  • To get to the /etc directory from your favorite text editor easily: Go to the standard open file dialog. Press Cmd+Shift+G. Type /etc and press enter



also see the official documentation:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man8/bootpd.8.html



dhcp_domain_name
The default DNS domain name (option code 15). If this property is not

present, the server will supply its own default domain name (if available).

Sep 15, 2014 6:26 PM in response to Fuzzylr

Fuzzylr wrote:


I was able to get DHCP working by modifying the hostname of my Mac Mini from local to "computername".home.net. Once I did that it updated the services for me. After that I was able to get DHCP on my Windows 7 SP1 computer.


OS X Server requires correct local DNS, and if you're really using that home.net. domain here, that's very likely not correct DNS for your network. (I'm here assuming that you don't have home.net registered, though you might have permission of the registrar to use a subdomain of that for some other purpose?)


To verify DNS on OS X Server, launch Terminal.app from Applications > Utilities on the server, and enter the following harmless diagnostic command:


sudo changeip -checkhostname

You'll need an administrative password for the sudo, might get a one-time message for the use of sudo, then some information on the local network, and finally an indication that no changes are required, or that there are network or DNS server issues to be reviewed and addressed.

Windows will not get a DHCP address from my OS X Server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.