"route add default gw" command-trouble
I am currently setting up an Internet gateway with the help of a linux machine. I am using the route command to set up the default gateway, giving the addres of the router which connects me to the external world.
The problem now is that, everytime I reboot the linux machine, I have to add the default route, even though the corresponding ethernet interfaces are getting activated automatically.
I use the command "route add default gw 'ipaddress of the router' " command, but I have to do this everytime I reboot.
What could be the possible problem ?are there any files that I need to change ?when I went to the man page of route, it indicated me that changes would be made to the file /proc/net/route, but then automatic gateway setting is not being done here.
Help me out please. Thanks in Advance.