Click to See Complete Forum and Search --> : static routes available on boot


Jugger
09-01-2002, 07:03 PM
I'm running RH 7.3 with 2 nic's. I just added a route through a second gateway to get to another lan and it is all working perfectly.

I used the route add command, and my question is...

How do I make this persistent so the route will be there automatically if I reboot?

I haven't tried to reboot yet so I don't know if it will still be there, but I suspect not.

Thanks,

Eric

jumpedintothefire
09-01-2002, 09:58 PM
sticking the command in rc.local will work....
There is a /etc/sysconfig/static-routes file but I'm unsure if the syntax required for it. Looks to be the same syntax as route, less the "/sbin/route add" part...