Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have setup a Ubuntu server with Ubuntu Enterprise Cloud. The server is connected to a private LAN with DHCP and Internet access (via a gateway).

At first, the server was working fine. It can ping the internet. It can also ping other machine inside LAN.

The problem happened after i let the machine idle for more than 1 hour. When I want to use the machine again, I can't ping the internet anymore. I can only ping the machine inside LAN.

I try to ping the server from another machine and it's working. Then, i ssh into that server from another machine, and I found that I can ping the internet from that server.

It seems that there are some problems in the routing table of this server. Can anyone help me on this?

Thank you.

Max

share|improve this question
1  
for starters, you should print your routing table (run route from shell) before and after the problem starts. –  gravyface Apr 20 '10 at 2:05
add comment

1 Answer

It's highly likely that the DHCP client is setting the default gateway, you can force it to use another one, but I don't see any way to ignore the one from DHCP.

To force one you can do, in /etc/dhcp3/dhclient.conf:

supersede routers 1.2.3.4;
share|improve this answer
add comment

Your Answer

 
discard

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