Solved

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

Posted on 2009-07-12
5
659 Views
Last Modified: 2013-12-27
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?

Thanks.
0
Comment
Question by:artradis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 6

Assisted Solution

by:javeedabdul
javeedabdul earned 300 total points
ID: 24836709
Which file have you altered. ?/
What command did you open/append the file with ?
Please provide more info

0
 
LVL 6

Assisted Solution

by:javeedabdul
javeedabdul earned 300 total points
ID: 24836724
the "route -p" command will add the routes to /etc/inet/static_routes
0
 

Author Comment

by:artradis
ID: 24836771
Hi, I just type "route add xxx.xxx.xxx.xxx 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 xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy" and then
2. "route -p add xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy"

Is this correct?

Thanks.
0
 
LVL 6

Assisted Solution

by:javeedabdul
javeedabdul earned 300 total points
ID: 24836815
Yes

for more info have a look at his infodoc (look what -p option tells  )
http://docs.sun.com/app/docs/doc/819-2240/route-1m?l=en&a=view&q=man+route


Hope this help
Javeed Abdul
0
 
LVL 13

Accepted Solution

by:
Rowley earned 200 total points
ID: 24840543
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:

http://www.brandonhutchinson.com/Solaris_route_command_examples.html
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question