LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-23-2004, 01:42 PM   #1
Ph0enix2003
Member
 
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.

TIA

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

Rep: Reputation: 51
Hi,
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
/etc/rc.d/init.d/rc
or even
/etc/inittab
(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 192.168.76.0 to go through eth1
route add -net 192.168.76.0 netmask 255.255.255.0 dev eth1
 
  


Reply


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


All times are GMT -5. The time now is 01:34 PM.

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