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'm not aware of any config file that would make the system add the route, so I'd just add the route command to a script in /etc/network/if-up.d.
In that script, check for $IFACE, so your route isn't added whenever just any interface comes up.
That network address 192.168.2.0 its for broadcasting the entire network, isnt it?
Yes, the customers network is on a LAN with Network ID 192.168.0.0 Mask
255.255.255.0. The CensorNet Server on this LAN run Debian Linux and this server needs to be configured for routing:
One route is to the Network ID 192.168.2.0 Mask 255.255.255.0 over gateway 192.168.0.228 and the other route is to the Network ID 192.168.4.0 Mask 255.255.255.0 over gateway 192.168.0.229.
I have to add these routes manually every time the server restarts and I want the routes to stay in when the server restarts.
Rem (#) anything else relating to ethX as there maybe a line relating to dhcp.
In a root consol do;
/etc/init.d/networking restart
Check for any errors. Unlike some other operating systems that shall remain nameless Linux systems do not have to be rebooted to restart services as they are running daemons and can be started, stopped and restarted at any time via this route. Most servers are never rebooted accept to do kernel updates or physical work. My server was last rebooted 3 months ago after a kernel upgrade.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.