Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
BBB Testers
x15: (Master):
sudo dhclient eth1
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
BBB (Mini-Master):
debian@beaglebone:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1boot0 179:16 0 1M 1 disk
mmcblk1boot1 179:24 0 1M 1 disk
mmcblk0 179:0 0 7.4G 0 disk
└─mmcblk0p1 179:1 0 7.4G 0 part /media/debian/storage
mmcblk1 179:8 0 3.7G 0 disk
├─mmcblk1p1 179:9 0 96M 0 part /media/debian/BEAGLEBONE
└─mmcblk1p2 179:10 0 3.6G 0 part /
# Ethernet/RNDIS gadget (g_ether)
iface usb0 inet static
address 192.168.8.2
netmask 255.255.255.252
network 192.168.8.0
gateway 192.168.8.1
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
route add default gw 192.168.8.1
BBB (slave-tester)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment