Page 1 of 1

NanoPi Neo Air Ethernet

Posted: Sun Oct 07, 2018 10:51 pm
by danielwilson654
Hi All,

Is there a way to add an Ethernet connection to a Nanopi Neo Air without using a clunky usb?

Alternatively, what usb adapters work best?

Thanks!

Re: NanoPi Neo Air Ethernet

Posted: Mon Oct 08, 2018 5:01 am
by igorp
danielwilson654 wrote:
Alternatively, what usb adapters work best?
Thanks!


https://www.armbian.com/nanopi-neo-air/
and scroll down to the "Tested 3rd party hardware"

Re: NanoPi Neo Air Ethernet

Posted: Fri Feb 22, 2019 3:33 pm
by jib
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:

Code: Select all

dwc2
g_ether


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! :)