BBB networking in tethered mode

From Crashcourse Wiki

Jump to: navigation, search

On the BBB side, manually:

# route add default gw
# echo "nameserver" > /etc/resolv.conf

And on the server side:

# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -A POSTROUTING -t nat -j MASQUERADE

Back on the BBB, test:

root@beaglebone:~# ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_req=1 ttl=54 time=201 ms
64 bytes from ( icmp_req=2 ttl=54 time=93.8 ms
64 bytes from ( icmp_req=3 ttl=54 time=88.9 ms

(Back to BeagleBone Black page.)

Personal tools