1

How to make IPv6 static routes persistent on CentOS?

view story
linux-howto

http://unix.stackexchange.com – Static routes are forgotten once the network service is restarted. However, IPv4 static routes can be made persistent by adding them to /etc/sysconfig/static_routes. This file is read by the network service when (re)starting and the static routes are added to the routing table. This is the relevant code from /etc/init.d/network # Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done fi However, no such file seems to exist for IPv6 static routes (HowTos)