- There's a subnet that has an IP: 172.16.218.0 (which is company's main network connected directly to the internet through the router)
- Second subnet would be the network with the IP: 192.168.0.0
- Between the network 172.16.218.0 and 192.168.0.0 there's another router (router 2), which is used for VPN-connection with devices in the network 192.168.0.0 (remote access from outside the company network).
Now there's a device (device 1 - virtual server) in the network 172.16.218.0, which need to exchange the data with another device (device 2 - Siemens PLC) in the network 192.168.0.0 via so called OPC-Server (used mainly in industrial automation). Ideal situation would be that these two devices were in the same subnet, but unfortunately that's not the case.
I had trouble to configure the router 2, so it would work as VPN-interface and at the same time would allow data exchange between device 1 and device 2. I have added the route using "add route" command but it didn't work (route between device 1 and 2).
My idea was to configure yet another router (router 3) between device 1 and device 2 and establish VPN connection between them. Before I do that, I wanted to ask if that all makes sense.
Edit: to be more specific: I added a picture in which you can see how the structure of the network looks like.
- Devices on the subnet 1 are getting IP-Adresses via DHCP.
- Devices on the subnet 2 are getting static IP-Addresses.
- Router 1 is used to get an access to internet.
- Router 2 is used to make a tunnel for a remote access to devices on the subnet 2 from outside subnet 1 and subnet 2 (via Internet).
- Device 1 and Device 2 need to communicate somehow (there is an OPC-Server running on the device 1).
- OPC-Communication works perfectly if the Device 1 and Device 2 are on the same subnet.
In the configuration of the OPC-Server (Device 1) we can set the IP-Address of the slave (Device 2) and the communication should already work (assuming we are on the same subnet). Here it's more complicated as they are on two different subnets.
- Router 2 is configured using mbConnect24 (Web Client) and router itself is an industrial router (mbNET). In the configuration there're two main aspects - LAN-Address for subnet 2 (192.168.0.0), let's say 192.168.0.100 and WAN address via DHCP. Configuration of this router is loaded to the device using mbConnect24 Portal.
- Now the question is - how to configure that network that Device 1 and 2 can exchange data?
That you for your help.