Can't get a DHCP address from OS X - but works fine from Windows

My mac has suddenly stopped responding to DHCP. From Boot Camp (ie. Windows) it's getting the address without any problems. However, when I booted back to OS X, I couldn't get an IP address.

Things I've tried:
1.) Both wireless and wired interfaces. Same problem.
2.) I'm a unix geek; I have my own DHCP server, and I can look at its logs. I can see each DHCP request being sent by every system on my network. I can see the DHCP request being requested by my mac, and I can see the server sending a DHCP "offer" (ie. offering an address) back. However, my mac isn't accepting the address offered (192.168.1.3 - nothing special).

(For the technically minded, I'm getting something like the following:)
May 6 22:45:26 makron dhcpd: DHCPDISCOVER from 00:1b:63:0a:6c:6c (sluggo) via eth0
May 6 22:45:26 makron dhcpd: DHCPOFFER on 192.168.1.3 to 00:1b:63:0a:6c:6c (sluggo) via eth0
May 6 22:45:34 makron dhcpd: DHCPDISCOVER from 00:1b:63:0a:6c:6c (sluggo) via eth0
May 6 22:45:34 makron dhcpd: DHCPOFFER on 192.168.1.3 to 00:1b:63:0a:6c:6c (sluggo) via eth0
May 6 22:45:43 makron dhcpd: DHCPDISCOVER from 00:1b:63:0a:6c:6c (sluggo) via eth0
May 6 22:45:43 makron dhcpd: DHCPOFFER on 192.168.1.3 to 00:1b:63:0a:6c:6c (sluggo) via eth0

Note the absence of any DHCPACK packets... Over the same period, other hosts were able to get IP addresses renewed just fine.

I haven't added/removed any software from the system, and have changed no settings.

After that didn't work, I've tried rebooting, resetting the PRAM, and unplugging the power & holding the power button down for 10-15 seconds.

Still, no DHCP joy; and it's bizarre that I can't get it to work... even after turning any & all firewall/packet filtering off.

Any ideas?

MacBook Pro 17", Mac OS X (10.5.2)

Posted on May 6, 2008 10:04 PM

Reply
3 replies

May 7, 2008 1:21 AM in response to pariah0

These are sometimes stubborn little beasts. I have one that sometimes gets stuck on an IP number and refuses to give it up even when it is allocated to another Mac.

I am afraid I have zero experience of the Boot Camp setup and if (or why) that would interfere with the process.

Have you tried in Network preferences TCP/IP the Renew lease button: I find that sometimes makes it react; as well as restarting the router. An alternative to that is to switch to a manual setting, then switch back to DHCP after pressing Apply (then Apply again). That is like Dechamp's suggestion, but I would add to that and get you to switch back to DHCP. If the manual settings do not work, there may be other problems.

It is not clear how familiar you are with OS X, so excuse me if I suggest basics that you have already gone through: have you tried a different user account, and/or a different location instead of the default Automatic. Airport on/off; cables OK?

There should be (at least) a greyed out DNS number in the DNS settings panel: I presume that is being allocated?


I just remembered that some people had acknowledgement problems and I copied this idea from MacFixit a few weeks ago:

"A lot of people have been suffering slow LAN transfers after the 10.5.2 update and my podcast last week was excruciatingly slow although with local systems, who knows? MacFixit had this item covered last week and suggest that the transfer acknowledgement part of the protocol is to blame as it was too long. It was set to 3 and their fix sets it to 0. A protocol is the sort of handshake that goes on between devices.

The fix is a line of text that is typed into Terminal used in an Admin account:

sudo sysctl -w net.inet.tcp.delayed_ack=0"

As there is NO acknowledgement, I wonder if a change here might help.

Message was edited by: Graham K. Rogers

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't get a DHCP address from OS X - but works fine from Windows

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