LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   My server isn't reconnecting after losing a connection (https://www.linuxquestions.org/questions/linux-server-73/my-server-isnt-reconnecting-after-losing-a-connection-4175460606/)

baronobeefdip 05-03-2013 02:38 PM

My server isn't reconnecting after losing a connection
 
I have a web server setup in my living room in the house and it's connected to the router via wireless (Don't start telling me to move it to the router so I can hard wire it in there, nobody wants me to move the computer to another part of the house). There will be times when the wireless interface briefly loses a connection and then attempt to re-connect back and everything will be fine. Lately that hasn't been happening. whenever a connection is lost through the wireless interface it will not attempt to re-connect back to the router until I physically go over to it and tell it to reconnect. I have tried (before someone mentions this because this was the first thing I did) was that I opened network-manager in the gnome interface and went to the wireless tab, selected my connection name and clicked edit. I entered my root password and checked the box that says "connect automatically" and applied the settings. I went to the other side of the house where the router was located and unplugged it for a few seconds so that the machine can lose the connection as an experiment. I plugged the router back into the power and everyone else in the house (Linux and Windows computers alike) connected back to it automatically except for the one in the living room. What is going on here because every conventional method of making sure that it does what I want it to do isn't working.

Kustom42 05-03-2013 04:20 PM

The system or the router more than likely believes that the DHCP lease is still active and is such is not attempting to obtain a new DHCP lease from the router.

You note that you don't want people to tell you to hardwire it but thats really the only way to avoid connectivity drops such as this. You could attempt to statically assign an IP on the machine and go into the router and assign the static IP reservation but I have still seen intermittent issues like this pop up with wi-fi connections.


You could start a tcpdump on your interface and log it to a text file so that you can see what is going on when the connection drops.

IF YOU DO THIS MAKE SURE TO CHECK IT OFTEN! This file could get very big very quickly and take up all of your space, if your system is setup correctly and has a separate filesystem for /tmp/ put it there so if it does fill up only /tmp is affected and you will easily be able to rm the file and get your system back.


All times are GMT -5. The time now is 01:45 AM.