Skip to content

Instantly share code, notes, and snippets.

@jagannath-sahoo
Last active December 6, 2020 05:31
Show Gist options
  • Save jagannath-sahoo/27549236302351eae2d680c114ec4777 to your computer and use it in GitHub Desktop.
Save jagannath-sahoo/27549236302351eae2d680c114ec4777 to your computer and use it in GitHub Desktop.
How to connect BBB with internet
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