LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to permanently update routing tables (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-permanently-update-routing-tables-377880/)

Quest101 10-28-2005 05:33 PM

How to permanently update routing tables
 
Hi,
which files do i need to update inorder for the routes to be maintained after a reboot......

eg.
route add -host 216.109.112.135/32 gw 172.16.1.33


where should this line be appended to ......


Thanx in advance for any help you can offer ,,,,

( yes i am using a Linux box )

Regards,
Ray

nonzero 10-29-2005 12:48 AM

Well to start with you failed to mention what distribution you are using, what your network setup is like and you've begun with a malformed route statement.
Are you trying to change from a Dynamic IP to a Static IP? To quote 'man route';
Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface
after it has been configured with the ifconfig(8) program.

When the add or del options are used, route modifies the routing tables. Without these options, route displays the current contents of the
routing tables.

See http://www.experts-exchange.com/Netw..._21570048.html

If you've found the errors in your question we may be able to help with an answer.

nz


All times are GMT -5. The time now is 07:24 AM.