We have two computers in local network, which need to communicate via TCP/IP. Communication is working regularly until we set up the gateway; TCP communication is much slower (takes 10-20 seconds for sending and receiving ~16 bytes messages) after that, and we don't know why. Their network settings from /etc/network/interfaces files are:
- First one is an at91sam9260 witch linux 2.6.33:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 172.20.52.232
broadcast 172.20.52.255
netmask 255.255.255.224
gateway 172.20.52.225
- Second one is Intel atom with debian squeeze:
auto lo eth0
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 172.20.52.231
broadcast 172.20.52.255
netmask 255.255.255.224
gateway 172.20.52.225
We've tried pinging the devices with and without gateways, and it works fine. Also, traceroute works in both cases. The problem persists with and without other computers being present in the network, including the actual gateway. We've tried connecting the two devices directly, but that didn't change anything.