3 Replies Latest reply: Mar 5, 2014 2:39 PM by Ronan Donohoe
3Dhendo Level 1 Level 1 (0 points)
Hey dudes,

I have a MacAir that cannot get DHCP settings from my router. All other devices in the office can DHCP okay, including ones at home tunnelling in through my VPN access.

- If I use manual settings I can connect fine, but the minute I choose DHCP it results in 169 address.
- This affects both ethernet and airport
- This is the only device this happens with. the other devices (iPhones, iPads, Macs, PCs etc.) in the office work fine
- No MAC filtering on router
- router otherwise fine, giving DHCP to all devices and allowing VPN use for other users connecting from home
- if I bind an IP to the Mac address of the airport/ethernet adapter, it works as well.

So it's only as issue on the MacAir 10.6.6, and it's only a problem with 100% dynamic IPs from the router (i.e. no static or reserved)

Personally, I think that a security setting or network security setting are preventing the two from talking. I have a log file and I guess the bits that stand out for me, although I have little idea how to decipher most of this, are:

"ARP detect router got no response"
"lease terminated"






-----------------------------------------------------------------------------
CONNECTION LOG FILE

Mar 11 09:49:20 emerald configd[14]: Changes: <array> {
Mar 11 09:49:20 emerald configd[14]: 0 : State:/Network/Interface/en0/Link
Mar 11 09:49:20 emerald configd[14]: } (1)
Mar 11 09:49:20 emerald configd[14]: en0 link is down
Mar 11 09:49:20 emerald configd[14]: en0: no SSID
Mar 11 09:49:20 emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 emerald configd[14]: timer: wakeup time is (1.000000) 321529762
Mar 11 09:49:20 emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 emerald configd[14]: timer: wakeup time is (1.000000) 321529762
Mar 11 09:49:20 emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 emerald configd[14]: Changes: <array> {
Mar 11 09:49:20 emerald configd[14]: 0 : State:/Network/Interface/en0/Link
Mar 11 09:49:20 emerald configd[14]: } (1)
Mar 11 09:49:20 emerald configd[14]: en0 link is up
Mar 11 09:49:20 emerald configd[14]: en0: SSID is Top10
Mar 11 09:49:20 emerald configd[14]: Sremove_ipaddress(en0) 192.168.1.181
Mar 11 09:49:20 emerald configd[14]: servicepublishclear: Remove = <array> {
Mar 11 09:49:20 emerald configd[14]: 0 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/IPv4
Mar 11 09:49:20 emerald configd[14]: 1 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DNS
Mar 11 09:49:20 emerald configd[14]: 2 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DHCP
Mar 11 09:49:20 emerald configd[14]: }
Mar 11 09:49:20 emerald configd[14]: DHCP en0: status = 'media inactive'
Mar 11 09:49:20 emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 emerald configd[14]: LINKLOCAL en0: probing 169.254.200.123
Mar 11 09:49:20 emerald configd[14]: arpclient_openfd (en0): refcount 1
Mar 11 09:49:20 emerald configd[14]: arpclient_openfd (en0): opened bpf fd 16
Mar 11 09:49:20 emerald configd[14]:
Mar 11 09:49:20 emerald configd[14]: timer: wakeup time is (0.400000) 321529761
Mar 11 09:49:20 emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 emerald configd[14]: DHCP en0: INIT-REBOOT (192.168.1.181)
Mar 11 09:49:20 emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20: --- last message repeated 1 time ---
Mar 11 09:49:20 emerald configd[14]: bootpclient_opensocket (en0): refcount 1
Mar 11 09:49:20 emerald configd[14]: bootpclient_opensocket(): opened bootp socket 18
Mar 11 09:49:20 emerald configd[14]:
Mar 11 09:49:20 emerald configd[14]: DHCP en0: ARP detect router starting
Mar 11 09:49:20 emerald configd[14]: 1. sender 192.168.1.181 target 192.168.1.254
Mar 11 09:49:20 emerald configd[14]: arpclient_openfd (en0): refcount 2
Mar 11 09:49:20 emerald configd[14]: timer: wakeup time is (0.015000) 321529761
Mar 11 09:49:20 emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 emerald configd[14]: DHCP en0: INIT-REBOOT (192.168.1.181) waiting at 0 for 1.059933
Mar 11 09:49:20 emerald configd[14]: timer: wakeup time is (1.059933) 321529762
Mar 11 09:49:20 emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 emerald configd[14]: arpclient_closefd(en0): bpf open fd count is 1
Mar 11 09:49:20 emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 emerald configd[14]: timer: wakeup time is (2.000000) 321529763
Mar 11 09:49:20 emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 emerald configd[14]: network configuration changed.
Mar 11 09:49:20 Emerald configd[14]: setting hostname to "Emerald.local"
Mar 11 09:49:20 Emerald configd[14]: before_blocking: calling Slinklocalelect
Mar 11 09:49:20 Emerald configd[14]: Service_free(LINKLOCAL-en0)
Mar 11 09:49:20 Emerald configd[14]: LINKLOCAL en0: stop
Mar 11 09:49:20 Emerald configd[14]: servicepublishclear: Remove = <array> {
Mar 11 09:49:20 Emerald configd[14]: 0 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/IPv4
Mar 11 09:49:20 Emerald configd[14]: 1 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DNS
Mar 11 09:49:20 Emerald configd[14]: 2 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DHCP
Mar 11 09:49:20 Emerald configd[14]: }
Mar 11 09:49:20 Emerald configd[14]: LINKLOCAL en0: status = 'operation succeded'
Mar 11 09:49:20 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 Emerald configd[14]: servicepublishclear: Remove = <array> {
Mar 11 09:49:20 Emerald configd[14]: 0 : State:/Network/Service/LINKLOCAL-en0/IPv4
Mar 11 09:49:20 Emerald configd[14]: 1 : State:/Network/Service/LINKLOCAL-en0/DNS
Mar 11 09:49:20 Emerald configd[14]: 2 : State:/Network/Service/LINKLOCAL-en0/DHCP
Mar 11 09:49:20 Emerald configd[14]: }
Mar 11 09:49:20 Emerald configd[14]: deleting subnet for 169.254/16
Mar 11 09:49:20 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 Emerald configd[14]: timer: wakeup time is (0.015000) 321529761
Mar 11 09:49:20 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 Emerald configd[14]: before_blocking: calling Slinklocalelect
Mar 11 09:49:20 Emerald configd[14]: deleting subnet for 169.254/16
Mar 11 09:49:20 Emerald configd[14]: subnet_route: write routing socket failed, No such process
Mar 11 09:49:20 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 Emerald configd[14]: timer: wakeup time is (0.015000) 321529761
Mar 11 09:49:20 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:20 Emerald configd[14]: arpclient_closefd(en0): bpf open fd count is 0
Mar 11 09:49:20 Emerald configd[14]: arpclient_closefd(en0): closing bpf fd 16
Mar 11 09:49:20 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:20 Emerald configd[14]: DHCP en0: ARP detect router got no response
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: ARP detect router starting
Mar 11 09:49:21 Emerald configd[14]: 1. sender 192.168.1.181 target 192.168.1.254
Mar 11 09:49:21 Emerald configd[14]: arpclient_openfd (en0): refcount 1
Mar 11 09:49:21 Emerald configd[14]: arpclient_openfd (en0): opened bpf fd 16
Mar 11 09:49:21 Emerald configd[14]:
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (0.015000) 321529762
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: INIT-REBOOT (192.168.1.181) waiting at 1 for 2.928482
Mar 11 09:49:21 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (2.928482) 321529765
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:21 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (0.015000) 321529762
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:21 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (0.015000) 321529762
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:21 Emerald configd[14]: arpclient_closefd(en0): bpf open fd count is 0
Mar 11 09:49:21 Emerald configd[14]: arpclient_closefd(en0): closing bpf fd 16
Mar 11 09:49:21 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: ARP detect router got no response
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: got DHCP NAK
Mar 11 09:49:21 Emerald configd[14]: servicepublishclear: Remove = <array> {
Mar 11 09:49:21 Emerald configd[14]: 0 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/IPv4
Mar 11 09:49:21 Emerald configd[14]: 1 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DNS
Mar 11 09:49:21 Emerald configd[14]: 2 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DHCP
Mar 11 09:49:21 Emerald configd[14]: }
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: status = 'lease terminated'
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: UNBOUND (NAK)
Mar 11 09:49:21 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:21 Emerald configd[14]: bootpclient_closesocket(en0): refcount 0
Mar 11 09:49:21 Emerald configd[14]: bootpclient_closesocket(): scheduling delayed close
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (1.000000) 321529763
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (0.001000) 321529762
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:21 Emerald configd[14]: before_blocking: calling Slinklocalelect
Mar 11 09:49:21 Emerald configd[14]: deleting subnet for 169.254/16
Mar 11 09:49:21 Emerald configd[14]: subnet_route: write routing socket failed, No such process
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: INIT
Mar 11 09:49:21 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:21: --- last message repeated 1 time ---
Mar 11 09:49:21 Emerald configd[14]: bootpclient_opensocket (en0): refcount 1
Mar 11 09:49:21 Emerald configd[14]: bootpclient_opensocket(): socket is still open
Mar 11 09:49:21 Emerald configd[14]: DHCP en0: INIT waiting at 0 for 1.366575
Mar 11 09:49:21 Emerald configd[14]: timer: wakeup time is (1.366575) 321529763
Mar 11 09:49:21 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:22 Emerald configd[14]: Changes: <array> {
Mar 11 09:49:22 Emerald configd[14]: 0 : State:/Network/Interface/utun0/Link
Mar 11 09:49:22 Emerald configd[14]: } (1)
Mar 11 09:49:22 Emerald configd[14]: Changes: <array> {
Mar 11 09:49:22 Emerald configd[14]: 0 : State:/Network/Interface
Mar 11 09:49:22 Emerald configd[14]: 1 : State:/Network/Interface/utun0/Link
Mar 11 09:49:22 Emerald configd[14]: } (2)
Mar 11 09:49:23 Emerald configd[14]: DHCP en0: INIT waiting at 2 for 2.246694
Mar 11 09:49:23 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:23 Emerald configd[14]: timer: wakeup time is (2.246694) 321529766
Mar 11 09:49:23 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:25 Emerald configd[14]: DHCP en0: INIT waiting at 4 for 4.864008
Mar 11 09:49:25 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:25 Emerald configd[14]: timer: wakeup time is (4.864008) 321529770
Mar 11 09:49:25 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:30 Emerald configd[14]: DHCP en0: INIT waiting at 9 for 8.979334
Mar 11 09:49:30 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:30 Emerald configd[14]: timer: wakeup time is (8.979334) 321529779
Mar 11 09:49:30 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:39 Emerald configd[14]: DHCP en0: INIT waiting at 18 for 8.542113
Mar 11 09:49:39 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:39 Emerald configd[14]: timer: wakeup time is (8.542113) 321529788
Mar 11 09:49:39 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:39 Emerald configd[14]: before_blocking: calling Slinklocalelect
Mar 11 09:49:39 Emerald configd[14]: siocprotoattach(en0) failed, File exists (17)
Mar 11 09:49:39 Emerald configd[14]: LINKLOCAL en0: start
Mar 11 09:49:39 Emerald configd[14]: LINKLOCAL en0: probing 169.254.200.123
Mar 11 09:49:39 Emerald configd[14]: arpclient_openfd (en0): refcount 1
Mar 11 09:49:39 Emerald configd[14]: arpclient_openfd (en0): opened bpf fd 16
Mar 11 09:49:39 Emerald configd[14]:
Mar 11 09:49:39 Emerald configd[14]: timer: wakeup time is (0.400000) 321529780
Mar 11 09:49:39 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:39 Emerald configd[14]: deleting subnet for 169.254/16
Mar 11 09:49:39 Emerald configd[14]: subnet_route: write routing socket failed, No such process
Mar 11 09:49:39 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:39 Emerald configd[14]: timer: wakeup time is (0.400000) 321529780
Mar 11 09:49:39 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:40 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:40 Emerald configd[14]: timer: wakeup time is (0.400000) 321529781
Mar 11 09:49:40 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:40 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:40 Emerald configd[14]: timer: wakeup time is (0.400000) 321529781
Mar 11 09:49:40 Emerald configd[14]: timer: adding timer source
Mar 11 09:49:40 Emerald configd[14]: arpclient_closefd(en0): bpf open fd count is 0
Mar 11 09:49:40 Emerald configd[14]: arpclient_closefd(en0): closing bpf fd 16
Mar 11 09:49:40 Emerald configd[14]: timer: freeing timer source
Mar 11 09:49:40 Emerald configd[14]: servicesetaddress(en0): 169.254.200.123 netmask 255.255.0.0 broadcast 169.254.255.255
Mar 11 09:49:40 Emerald configd[14]: host_route: write routing socket failed, No such process
Mar 11 09:49:40 Emerald configd[14]: State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/IPv4 = <dictionary> {
Mar 11 09:49:40 Emerald configd[14]: Addresses : <array> {
Mar 11 09:49:40 Emerald configd[14]: 0 : 169.254.200.123
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: InterfaceName : en0
Mar 11 09:49:40 Emerald configd[14]: SubnetMasks : <array> {
Mar 11 09:49:40 Emerald configd[14]: 0 : 255.255.0.0
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: publish_keys: Set = <dictionary> {
Mar 11 09:49:40 Emerald configd[14]: State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/IPv4 : <dictionary> {
Mar 11 09:49:40 Emerald configd[14]: Addresses : <array> {
Mar 11 09:49:40 Emerald configd[14]: 0 : 169.254.200.123
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: InterfaceName : en0
Mar 11 09:49:40 Emerald configd[14]: SubnetMasks : <array> {
Mar 11 09:49:40 Emerald configd[14]: 0 : 255.255.0.0
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:40 Emerald configd[14]: publish_keys: Remove = <array> {
Mar 11 09:49:40 Emerald configd[14]: 0 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DNS
Mar 11 09:49:40 Emerald configd[14]: 1 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/SMB
Mar 11 09:49:40 Emerald configd[14]: 2 : State:/Network/Service/30AB5744-A657-4EBF-83C0-8F6C673B8471/DHCP
Mar 11 09:49:40 Emerald configd[14]: }
Mar 11 09:49:41 Emerald configd[14]: before_blocking: calling Slinklocalelect
Mar 11 09:49:41 Emerald configd[14]: subnet for 169.254/16 still good on interface en0
Mar 11 09:49:41 Emerald configd[14]: network configuration changed.
Mar 11 09:49:42 emerald configd[14]: setting hostname to "emerald.local"
Mar 11 09:49:47 emerald configd[14]: DHCP en0: INIT waiting at 26 for 8.855147
Mar 11 09:49:47 emerald configd[14]: timer: freeing timer source
Mar 11 09:49:47 emerald configd[14]: timer: wakeup time is (8.855147) 321529797

MacAir, Mac OS X (10.6.6)
  • William Boyd, Jr. Level 6 Level 6 (10,515 points)
    3Dhendo wrote:
    I have a MacAir that cannot get DHCP settings from my router.


    Welcome to Apple's discussion groups.

    It might help to reset the connection settings on your Mac using these steps one at a time until the problem is resolved, recognizing that, depending on your problem, not all of these steps will make sense:

    1) Use the AirPort menu bar item to turn AirPort off, then on again.

    2) Try to select your Wi-Fi network from the AirPort menu.

    3) In the Network panel of System Preferences delete the AirPort item from the left column, then add it back.

    4) In the same panel as (3), define a new location and see if you can make that work.

    5) In the same panel, select the AirPort connection item, click the "Advanced" button, select the "TCP/IP" tab, then click "Renew DHCP Lease".

    6) In the folder /Library/Preferences ( not <yourhomefolder>/Library/Preferences), move the folder SystemConfiguration onto the Desktop, then restart your computer. See if you can now make your AirPort connection work.

    These steps may not help, but they'll only take a couple of minutes to try. Before you try these, if you have any special network settings on your Mac for things like DSL credentials, note all your network settings, because the latter steps will destroy them. If you got all the way to the last step, if things don't work any worse than before, you can trash the saved SystemConfiguration folder.

    By the way, in the future it might be better to post this type of question on the "Getting Online and Networking" section for your particular OS X version:

    http://discussions.apple.com/forum.jspa?forumID=1343
  • 3Dhendo Level 1 Level 1 (0 points)
    Hi, thanks for the reply. Sorry for posting in wrong place, first time Apple poster

    I have tried:
    1. Renewing the lease
    2. Removing my airport connection and re-adding it again. Also did this with ethernet.

    Unfortunately none of these things have made a difference. I will try the network settings folder move and get back to you.

    Thanks!
  • Ronan Donohoe Level 1 Level 1 (20 points)

    I had this problem just appear out of nowhere. All I did was connect via ethernet to the router. Change the Wireless channel from 7 to 2. Reconnected the WiFi and put in the password and it managed to get an IP address and DHCP was working fine. Disconnected the Ethernet and still with the Router Console open, changed the wireless channel back to 7 again. No problems. Freak event. Hopefully wont reoccur!

    PS I recently changed the router security from WEP to WPA and maybe this was the cause but it was working for a good few days after the changover. I dunno, just happy it works now.

    Worth a try folks!