I’ve been having issues connecting to the outside network and I have absolutely no clue why…
There was no issues in installing the drivers and accessing my browser at http://192.168.7.2
Also there was no issues to ssh into the root
The BBB is running the latest upgrade:
root@beaglebone:~# uname -a
Linux beaglebone 3.8.13 #1 SMP Wed Sep 4 09:09:32 CEST 2013 armv7l GNU/Linux
In the Mac OSX (running ver. 10.9.5) I went into System Preferences > Sharing > Allowed Internet Sharing (via WIFI) for the BeagleBone Black
Also, I disabled the Firewall by going into System Preferences > Security & Privacy > Firewall > Turn off Firewall
I turned on the gatewaying in order to forward traffic onto the BBB by doing the following on the OS X terminal:
sudo su
ifconfig en3 192.168.7.1 (where en3 is the BBB’s interface)
sysctl -w net.inet.ip.fw.enable=1
sysctl -w net.inet.ip.forwarding=1
natd -interface en0 (where en0 is the interface for the Mac’s Internet connection)
ipfw add divert natd ip from any to any via en0
I followed some instruction found in this forum by modifing the /usr/bin/g-ether-load.sh script which sets up the USB Ethernet connection. I added the following 2 lines of codes to the bottom of the script file.
/sbin/route add default gw 192.168.7.1
echo “nameserver 8.8.8.8” >> /etc/resolv.conf
Yet, for some reason I still cannot reach the outside network on the BBB:
root@beaglebone:~# ping 8.8.8.8
connect: Network is unreachable
root@beaglebone:~# ping www.google.com
ping: unknown host www.google.com
Below is the information of the network and the IP routing table when running ifconfig and route on the BBB
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr 1C:BA:8C:90:38:5D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:56
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:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1520 (1.4 KiB) TX bytes:1520 (1.4 KiB)
usb0 Link encap:Ethernet HWaddr 8E:1A:FF:1B:E6:B6
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2166 errors:0 dropped:0 overruns:0 frame:0
TX packets:1527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:176350 (172.2 KiB) TX bytes:561859 (548.6 KiB)
root@beaglebone:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 * 255.255.255.252 U 0 0 0 usb0
After getting tired of having the same problem over and over I went on my friends computer (running Windows 7) and followed the instructions found in this tutorial and had no problems connecting the first try…
https://www.youtube.com/watch?v=fzRVVtGNfj8&list=UUf_sAmhBw7Tj7-2ujmLFoQg
I’m assuming that there’s an issue with the Mac internet sharing…
What am I doing wrong? Any input would be appreciated…
Thanks!!