[BlueOnyx:26634] Re: Interfaces and default routes

Greg Kuhnert gkuhnert at compassnetworks.com.au
Tue Dec 5 14:10:22 -05 2023


Gateways relate to a default route. What you are after I think is a static route - not a default route. You can add static routes in the /etc/sysconfig/network-scripts/route-<interface> file. Create this file if it doesn't exist, and add lines like:

10.0.0.0/8 via 10.0.0.1



> On 6 Dec 2023, at 4:24 am, Darren Wolfe via Blueonyx <blueonyx at mail.blueonyx.it> wrote:
> 
> Hi,
>  
> On our 5211r servers, we have two interfaces – eth0 for public, and eth1 on a private subnet (as a dmz) which we use for inter-server communications, backups etc
>  
> We are seeing that each time the server is booted, the routing table has the default ipv4 and ipv6 routes defined for all interfaces, when we just want them to be applied to eth0. So we have to remove these after boot.
>  
> It occurs to me that if we were connected to two public networks, each with its own IP and gateway, we’d have no way to define both gateways without diving into the shell and changing the routing table.
>  
> So - would it be possible to allow the gateway addresses for ipv4 and 6 to be definable per interface?
>  
> On a slightly different subject, we have need to add ipv6_autoconf=no to the ifcfg-ethx config files, which we add manually but are lost after the interface settings are updated. Could an option be added for either an include file (like the vhost httpd config files) or add something to the gui for some advanced options?
>  
> Thanks
>  
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it <mailto:Blueonyx at mail.blueonyx.it>
> http://mail.blueonyx.it/mailman/listinfo/blueonyx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20231206/38f29be8/attachment.html>


More information about the Blueonyx mailing list