Page 1 of 1

Connect to internet via ethernet to macbook pro

Posted: Sat Nov 12, 2016 10:36 pm
by nebulloyd
Hello,

I have a RPi 3b that I have accessed via terminal using 'ssh pi@raspberrypi.local' so I know it is connected to my computer.

In the network preferences I have the configure IPv4 set to 'using DHCP' and location 'automatic' but when I run any internet commands (ie. 'sudo apt-get update') I always get these failed to fetch and could not resolve errors
Screen Shot 2016-11-12 at 10.30.07 pm.png
Screen Shot 2016-11-12 at 10.30.07 pm.png (57.12 KiB) Viewed 779 times
my route says:

pi@raspberrypi:~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
link-local * 255.255.0.0 U 202 0 0 eth0

my ifconfig says:

pi@raspberrypi:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:1f:19:fd
inet addr:169.254.194.54 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::593c:fe18:5d19:feef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:326 errors:0 dropped:0 overruns:0 frame:0
TX packets:210 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:48087 (46.9 KiB) TX bytes:34870 (34.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:448 errors:0 dropped:0 overruns:0 frame:0
TX packets:448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:36544 (35.6 KiB) TX bytes:36544 (35.6 KiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:4a:4c:a8
inet6 addr: fe80::d7cf:b4d3:3be9:467b/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2352 errors:0 dropped:2352 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1125965 (1.0 MiB) TX bytes:0 (0.0 B)


Does anyone know why I can't access the internet??

Re: Connect to internet via ethernet to macbook pro

Posted: Sat Nov 12, 2016 10:43 pm
by fruitoftheloom
Did you setup Connection Sharing in OSX ??

https://support.apple.com/kb/PH18704?locale=en_US

Re: Connect to internet via ethernet to macbook pro

Posted: Sat Nov 12, 2016 10:50 pm
by nebulloyd
I think you're on to something here...but I got this error when i turned internet sharing on
Screen Shot 2016-11-12 at 10.49.44 pm.png
Screen Shot 2016-11-12 at 10.49.44 pm.png (28.39 KiB) Viewed 724 times
Would this be because I am using my University's internet?

Re: Connect to internet via ethernet to macbook pro

Posted: Sat Nov 12, 2016 11:24 pm
by nebulloyd
Just got home and everything is working now, thank you so much for your time...now on to the next one