I am running a debian box and i use it as a sandbox for developing web applications etc. In 7-8 days the server loses all network connectivity and i have to reboot it by hand, it cannot get connection and i cannot SSH to my server. I have tried things like restarting networking and for this week i have disabled a few features of the server's NIC (tx checksum). Could this be a dns issue?.
1 Answer
Could be DNS. The way to test this is to ssh to the IP address, not the name. If you can get to the IP address but not the name, then DNS is partially guilty.
Do you get the address with DHCP? If so, how long is the DHCP lease?
-
I cannot form ssh connection to the IP address when this happens. I think DHCP might be the culprit. After a bit of searching on the subject it seems my /etc/network/interfaces might be missing something related to this (auto eth0, iface eth0 dhcp).– kartajuAug 9, 2011 at 8:51
-
SOLVED! DHCP lease was expiring. Added auto eth0 iface eth0 inet dhcp to /etc/network/interfaces– kartajuAug 25, 2011 at 8:36
dmesg
and/var/log/messages
after you can ssh?