Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-23-2004, 01:42 PM   #1
Registered: Jun 2004
Posts: 101

Rep: Reputation: 15
where are routes stored?

I need to add a few static routes to my firewall/router. Where is the file holding the routes located? ...I don't see it in /etc/sysconfig.


I'm running Mandrake 10.
Old 06-23-2004, 10:46 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
that's a good question
routing is a kernel level thing and therefore lives in
paged RAM along with a hash table that is the routing cache
some static routes may be picked up through files like
eth0.config or whatever (especially through the variable GATEWAY)
but mostly new routes have to be entered at the command line
and after you figure out what you want you put the command or commands
at the bottom of a boot script like
or even
(there is most likely some convention for your distro)
that's how i do it anyway

look at
man route

example if you wanted trafic to network to go through eth1
route add -net netmask dev eth1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Routes Obie Linux - Networking 16 04-28-2005 10:15 PM
Where are routes stored? vusa Linux - Networking 4 04-28-2005 06:50 PM
routes himyuza *BSD 6 08-03-2004 10:41 AM
I need some routes |Drakehash| Linux - Newbie 1 06-08-2003 12:22 AM
I need some routes |Drakehash| Linux - Networking 1 06-07-2003 02:36 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration