Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

failed to modify connection with "nmcli" command, connection is read-only

Featured Replies

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

  • Author

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.