alwaysAlways first use netstat -nrnetstat -nr to check the gateway what you have and what the details it has...you See 0.0.0.00.0.0.0. when its a default one and you should first think that why am iI changing this gateway than use this command:
route add default gw your ip eth0
route add default gw your ip eth0