ArchLinux Internet Connection Sharing on BeagleBone Black

I have a BeagleBone Black connected directly to my desktop PC for development and testing. Occasionally, I need the BBB to connect to the internet, for example to download updated packages. This post describes how I am sharing the internet connection between the two computers.


I am making the following assumptions:

  • eno1 is the name network interface that is connected to the internet
  • enp12s0 is the name of the network interface on the BBB
  • The subnet used is /

Your configuration might be different, and you have to adjust the steps below accordingly.

Configure the Host PC that shares the internet

First, enable the network interface that is connected to the BBB and and set its IP address:

Then enable packet forwarding:

To make the forwarding settings persistent, a sysctl configuration file must be created:

Now enable network address translation (NAT) on the interface that is connected to the internet:

The host PC will now forward relevant traffic from the BBB to the internet.

Configure the BBB

Configure a static IP address and route:

Then configure any DNS servers, if needed (I use Google’s):

The BeagleBone Black should now be able to access the internet.

Related Resources

One Comment

  1. Now how would you undo these steps if needed?


Leave a Reply

Your email address will not be published. Required fields are marked *