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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I add this to the table, magic happens, all is good. Then I reboot, and it goes away. I can't find documentation anywhere on how to make it stay. Could somebody clue me in?
The way most people talk, it should just be saved automatically. Is my installation messing up?
Did you configure your gateway in /etc/sysconfig/network? This file contains your default gw information persistently. The way that you entered it is nonpersistently, which means it will go bye, bye on reboot.
Thanks for your help. However, nobody ever seems to just answer the question when I post this one. I think because it is a difficult question. If you must know, the gateway to that network isn't my default gateway. It is a little network in the back. The default gateway is to another net.
And I know, I could add a route to the main gateway to redirect to this other gateway, but I just want to do it at the Linux box, since it is the only machine connecting to this other network.
So,
Is there a way to add this route persistently so it will stick around? Is it a switch for route (like -p on Wondoze), or must I modify a file somewhere?
script that is run on startup, and saw that it looked for that file. At first I was confused about the syntax. What it looks like is that the config file just does a 'route add -' and then appends any lines in the '/etc/sysconfig/static-routes' file that start with "any"
I add this to the table, magic happens, all is good. Then I reboot, and it goes away. after every rebooting i need to add routing table
how i save this table permanent
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.