Software >> OS >> Unix >> Linux >> RHEL >> 7 >> How to set persistent IP static routeThe script /etc/init.d/network will check for /etc/sysconfig/static-routes and execute if found. Add the static routes into /etc/sysconfig/static-routes
/etc/init.d/network
add your custom persistent route accordingly into the file /etc/sysconfig/static-routes
example any net 10.0.0.0 netmask 255.0.0.0 gw 10.1.1.254 dev eth0 |