Skip to content

Instantly share code, notes, and snippets.

@ichpuchtli
Created September 28, 2013 10:31
Show Gist options
  • Save ichpuchtli/6740740 to your computer and use it in GitHub Desktop.
Save ichpuchtli/6740740 to your computer and use it in GitHub Desktop.
Virtual Ethernet & Internet Sharing for BBB on Arch Linux
#!/usr/bin/bash
# bealebone black virtual ethernet interface
sudo ifconfig usb0 up
sudo ifconfig usb0 192.168.10.1
# internet forwading
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
# On BealgeBone Black
# add our new gateway
#sudo route add default gw 192.168.10.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment