LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   making a default gateway permanent (https://www.linuxquestions.org/questions/linux-networking-3/making-a-default-gateway-permanent-199900/)

csu19032 07-01-2004 09:40 AM

making a default gateway permanent
 
Hello all I'm able to add a default route to my RH box, however my change won't survive a reboot. what file do I need to edit to make this change stick?

foo_bar_foo 07-01-2004 02:28 PM

if the route is associated with a certain device then the config file in
/etc/sysconfig for that device can have a GATEWAY= entry
but the easiest thing is to just put the route command you are using
at the bottom of a startup script
say
/etc/rc.d/init.d/rc
(different distros have way different converntions for this)
but somewhere you will find as apropriate
even at the bottom of
/etc/inittab will work i bet


All times are GMT -5. The time now is 02:40 PM.