View Full Version : [ubuntu] how to remove default gateway

March 6th, 2009, 09:33 AM
Someone told me to do this

sudo route add default gw

whereas is my router's ip

Now I want to undo it because I cannot access any other sites except google. How can I do it?

here's my ip table

Kernel IP routing table
Destination gateway genmask flags metric ref use iface * u 0 0 0 eth0
default ug 0 0 0 eth0

Many thanks!

Ok I just do
sudo route del default gw

but still cannot access the internet. what to do?

that's strange. only google search work. but cannot visit any sites.

edit: i can nslookup too

What's wrong/? I can access the admin page of the router but not the internet?
Is that something wrong with dns??

March 6th, 2009, 09:54 AM
I can visit gmail too. whats wrong???

March 6th, 2009, 09:57 AM
ok I reboot it and everything is normal again. But it is the the first time to have this problem. ????

March 6th, 2009, 11:01 AM
You fixed it already, but you can remove the default gateway by doing:

sudo route del default gw