How to add a Static Route (persistent) in Sun Solaris

We have a Sun Fire v240 and SunOS v5.9 . We added a new network link to a counterparty server and each time the server reboots we have to manually add - "route add " routing - Add routes permanently to Solaris 10 - Server Fault The route command has the -p option, in OpenSolaris and I believe Solaris 10 as well. From man route:-p Make changes to the network route tables per- sistent across system restarts. The operation is applied to the network routing tables first and, if successful, is then applied to the list of saved routes … 7 Linux Route Command Examples (How to Add Route in Linux) Instead of “route add -net IP netmask MASk gw IP” you should enter “ip route add IP/MASk via IP”. Another command that can be used to replace “route -n” is “ip route show”. To set a default gateway use: “ip route add default via IP”, and finally to delete a route use: “ip route del IP/MASK”. Good luck 🙂 Change the default route in Solaris Jul 26, 2011

11.4. Static Routes and the Default Gateway Red Hat

For many years the “correct” way of configuring static routes in Solaris has been to create an init.d script which ran the ‘route add’ commands. As of Solaris 10 11/06, a more reasonable approach has been implemented. The ‘route’ command has a new option ‘-p’. Make changes to the network route tables persistent across system

Jul 25, 2018

route add default in non global zone on solaris 10 add it to the global zone and it'll be accessible to the local zone AngelicaX via solaris-l wrote: Posted by AngelicaX on 01/03/2008 12:35:00 PM How to add static route on CentOS 7 and RHEL 7 - UrClouds