Change IP Address Using Daemon

Hello!

I am trying to change the ip address using a daemon user. When I run '/sbin/ip' link set eth0, the daemon returns RTNETLINK answers: Operation not permitted.

Is there a way to change the ip address using the daemon user? Or a way to solve the RTNETLINK error?

Thank you!

Could you please provide a BSP (Linux image) version you are using?

Hello @alex.tx!

I downloaded the Linux Demo with LXDE 2.8b7 using the Toradex Easy Installer.

Please let me know if this answered your question. Thank you so much for replying to my original message!

Please read this article - https://developer.toradex.com/knowledge-base/ethernet-network-linux#systemdnetworkd

Hi @samantha,

Are you going to change IP address or indeed MAC address? Exactly what command are you using, all arguments please? As I understand ip adds/removes IP addresses using ip addr …, not ip link … , though perhaps I don’t know something. Anyway please check this if you didn’t see it yet:
ip command cheat sheet

Regards,
Edward

Using connman’s D-Bus api would be the proper approach.

https://gist.github.com/tranthamp/2721326