Hi Alain,
I had a look into the wireshark trace, and it looks a bit strange what I can see there.
Maybe it’s only a “follow-up issue” to your testing to reach the 2.nd device via VPN, at least it looks a bit like that for me, or I haven’t understood the whole architecture right now.
So, are the ModbusTCP master and slave are connected directly (via switch), or are they connected via a routing device / VPN?
I’m asking because I’ve seen that the TCP/IP device 10.11.12.2 (which is a ModbusTCP slave as I understood) is trying to communicate to an IP address 10.11.12.10 (which should be the ModbusTCP master and therefore the PLC, right?), but is using a MAC address of a Teltonika device (if wireshark decodes the MAC address right, I know Teltonika for their RUT systems and I assume this device is a VPN router?) instead of the B&R’s PLC MAC address??
A B&R PLC MAC address should always start with 00:60:65 …, but here I can see that the destination MAC address is different 20:97:27…
Looking to the communication of the device 10.11.12.1 (I assume this is the first ModbusTCP device, station number 7), there’s the right MAC address used for 10.11.12.10, starting with 00:60:65…
But also interesting: the slave device of this communication seems to be the same Teltonika device, is this right? So, is the device with IP address 10.11.12.1 really a router and configured as ModbusTCP slave and connected to the PLC as ModbusTCP master?
… sorry, even more questions then answers.
But at least in that wireshark trace it looks a bit confusing what’s going on on the network I think, that at least the ModbusTCP slave devices still using the MAC addresses of the router in their internal MAC table because of reaching them out via VPN (at least in my opinion this would explain why different devices have different MAC addresses aligned to the masters IP address).
To come into a clear situation, at least all ethernet devices (including routers and switches!) should do a MAC table flush at the same time - normally this could be done by switching them all off (at the same time!) for some time (normally, a “joined switched off time” around 30-60 seconds should be enough).
After that, all devices should update their MAC address tables when starting IP communication again - of course I don’t think that this solves your issue, but hopefully at least resets the network to a “known situation” so that we can try to go on investigating…
Could you also please post a picture of your complete network architecture, so how the devices are connected, what device has what function (master, slave, router, PLC, manufacturer, a.s.o) and should have what IP address? Maybe that helps to interprete the network traces.
Best regards!