Solved

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

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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
check the file dates in unix 14 75
DFS replication issue 7 64
Dell SonicWall Connection 18 49
Carbon Black hardware/system requirements 3 40
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

738 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