Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have observed a strange behavior for my static routes. As of late afternoon my static routes where fine. I came in today and they were gone. I checked uptime. The machine has not rebooted yet all of the routes I had manually configured are gone. Does the kernel after a while reread some file?
Apart from a reboot or some one logging in as root, why else would my static routes disappear from the routing table. (I have 3 network interfaces, all of which are set manually. no DHCP)
Your Thoughts?
-steve
This is on FC6 if that helps at all.
kernel: 2.6.18-1.2798.fc6
You can setup routing at command line as you already know with the route command but that doesn't make them "persistent".
I've not seen this dropout myself but my coworker says he has.
If something happened to the interface (e.g. eth1) that you'd tied the route to (e.g. someone did and ifconfig eth1 down then an ifconfig eth1 up) then the route would drop. If the NIC burped on its own you'd have the same issue.
You can insure the routes are reestablished at boot (or restart of networking) by adding to /etc/sysconfig/network-scripts/route-<interface>
(e.g. route-eth1). Example would be:
GATEWAY0=10.0.52.54
NETMASK0=255.0.0.0
ADDRESS0=10.0.0.0
That would be the equivalent of the command line:
route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.52.54 metric 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.