I've set up a direct ethernet connection with between PI ( and my imac ( I can connect ok to the pi via ssh, but I am unable to connect to the internet from the Pi. I've turned on internet sharing and put a static IP on the pi with a gateway. Here is a route -n dump from the Pi

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    202    0        0 eth0   U     202    0        0 eth0

I think this could have something to do with the bridge on the my imac (yosemite 10.10.5). I've turned off the firewall - didn't do anything. I'm not too sure on where to go next with this one. Ideas anyone? Thanks!

  • 2
    You can connect to the Pi using ssh OR the internet with ICS NOT BOTH. If you want to share internet TURN OFF static IP, and restore the default setting. – Milliways Dec 24 '15 at 1:13
  • so if I turn off static IP will I then be able to use SSH and connect to the internet? I have been following this tutorial galem.wordpress.com/2014/10/14/… – andrew_b Dec 24 '15 at 1:43
  • 1
    No. You can have one or the other. Incidentally the link your have posted will NOT work with recent versions of Raspbian. See raspberrypi.stackexchange.com/questions/37920/… If you have a keyboard and monitor on the Pi use ICS. If you want to run the Pi headless you need some other network connection to get internet access. Why not just connect it to your router? – Milliways Dec 24 '15 at 2:46
  • Thanks - I have a wifi only router without ethernet and I am waiting on a wifi dongle for the Pi. I also don't have a keyboard (well I have a Mac one, but it's bluetooth). Might just have to wait for the dongle :) – andrew_b Dec 24 '15 at 3:27
  • 1
    I have to post a correction. I have tried this in the past, with no success. I just tried connecting my Pi2 running the latest Jessie (standard network setup) to OS X 10.7. I was able to ssh using ssh pi@raspberrypi.local and do a sudo apt-get update, so it appears possible. I couldn't get the Pi to successfully ping the internet, and could not use vnc from the Mac. There have been some changes in the latest (using dhcpcd which lets ssh work over many protocols, even link-local) so you may want to give it another try. – Milliways Dec 24 '15 at 5:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.