Solved

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

Posted on 2009-07-12
5
653 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

757 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now