What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()

DavidBo
2025-11-04
2025-11-12
  • DavidBo - 2025-11-04

    I have done:

    systemctl stop dhcpcd
    sudo ip addr flush dev eth0
    sudo ip link set eth0 up

    but a call to SysSockSetIpAddressAndNetMask does not give the eth0 an IP address

    Why?

     
  • nano - 2025-11-11

    have u turned on the Ip-Setter in codesyscontrol.cfg?

    [SysSocket]
    Adapter.0.Name="eth0"
    Adapter.0.EnableSetIpAndMask=1

     
  • DavidBo - 2025-11-12

    I have now and it works. I had the idea that it had something to do with codesyscontrol.cfg, but where can I find a description of all the things you can set in codesyscontrol.cfg and its syntax?

     

Log in to post a comment.