Recently I set up a Debian server following this guide:
However I wasn't able to connect to the internet after the clean install of debian. So I googled and found a fix:
ifconfig eth0 192.168.15.x
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.15.y
Where x is a number not in use by any machine
Where y is the number on the gateway
These commands are appended to /etc/rc.d/rc.local and works fine.
The server is virtual and running on a vmware installation.
The problem, I have, appears randomly after the server has been startet. Sometimes after 20 hours and sometimes after 9 hours only.
I can't connect to the server through the web (server.mydomain.com). However I can reach my computer running vmware at (host.mydomain.com). In vmwares terminal window I can access the debian installation which is running all fine. No errors or so. I can even ping remote ip-adresses from the debian server without problems. Restarting the server fixes the problem. But it then re-appears after some time.
Any ideas how to solve??