Hi Guys,
Do you know how to connect to cpu x20cp1584 over a remote Linux OS PC ?
I established A VPN connection between my PC and the remote PC and completed the ethernet settings on the remote PC. I can send pings to the CPU from remote PC. But I can not establish a connection from my PC.
Hi and welcome,
unfortunately I can’t answer it in detail, because I’m not so familiar with Linux.
But in common, this is an IP network topic, because the protocols I assume you want to use (ANSL for online connection, maybe HTTP/S for SDM or mappView visualization) are all TCP/IP based.
So it’s rather a PLC specific thing, I think the Linux device has to act as IP router, and has to route between the two networks “VPN” and “Linux to PLC network”.
If using IP routing, also the devices, “your local PC” and the PLC, have to have knowledge about the network infrastructure, so have to know “where to send the IP packets to”. Normally this is done by using the routers IP address as default gateway.
But in your setup including VPN, I think it’s not that easy (depending on the VPN used), because the default gateway normally points to the device that’s providing the internet connectivity, not to the device handling the VPN connection… all of this highly depends on your network structure, but I assume, you will not only need the Linux device as IP router, but also static IP routes at both endpoint devices (or at least the Linux router as default gateway in the PLCs setup + a static route on your local device).
Instead of pure IP routing, maybe the Linux device could act as a TCP port forwarder. I don’t know details, but I remember I heard that the Linux firewall, iptables, additionally can be used for port forwarding.
In such a usecase, static routes on the endpoints aren’t needed, because the port forwarding device receives the TCP packets directly, and send it to the configured port forward receiver… of course, then the port that is forwarded cannot be used on the forwarding machine itself, and the packets have to be sent to the forwarder, not to the endpoint (concrete, that means: the IP address in the Automation Studio Online connection would not be then the PLCs IP address, but the IP address of the Linux VPN device acting as forwarder).
Best regards.
1 Like
Hi Alexander,
Firstly, I want to thank you very much for spending your precious time assisting me.
I decided to follow the “VPN connection” route because I succeeded in making an online connection to the other brand’s PLC through a “Linux PC” by using a VPN connection on an IP network. I took this as a reference.
At that point, I have a question. I entered the IP of the “Linux PC” LAN address as a default gateway of the other brand’s PLC. I think I need to do the same thing on B&R PLC. Could you tell me How I can do that?
Kindly Regards
Hi,
the default gateway can be set inside the Automation Studio project, by opening the physical view, right-click on the PLC and choose configuration, and setting the default gateway under ethernet parameters.
Since this is a project setting, don’t forget to transfer the changes to the PLC after setup is finished.
Best regards.
1 Like