1833187 Members
3045 Online
110051 Solutions
New Discussion

Routing table

 
peterchu
Super Advisor

Routing table

my linux is re-started then the Kernel IP routing table is lost because some are not static setting , but I forgot the previous setting of the routing table , how can I get back the routing table of 1 month ago ? thx


# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.4.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.4.4 0.0.0.0 UG 0 0 0 eth0
5 REPLIES 5
Sunil Sharma_1
Honored Contributor

Re: Routing table

Hi,

There is no way to get dynamic route information once system rebooted.

If you saved output of netstat -r anytime that will help you .

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Muthukumar_5
Honored Contributor

Re: Routing table

we can not do this, if you are having informations of old routing table there.

Are you have route / netstat -rn output in backup / memory? Then add approriate route rules to get that effect.

If you specify the requirement then it can also be done here.
Easy to suggest when don't know about the problem!
Sยภเl Kย๓คг
Respected Contributor

Re: Routing table

You can't get it.Once machine is restarted the dynamic routing table will be lost.
regards
SK
Your imagination is the preview of your life's coming attractions
HGN
Honored Contributor

Re: Routing table

Hi

Since you had mentioned that the system was rebooted don't see a chance of getting it back unless you had saved it somewhere.

Rgds

Gopi
doug mielke
Respected Contributor

Re: Routing table

It's gone off of that system, but other systems on the local segment may have similar tables. Run a netstat -r on a nearby system to get started.

Also check the closest gateway for its table. It will likely have more than you need, but may have what you're looking for.