Solution
This issue is due to a Linux OS phenomenon known as "ARP flux". By default, if a Linux system has multiple NICs on the same subnet, it is allowed to respond to ARP requests on any interface regardless of which interface originally received the request.
To resolve this issue, configure the NI Linux Real-Time system to ensure that ARP (Address Resolution Protocol) requests are handled by the correct network interface:
- Access the shell of your Linux Real-Time Controller.
- Open the following configuration file by running the command below:
vi /etc/sysctl.conf
- Modify the file adding the following lines at the end of it:
# Respond to ARP requests using the interface that we got them on, not just
# any interface available.
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
- Save the changes
- Reboot the controller to apply the changes
After applying these settings, network traffic is handled by the appropriate interface, and the system should maintain expected throughput even when multiple Ethernet ports are connected.