Command in Solaris to save network changes (new route added)

We added a new route in our Sun Solaris server (route add x.x.x.x y.y.y.y) but it was not saved, when the server was rebooted the route was lost.

What is the command in Solaris to save the network changes to become permanent?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Which file have you altered. ?/
What command did you open/append the file with ?
Please provide more info

the "route -p" command will add the routes to /etc/inet/static_routes
artradisAuthor Commented:
Hi, I just type "route add yyy.yyy.yyy.yyy" where XXX is the destination IP and YYY is the router. I did not edit any config files.

so now do I need to:
1. "route delete yyy.yyy.yyy.yyy" and then
2. "route -p add yyy.yyy.yyy.yyy"

Is this correct?


for more info have a look at his infodoc (look what -p option tells  )

Hope this help
Javeed Abdul
route -p only was only introduced with later versions of solaris 10. Routes are stored in /etc/inetd/static_routes but this file is volatile (subject to change in subsequent releases of solaris. If you're not running a version of solaris 10 that support static routes, you need an init script. Example here:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.