Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
This is a weird one - it should definitely work from the configs above. Are you running any kind of window manager or network manager on either of the boxes which is "overriding" the config ? Is the assumption that there are no other nics (or bridge devices) in the PC's ? –  davidgo Feb 8 '13 at 19:34
    
We are not using any window manager, graphics is reduced to x11 server and a single java application on the machine with debian squeeze. The other one (at91sam9260) has no graphical server whatsoever. Also, no additional network manager software was installed on either of the machines. I didn't understood the question about bridge devices, can you elaborate? –  nikola.euroicc Feb 18 '13 at 8:41
    
If you didn't understand the comment about bridges you can ignore it. (It is possible to create a switch on a Linux box by bridging multiple NICS) –  davidgo Feb 18 '13 at 19:10

1 Answer 1

The one thing I missed here was /etc/hosts file - there was a wrong address for localhost on intel atom machine. After we fixed that, network connection was back to normal.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.