Can I add a second IP address to my HMI's Ethernet port?

Can I add a second IP address to my HMI's Ethernet port?
none 0.0 0

I have both LAN1 (192.1658.17.10) and LAN2 (192.168.17.11)setup to be in the same IP subnet and connected to the same ethernet switch, so I can update programs for both Codesys and HMI via remote access router.

I need to add a second IP address to HMI ethernet port to be able to push data to SQL server (10.0.20.50) that is in a different subnet.

Hi @vladmen,

For Weintek HMIs, you can only set one IP address per physical port and cannot set alternate IP addresses. You might be able to use a smart switch to help with routing, but we cannot guarantee the results.

Thank you!

Is the SQL push through the CODESYS PLC? If so, set that IP to whatever you need. IIRC you can just allow login through whatever LAN2 is set to in order to still work with the CODESYS runtime in your IDE.

CODESYS also allows you to make runtime changes to IP configs, but you need to be able to use extended diagnostics for the devices and I am not sure the Ethernet version supported by Weintek is new enough for this use case.

I’m using HMI logging to SQL feature, so your solution would not help.

I’m surprised that Weintek doe snot allow setting alternative IP addresses on the HMI Ethernet port – my understanding that it’s running under Linux and Linux has this capability.

Is there a reason you cannot set LAN2 to your desired IP for SQL and leave it set? What else are you using it for?

I have both Codesys and HMI IP addresses in the same subnet because I’m using remote access VPN router that can route to devices in the single subnet (the same subnet as LAN interface of the router). To be able to update both Codesys and HMI programs they have to be in the same accessible subnet.

You can update the CODESYS program through LAN2 regardless of it’s IP subnet in relation to LAN1, provided you allow CODESYS login through LAN2 in the HMI setup.

Still doesn’t sound like that will help you though as all other devices on your router are not in the subnet needed for SQL, and you cannot update the EB program through LAN1 when using CODESYS.