I have a small LAN. there are:
- One linux PC with IP x.x.x.10
- an unmanaged switch
- two different devices that share the same IP (x.x.x.1) (lets call them device 1 and device 2).
The idea is to power up device 1, then linux PC connects to it using modbus tcp/ip protocol, then disconnects and the device is powered down.
Next step is that device 2 is powered up. linux PC connects to it with modbus tcp/ip, changes its IP address to (x.x.x.2) then disconnects and after that device 2 is powered down.
So I end up with two devices with different IPs that can work simultaneously.
My problem is that when I try to connect to device 2 it takes more than one minute to establish the connection. I think the problem is MAC learning. Is there any way to overcome this?