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
# 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, which are lost upon network restart. Is editing the
/etc/init.d/network script the only way? (So that it reads from a manually created file storing IPv6 routes and adds them to routing table when network (re)starts).