I am experiencing some problems when trying to change IP-address, subnet mask and default gateway using Codesys standard method "UpdateConfiguredIpSettings". The IP and netmask is updated when the code is executed, but the gateway cannot be changed. I have attached a picture of the running code. And a gif showing displaying the problem.
Any ideas on what I can try? Am I missing a configuration parameter in the .cfg file or is there any other Linux background setting I need to change?
I am using codesys 3.16.3 together with the 22.214.171.124 runtime on a raspberry Pi CM3 based PLC. Network config is done in /etc/network/interfaces.d/*.
The options "Adjust operating system settings" is checked under the Ethernet device.
I have the following configuration in the CODESYSControl_User.cfg file:
Log in to post a comment.