linux route

I‘m typing the following command under Ubuntu Linux:

route add default gw eth0

But it is giving me out the following error:

SIOCADDRT: File exists

How do I fix this problem?

{ 1 comment }

Can you explain the ip command to setup routing on Linux based systems? How do I use the ip command to configure the routing table of the Linux kernel?