Power & Source of Big Ideas

NanoPi Neo Air Ethernet

Moderators: chensy, FATechsupport

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

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 6 guests