where do the kernel IP routing info. resides...

Posted on 2005-03-20
Medium Priority
Last Modified: 2010-03-18

if i issue the 'netstat -nr' command from the terminal, it displays the kernel routing table. and if i add a new route it's getting updated. where do these files being stored....

Question by:udaikumar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

aromberg earned 500 total points
ID: 13589101
What do you mean "Files are being stored?"

There's a live snapshot of the routing table stored in /proc/net/route
LVL 14

Expert Comment

ID: 13590137
the ROUTEd instruction, don't generate files only commands in instructions.  

LVL 38

Assisted Solution

wesly_chen earned 500 total points
ID: 13593289

   "netstat -rn" or "route" read the file /proc/net/route.
You can do
cat /proc/net/route

   However, /proc is a virtual filesystem, which resides on memory. It will be flushed out by reboot.

   If you want to put some routes in routing table during boot up, you can put
route add -net <network> gw <gateway IP>
  into /etc/rc.local (RedHat Linux)
  or add this commandinto /etc/init.d/network.

  Default gateway information can be set in /etc/sysconfig/network-scripts/ifcfg-ethX  (X is the 0, 1 or 2...)



Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question