Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Share internet with BeagleBone Black
# -- Share Internet with the BeagleBone Black
# using my Linux HOST as a router
# Configure IP forwarding on HOST
echo "Setting up Routing"
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
echo "Configuring Router"
ssh root@$bbbAddr "/sbin/route add default gw $hostAddr"
# Add Google DNS Servers
echo "Configuring DNS"
ssh root@$bbbAddr "echo nameserver > /etc/resolv.conf"
ssh root@$bbbAddr "echo nameserver >> /etc/resolv.conf"
# Set date
echo "Setting Date"
ssh root@$bbbAddr "ntpdate -b -s -u"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.