Adding Persistent Routes in CentOS 7 Servers


Persistent routes should be added in the route file, if your interface name is ens001, then you need to create the following file

vi  /etc/sysconfig/network-scripts/route-ens001

and add routes in the following format via dev ens001

now the route is permanent and will be recovered after a reboot.