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

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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

569 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