When I restart /etc/init.d/networking, I can access the eth0 ip address from the internet and I can ping the machines in my wifi network mynet. Everything works fine and I have one default gateway.

But after some time if I check again the route I just find two default gateways: one is correct and is the previous one, but the other is the one of the wifi network.

I have a quite low signal of mynet where my server is and sometimes the wifi just disconnect and then reconnect again. Then I think that this can be a problem and the dhcp of the wifi net, when reconnecting it also add a default gateway.
Any idea on how to resolve this issue?

Thanks, for the moment I have edited dhclient.conf with interface "wlan0" { supersede routers <ip of the eth0 gateway>; } For the moment it works, let see if it will last. E.
–
ElenaJan 18 '10 at 16:48