[CentOS] Cannot Static Routes

Wed Aug 27 18:42:36 UTC 2014
Sergio Belkin <sebelk at gmail.com>

Hi,

I'd want to configure persistent static routes, ie in config files, but I
can't configure static routes, I tested:


[root at centos7 ~]# cat /etc/sysconfig/network-scripts/routes-enp0s3
ADDRESS0=10.10.10.0
NETMASK0=255.255.255.0
GATEWAY0=192.168.1.1

logs says nothing:

ago 27 15:38:29 centos7.vhgroup.corp NetworkManager[2299]: <info>
Activation (enp0s3) Stage 5 of 5 (IPv4 Commit) complete.
ago 27 15:38:29 centos7.vhgroup.corp NetworkManager[2299]: <info> (enp0s3):
device state change: ip-check -> seconda...0 0]
ago 27 15:38:29 centos7.vhgroup.corp NetworkManager[2299]: <info> (enp0s3):
device state change: secondaries -> acti...0 0]
ago 27 15:38:29 centos7.vhgroup.corp NetworkManager[2299]: <info>
NetworkManager state is now CONNECTED_LOCAL
ago 27 15:38:29 centos7.vhgroup.corp NetworkManager[2299]: <info> Policy
set 'enp0s3' (enp0s3) as default for IPv4 r...DNS.
ago 27 15:38:29 centos7.vhgroup.corp NetworkManager[2299]: <info>
Activation (enp0s3) successful, device activated.
ago 27 15:38:29 centos7.vhgroup.corp network[4172]: Activando interfaz
enp0s3:  Connection successfully activated (...on/5)
ago 27 15:38:29 centos7.vhgroup.corp network[4172]: [  OK  ]
ago 27 15:38:29 centos7.vhgroup.corp systemd[1]: Started LSB: Bring up/down
networking.
-- Subject: Unit network.service has finished start-up


I've also tried using /etc/sysconfig/static-routes file as is in
http://www.ehowstuff.com/how-to-setup-persistent-static-routes-on-linux-centos-6-4/

It just doesn't work :(

How is the proper way to do it?

Thanks in advance!

-- 
--
Sergio Belkin  http://www.sergiobelkin.com
LPIC-2 Certified - http://www.lpi.org