Hello,
You can enable the g_ether gadget to connect to your device (for instance through SSH over USB).
Edit /etc/modules to add the following lines:
Setup your config in /etc/modprobe.d/g_ether.conf
Code: Select all
options g_ether hostaddr=00:11:22:33:44:55
Create the usb interface in /etc/network/interfaces.d/usb0
Code: Select all
auto usb0
iface usb0 inet static
address xxx.xxx.xxx.yyy
netmask 255.255.255.0
gateway xxx.xxx.xxx.1
Last but not least, enable your interface in /etc/rc.local
Code: Select all
sudo ifconfig usb0 up
sudo ifconfig usb0 xxx.xxx.xxx.yyy
Note that this last part should not be needed but on my side the interface never goes up otherwise..
Although the post was sent long ago, I hope this will help you, or anyone looking for something similar!
