Marco-Omniabit Posted August 21, 2018 Share Posted August 21, 2018 Hello, in the company where I work, a nanopi M1 plus was purchased and we are developing a firmware to run on the device. In our code we need to change the settings of the active wired connection at that time, but we can not do it due to an error. If, for example, we use the following command: nmcli connection modify 'Ifupdown (eth0)' ipv4.method auto The following error message is returned. Error: failed to modify connection 'Ifupdown (eth0)': Connection is read-only The command is executed correctly if the connection is not managed by NetworkManager, so when in the file: "NetworkManager.conf" the "managed" parameter is set to false. We had to set it to true because otherwise, by changing the ethernet cable and inserting another of another subnet, we realized that the device keeps the old IP address and therefore is unreachable. So how could we solve that problem? Regards Marco Link to comment Share on other sites More sharing options...
Marco-Omniabit Posted August 22, 2018 Author Share Posted August 22, 2018 I solved the problem by removing all the references to the wired connection from the "/etc/network/interfaces" file and creating one in NetworkManager. Clearly I set the "managed" parameter to "false" in NetworkManager.conf Regards Marco Link to comment Share on other sites More sharing options...
Recommended Posts