Skip to content

Connecting BBB to Internet via USB Sharing

Arjun edited this page Apr 13, 2019 · 3 revisions

This is required only if you cannot connect the BBB to the internet via its own ethernet port. The steps here detail how to connect the BBB to the internet by sharing it over the host computers USB.

For Windows:

  • Install all the required drivers for BBB.
  • SSH into BBB and add a default gateway sudo /sbin/route add default gw 192.168.7.1
  • Got to network setting in Windows. Open properties of active internet connection. Go to the sharing tab and enable sharing. Select the ethernet connection corresponding to the BBB usb.
  • In windows, open properties of BBB ethernet connection. Change IP address to 192.168.7.1 and DNS to 8.8.8.8
  • SSH back into BBB and add a nameserver. To do this see if the /etc/resolv.conf file is editable. If so, add 'nameserver 8.8.8.8' as a line in the text file. This can be done in any text editor or using echo "nameserver 8.8.8.8" >> /etc/resolv.conf
  • If resolv.conf is uneditable or nonexistant or symbolic, then create it at the location /etc using sudo nano /etc/resolv.conf. Then follow same steps as above.
  • Try pinging www.google.com from BBB to see if internet is active.
Clone this wiki locally