Created
October 15, 2017 20:01
-
-
Save jonathanwork/4e04092c4db0e4235e0628eb5260c21e to your computer and use it in GitHub Desktop.
beaglebone linux connection hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BeagleBone Black: | |
| ifconfig usb0 192.168.7.2 | |
| route add default gw 192.168.7.1 | |
| Host PC: | |
| sudo su | |
| #eth0 is my internet facing interface, eth3 is the BeagleBone USB connection | |
| ifconfig eth2 192.168.7.1 | |
| iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE | |
| iptables --append FORWARD --in-interface eth2 -j ACCEPT | |
| echo 1 > /proc/sys/net/ipv4/ip_forward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment