static routes after reboot

Michael Gargiullo mgargiullo at warpdrive.net
Thu Apr 1 14:42:09 UTC 2004


On Wed, 2004-03-31 at 21:47, Ben Halicki wrote:
> Hi all,
>  
> I used to be able to add static routes to /etc/sysconfig/static_routes
> in redhat 7,8 but fedora seems to ignore this file.  Does anyone know
> how to maintain static routes after a reboot?
>  


Create the file  /etc/sysconfig/network-scripts/routes-ethx
where ethx is your interface

with format like so

ip or network       gateway

12.12.12.0/24 via 192.168.0.1
14.14.14.0/24 via 192.168.2.1

Using full class C address for the example





More information about the fedora-list mailing list