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.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
I don't have a RH system, but I think it uses System V style scripts, and the startup scripts for SystemV typically reside in /etc/rc#.d where # is the runlevel for when you want the script to start. I would put the static route stuff in runlevel 3 (multi-user mode, run before X if you boot to X). So, you should make a link from /etc/sysconfig/static-route to /etc/rc3.d/S10static-route. The S tells init that the script is to be run on startup, and 10 tells it when to start it. The number (10, in my example) should come after the network startup (static-route should have a higher number than the network stuff).
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
Typically the default route IS set up during network setups, but if you need another static route, you'd have to either add it to the config there or somewhere. . . For example, my home system uses DHCP to get its IP address, but I have several routes that I keep static so I only have a couple of hops to my work. This is set in /etc/rc.d/rc.inet1 for my system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.