Created
September 28, 2013 10:31
-
-
Save ichpuchtli/6740740 to your computer and use it in GitHub Desktop.
Virtual Ethernet & Internet Sharing for BBB on Arch Linux
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
#!/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