I have had a situation where I cannot access the internet and the network preferences list ethernet interface connected to DSL modem has self assigned IP address and cannot connect. It is set to connect via DHCP.
I Googled this problem and the instruction was to remove a file called com.apple.alf.plist from /Library/Preferences and then reboot.
I did this and the interface to the DSL shows that it is connected but I still cannot get to remote sites.
One probable cause of the (DHCP) self assigned IP address issue might have been a system upgrade or a crash or other significant event but there has been nothing like that.
I have been playing with the ethernet cables and now the preferences list the interface as having a self assigned ip address again.
EDIT: This machine has the internet connection to the built in ethernet port and a local network connection via usb/ethernet interface. I switched the internet connection to the USB/Ethernet interface via DHCP and I can now get to the Internet, and I can’t get to other hosts running on local network (now connected via built in ethernet port). I suspect that the built in ethernet port has a hardware problem).
EDIT 7/14:
- I want local network isolated from internet connected local network
- I am not looking for this machine to serve as a gateway from one network to another.
- The built in ethernet port/interface is not working properly
- I have removed the
com.apple.alf.plistfile from/Library/Preferencesand rebooted with no improvement, accept the "self assigned IP address" status doesn’t show and the Ethernet interface indicates that it is connected, but doesn’t send or receive anything. - I ran AHT (Apple Hardware Test) and nothing in the way of hardware was found to malfunction.
- I have another USB/Ethernet interface and am using that in lieu of using the built in ethernet port/interface. Both USB/ethernet interfaces work fine.
I know how to set interfaces with static private ip addresses, as well as using preferences to specify dchp. My ISP’s DSL modem is expecting interfaces on local hosts to use DCHP.
It gets a link so the cables are fine.
All the rest is fluff except for what you alraady tried. Next thing to try: 1a) Do other computers work via DHCP (aka is it you OSx install acting up or the DHCP server in the router). 1B) if you lack another computer, what happens when you configure en0 with a static IP and netmask on the same network as your router. Are you able to ping your gateway IP?
– Hennes Jul 13 '16 at 18:43ipconfig set en0 DHCPbased on http://superuser.com/questions/86956/release-renew-ip-address-via-terminal-in-os-x). – Hennes Jul 13 '16 at 18:45