Skip to content

Internet Access from Edison via the USB OTG Ethernet

Hippie Hacker edited this page Jul 20, 2015 · 2 revisions

On the Edison:

ifconfig usb0 up
route add default dev usb0 gw 192.168.2.2
echo 'nameserver 8.8.8.8' > /etc/resolve.conf

On your PC:

sudo ifconfig enp0s20u2c2 192.168.2.2
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -j MASQUERADE
Clone this wiki locally