Hello,

I have a problem with ethernet interface on Nanopi NEO Core: if I unplug the ethernet cable and then I plug another cable of another network, the device does not change IP address until the NetworkManager service is restarted. It seems that the problem is solved by adding the following lines in the file "/etc/network/interfaces":

Code: Select all

allow-hotplug eth0
iface eth0 inet dhcp


and editing this line in the "/etc/NetworkManager/NetworkManager.conf":

Code: Select all

managed=false


that become

Code: Select all

managed=true


The problem is that I need to change the parameters of the connection from a my program using the command nmcli and, with the solution just shown, that connection is in read-only mode, so I can not edit it. I was thinking of writing a script to restart the NetworkManager service when a connection interruption is detected (the cable is disconnected). I also noticed that in other devices that use embedded linux, this problem does not occur because when a new ethernet cable is connected the IP address changes automatically.

Regards
Marco