Last active
December 6, 2020 05:31
-
-
Save jagannath-sahoo/27549236302351eae2d680c114ec4777 to your computer and use it in GitHub Desktop.
How to connect BBB with internet
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
| 1. Get the static Ip of beaglebone after connecting with pc and name space server to BBB | |
| vi /etc/resolv.conf | |
| nameserver 8.8.8.8 | |
| nameserver 8.8.4.4 | |
| get the BBB interface ip from Ubuntu | |
| run command | |
| sudo route add default gw 192.168.7.1 usb0 | |
| sudo route add default gw 192.168.6.1 usb1 | |
| 2. On Ubuntu check for the interfaces | |
| WAN: wlp3s0 | |
| USB Ethernet emulated by BBB: | |
| enx0cb2b7d052f0 | |
| enx0cb2b7d052f3 | |
| 3. we have to enable ip forwarding and ip to table | |
| iptables --table nat --append POSTROUTING --out-interface wlp3s0 -j MASQUERADE | |
| ptables --append FORWARD --in-interface enx0cb2b7d052f0 -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment