I've set up a direct ethernet connection with between PI (192.168.2.2) and my imac (192.168.2.1). 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
0.0.0.0 192.168.2.1 0.0.0.0 UG 202 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 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!
ssh
OR the internet withICS
NOT BOTH. If you want to share internet TURN OFF static IP, and restore the default setting. – Milliways Dec 24 '15 at 01:13You can connect to the Pi using ssh OR the internet with ICS NOT BOTH
that sounds wrong, unless mac's do internet sharing in some stupid way. With internet sharing and the Pi set to DHCP, it still has an IP address that should be accessible to the Mac - after all, the Mac is providing the route to the internets – Jaromanda X Dec 24 '15 at 04:00ssh
usingssh pi@raspberrypi.local
and do asudo apt-get update
, so it appears possible. I couldn't get the Pi to successfully ping the internet, and could not usevnc
from the Mac. There have been some changes in the latest (usingdhcpcd
which letsssh
work over many protocols, evenlink-local
) so you may want to give it another try. – Milliways Dec 24 '15 at 05:21