[CentOS] adding static route via network setup fails

nate centos at linuxpowered.net
Tue Apr 28 20:21:48 UTC 2009

Kai Schaetzl wrote:
> I want to add the following route command
> route add -net gw


any net netmask gw

in your /etc/sysconfig/static-routes file

Though I'm not sure why you'd want to have a static
route that points to a local interface, just set the
subnet of the interface to and you
don't need a static route.

I use that syntax and it works fine..


More information about the CentOS mailing list