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 have added a route (a default route, actually) to my route table with the "ip route add default ..." command. the route works for about a few minutes then disappears and is no longer in the table. how can i make a manually entered route stay in place until the system goes down?
It depends. Is it a systemd abomination? If yes, persistent routes should be added in the [route] section of systemd-networkd configuration. Read, despair and beware of many bugs which definitely and categorically are present in systemd-networkd handling of static-dynamic route mix. https://wiki.archlinux.org/title/systemd-networkd
i have added other routes that are not default routes via my script that starts up my VPN. those routes all work fine. when i reboot, they get added, again, when my script starts the VPN. the route that just disappears after a few minutes is manually added. really manually. i type it in. it works exactly as intended and expected until it disappears in a few minutes. it is manual because it is for testing. i want to test how a certain website behaves when traffic comes from a different IP address.
i want my manual route table entry to stay until i reboot or manually delete it or override it with a lower metric (have done that before and it works). i don't want to have to reconfigure something. it should lose what i manually do with just doing only a reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.