Solved

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
auto mounter on hp-ux 2 34
Connection Dropouts to Database on Windows Server 2008 R2 DFS 12 41
Adnexus.net keeps getting hit from OpenDNS 12 60
site - site VPN 3 38
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
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.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

756 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