Skip navigation

mac mini server refuses to get DHCP address from router

8999 Views 15 Replies Latest reply: Feb 5, 2014 8:36 PM by Jeff Kelleher RSS
1 2 Previous Next
bluztoo Level 1 Level 1 (75 points)
Currently Being Moderated
Feb 28, 2010 2:00 PM
Everything was going along fine. But after a power outage the server goes to a 169. address when the router puts out 198. addresses. If I put a static 198. address in it sees the network but won't connect to the internet. I've flashed the router (everything else sees the router fine, 3 computers and a time capsule). I've had the hardware checked at the Apple store - it picked up an address right away. After narrowing everything down the problem has to be in the operating system. I even did a full time machine restore to the day before the storm. No luck. Anyone heard of this problem.
3 Macbooks and a Mini, Mac OS X (10.6.1)
  • Dah•veed Level 7 Level 7 (29,555 points)
    The 169 address is a self assigned address. Please give us a detailed description of how you have the mini configured to connect to the router.

    Dah•veed
    2.0 GHz Early '09 Mac mini - 2GB RAM - 250GB miniStack v3, Mac OS X (10.6.2), Magic Mouse + BetterTouchTool - Happily using Macs since 1984!
  • DaddyPaycheck Level 6 Level 6 (16,035 points)
    Have you tried a wired connection?
    A collection of clinking, clanking, clattering caliginous junk., Mac OS 8.6 or Earlier, PDP11
  • terryc Calculating status...
    I am having exactly the same problem. Very frustrating at this point.
    Quad Core, Mac OS X (10.6.2)
  • terryc Level 1 Level 1 (0 points)
    In my case I have tried both 'wired' and 'wireless' in both cases it will not obtain an IP address from the router. I have tried to renew the lease, etc all to no avail. It just happened out of the blue.
    G5 Dual Core, Mac OS X (10.4.6), New MacBook, G4 PowerBook
  • Michael Tessier-Ashpool Calculating status...
    I'm having exactly this problem as well.
    Wired and wireless, no matter which wireless network I use (I have two with two different routers).
    The issue seemed to start spontaneously, with the Mac Mini Server refusing to take DHCP from anywhere and just self-assigning an IP every time I try.
    Cleared all Airport and network related plist files, and nothing I tried has worked so far.

    Very frustrating.
    Mac Mini, Mac OS X (10.6.2), Snow Leopard Server
  • terryc Level 1 Level 1 (0 points)
    Of course the work around is to manually assign the server an IP (and as an option set-up IP reservation at the router) and that works (probably not a bad idea for a server).

    The only change I made was to turn off Security in server preferences and I am now back to the mini-server accepting and an IP from the DHCP server on the router. That said I don't believe that was the issue in the first instance.

    Best regards. Terry
    Quad Core, Mac OS X (10.4.6), New MacBook, G4 PowerBook
  • Michael Tessier-Ashpool Level 1 Level 1 (0 points)
    Ok. I solved this problem on my machine and it sounds like you all may be having the same issue. I'm posting my resolution here in hopes it can save some other Mac users a bit of frustration.

    In my case, my Mac Mini server had a messed up firewall plist, resulting in the machine not even responding to DHCP, so I:
    1) Turned off the firewall
    2) Deleted the configuration file at /Library/Preferences/com.apple.alf.plist
    3) Turned firewall back on and recreated the rules I had previous to it going rogue on me.

    This process is also described here: http://www.lockergnome.com/it/2009/02/09/mac-dhcp-wireless-connection-broken-wit h-self-assigned-ip-address/

    All the credit to Mr. Hughes for this one, because I didn't even think the firewall could freak out to that extent, but there you go. :P

    Hope this helps someone else!
    MacBook, iMac, Mac Mini Server, Mac OS X (10.6.2)
  • Mauricette Calculating status...
    You guys are wrong! It is totally NORMAL and is totally what Server Mac mini does in its position.

    Mac mini OS Server considered itself as a SERVER, NOT client, thus, you cannot treat it as a client. Normally, Mac mini will get its IP address easily from a DHCP Server, it could be from a Router or a PC Server or a Mac Server or directly from ISP's Server(probably with 1 arranged IP).

    When you are using Mac OS Server in Mac mini, you won't get an IP easily from a DHCP Server, whether it is from a Router or another Mac Server or PC Server or ISP.

    In fact, a DHCP is still sending some info exchanged with your Mac mini Server, so you can still hook on the Internet but a exclamation mark will appear on AirPort.
    Mac Mini 2.66Ghz Core 2, Mac OS X (10.6.4), 8GB memory with Apple Keyboard
  • Mauricette Level 1 Level 1 (35 points)
    Because Mac mini Server itself is running a DHCP server. You can still hook on the Internet but a exclamation mark will appear on AirPort.
    Mac Mini 2.66Ghz Core 2, Mac OS X (10.6.4), 8GB memory with Apple Keyboard
  • khmk Calculating status...
    I had the same problem - I returned home a few days after setting up the server and it was no longer connected to the Internet, and could not get an IP address through DHCP, neither from Ethernet nor Airport.

    Thanks to this discussion, I realized it has to be a Firewall problem:

    It seems that the FW blocks the DHCP request/reply traffic with the router. The server dropped the IP connection apparently because the DHCP lease needed to be renewed while I was away. As soon as I was able to turn the FW off, DHCP could be renewed. When I turned the FW on again, the renewal appeared to take place (the address information on the settings pane was correct) but within about ten seconds the Ethernet connection had died (and the address information on the pane was cleared).

    The quirk in the process was that after restarts etc. I was not able to turn the FW off, because the server admin pane did not work, apparently as it did not get a connection to the LDAP server as it had no working IP address etc. So to get that working, I had to first get the IP addresses working, and I was able to do that by setting them manually.

    So there seems to be nothing wrong or weird with the FW settings, it is just easy to configure the system so that this problem emerges by accident: you choose to set the IP dynamically with DHCP when the FW is off and then you turn it on and everything continues to work until the time comes to renew the IP.

    So, to solve the problem there are two routes:

    1) if you want to assign the IP dynamically from DHCP, you need to either not have the FW running or open up the ports necessary for the traffic. I did not research this option but browsing a bit it appears to involve ports 68 and 69.

    2) set the IP manually, so that the server does not need to route DHCP traffic through its FW. To have a static local IP address of course makes sense for a server anyway in most cases.

    Thanks for the previous posts that pointed in the right direction.
  • PeaceTek Calculating status...

    That 'corrupt' file solved my problem! Thanks for posting that. Every once in awhile my G4 goes 'DHCP' nuts... now I know why! I'm going to keep this one...

  • Coolmax Calculating status...

    Mauricette has a point.

     

    A server function is not designed to accept a floating or dynamic IP address.  If that is the case, how do you create firewall rules that prevent those unnnecessary ports being left opened from being attacked by rogue machines in Romania and China on a hourly basis when you announce to the world that your server is available if the server IP address keep changing due to the DHCP lease change?  Yes, they do have bots that do this VERY EFFICIENTLY!

     

    By changing the very nature of your firewall rules by working with DHCP, you are opening ports you do not know to accommodate DHCP dynamic addressing, which was the reason why your Mac Mini Server stopped working in the first place.  It's ok for a client, since a client isn't serving any files to any one right.

     

    By using client based firewall rules, you are exposing your server to attacks and when they get through your Mini server, which they can if they are persistent, they get into your home network and then whatever file server services you have opened and unprotected at the time WILL BE copied by these people easily. 

     

    I have a client once who did just that.  She was attacked, the hacker went through her network like a rampaging bull.  They were from China.  My Synology RAID server gets this attack all the time, but I have a well establish IDS system and the Synology RAID has logs that tracks attacks.

    For a server setup.  Use static IP and then build a strong firewall around it and protect it and never compromise.

     

    Recently, I just noticed someone somehow hacked and broke my WPA-PSK AES passkey for one of my Wireless N network router.  It was not set up with a strong password though, but thankgod I had a firewall around that so my internal networks were safe. So this teaches you that if someone wants in bad, they will get in. 

     

    Hope this helps.

  • Always_Learning Level 1 Level 1 (0 points)

    This is not a firewall problem and our Mac Mini Server certainly is not running its own DHCP service. (Anyone can check that easily enough, btw, by looking for ports 67 and 68 in the output of sudo netstat -an | grep udp)

     

    Watching the wire from another machine you can also see the DHCPDISCOVER, DHCPOFFER, DHCPREQUEST and DHCPACK packets going back and forth.

     

    In our case we're running a Windows 2008 R2 DHCP server with a MAC reservation for the Mac Mini Server's ethernet MAC (its WiFi is turned off). What I found is that is you specify a DHCP Client ID in the settings it would kybosh the reservation in Windows and send back a dynamic address instead. Don't set the DHCP Client ID and it works OK.

     

    In the DHCPDISCOVER packet it is prefixing the Client ID with a NUL character, so I'm wondering if this is a actually a bug...

    ===============================================================================

    udp/67 2012-05-18 13:04:41

    op = BOOTREQUEST

    htype = HTYPE_ETHER

    hlen = 6

    hops = 0

    xid = 659fb5a7

    secs = 1

    flags = 0

    ciaddr = 0.0.0.0

    yiaddr = 0.0.0.0

    siaddr = 0.0.0.0

    giaddr = 0.0.0.0

    chaddr = 406c8f03e555

    sname =

    file =

    Options :

    DHO_DHCP_MESSAGE_TYPE(53) = DHCPDISCOVER

    DHO_DHCP_PARAMETER_REQUEST_LIST(55) = 1 3 6 15 119 95 252 44 46

    DHO_DHCP_MAX_MESSAGE_SIZE(57) = 1500

    DHO_DHCP_CLIENT_IDENTIFIER(61) = \x00cripps

    DHO_DHCP_LEASE_TIME(51) = 7776000

    DHO_HOST_NAME(12) = cripps

    padding [18] = 000000000000000000000000000000000000

    ===============================================================================

  • matt11011011 Calculating status...

    This is the exact same issue ive encountered with my Mac Mini Server.... seems to be a bigger issue than i thought

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.