This is a discussion on saving routing table question within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> some users asked how to save to customized routing table on solaris 9/10 as by doing route add, it ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| some users asked how to save to customized routing table on solaris 9/10 as by doing route add, it will be gone after server reboot. I saw someone said that it will be saved under /etc/gateways, net <ip> gateway <ip> metric <count> passive but seems it didn't work for me, I saved new route into that file and tried to go that route, but didn't work. The way worked for me is to run "route add" in command line. Can anyone give me some advice? |
| |||
| On 2007-10-17, steeles <steeles@gmail.com> wrote: > some users asked how to save to customized routing table on solaris 9/10 as > by doing route add, it will be gone after server reboot. > > I saw someone said that it will be saved under /etc/gateways, > > net <ip> gateway <ip> metric <count> passive > > but seems it didn't work for me, I saved new route into that file and tried > to go that route, but didn't work. > > The way worked for me is to run "route add" in command line. > > Can anyone give me some advice? man route Read the entry for the "-p" switch. -- "A computer is a nerd-designed machine for screwdriver addicts." [email me at huge {at} huge (dot) org <dot> uk] |
| |||
| Huge wrote: > On 2007-10-17, steeles <steeles@gmail.com> wrote: >> some users asked how to save to customized routing table on solaris 9/10 as >> by doing route add, it will be gone after server reboot. > > man route > > Read the entry for the "-p" switch. not for Solaris 9 |
| |||
| ya, -p is not for Solaris. other comment please. "Oscar del Rio" <delrio@mie.utoronto.ca> wrote in message news:ff8ast$lnh$2@news.mie... > Huge wrote: >> On 2007-10-17, steeles <steeles@gmail.com> wrote: >>> some users asked how to save to customized routing table on solaris 9/10 >>> as by doing route add, it will be gone after server reboot. > >> >> man route >> >> Read the entry for the "-p" switch. > > not for Solaris 9 |
| |||
| "steeles" <steeles@gmail.com> writes: >ya, -p is not for Solaris. >other comment please. Well, route -p for Solaris 10.. For earlier versions, you'll have to write something. It was common to writeup a rc.x/init.d shell script just feed in all the static routes needed to do something like that. Or, there is routed if you feed your routes in via the RIP dynamic routing protocols. There's other options for doing OSPF or BGP. |
| |||
| Doug McIntyre <merlyn@geeks.org> wrote: > "steeles" <steeles@gmail.com> writes: >>ya, -p is not for Solaris. > >>other comment please. > > Well, route -p for Solaris 10.. > > For earlier versions, you'll have to write something. It was common to > writeup a rc.x/init.d shell script just feed in all the static routes > needed to do something like that. > > Or, there is routed if you feed your routes in via the RIP dynamic > routing protocols. There's other options for doing OSPF or BGP. Does anybody know where solaris 10 stores the persistent routes added with the -p flag? |
| |||
| Cydrome Leader <presence@MUNGEpanix.com> writes: > Does anybody know where solaris 10 stores the persistent routes added with > the -p flag? Yes. It's /etc/inet/static_routes -- visible both in the source code and in the output of "strings /usr/sbin/route". However, it's not a documented interface, and there are thus no guarantees about it. It may disappear or change incompatibly in the future, without notice, even in a patch. Don't rely on it. -- James Carlson, Solaris Networking <james.d.carlson@sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 |
| |||
| James Carlson <james.d.carlson@sun.com> wrote: > Cydrome Leader <presence@MUNGEpanix.com> writes: >> Does anybody know where solaris 10 stores the persistent routes added with >> the -p flag? > > Yes. It's /etc/inet/static_routes -- visible both in the source code > and in the output of "strings /usr/sbin/route". > > However, it's not a documented interface, and there are thus no > guarantees about it. It may disappear or change incompatibly in the > future, without notice, even in a patch. Don't rely on it. hopefully it stays- It was obviously made so somebody didn't have to waste time writing route adding rc scripts. |
| |||
| Cydrome Leader wrote: > James Carlson <james.d.carlson@sun.com> wrote: > >>Cydrome Leader <presence@MUNGEpanix.com> writes: >> >>>Does anybody know where solaris 10 stores the persistent routes added with >>>the -p flag? >> >>Yes. It's /etc/inet/static_routes -- visible both in the source code >>and in the output of "strings /usr/sbin/route". >> >>However, it's not a documented interface, and there are thus no >>guarantees about it. It may disappear or change incompatibly in the >>future, without notice, even in a patch. Don't rely on it. > > > hopefully it stays- > > It was obviously made so somebody didn't have to waste time writing route > adding rc scripts. It may stay for years or it may be replaced in Solaris 11. When something like that is undocumented you dare not rely on it being there in the next release! What problem are you trying to solve? |
| ||||
| Richard B. Gilbert <rgilbert88@comcast.net> wrote: > Cydrome Leader wrote: >> James Carlson <james.d.carlson@sun.com> wrote: >> >>>Cydrome Leader <presence@MUNGEpanix.com> writes: >>> >>>>Does anybody know where solaris 10 stores the persistent routes added with >>>>the -p flag? >>> >>>Yes. It's /etc/inet/static_routes -- visible both in the source code >>>and in the output of "strings /usr/sbin/route". >>> >>>However, it's not a documented interface, and there are thus no >>>guarantees about it. It may disappear or change incompatibly in the >>>future, without notice, even in a patch. Don't rely on it. >> >> >> hopefully it stays- >> >> It was obviously made so somebody didn't have to waste time writing route >> adding rc scripts. > > It may stay for years or it may be replaced in Solaris 11. When > something like that is undocumented you dare not rely on it being there > in the next release! > > What problem are you trying to solve? I was just curious as to how it worked, without lots of digging. Sometimes you need a static route, and that -p flag in newer solaris 10s is well, very handy. Anything beats scripts to add routes, which is primitive and a time burner. Consider this feedback- the less runaround an admit has, the happier they are, and the more they suggest people run solaris over other stuff. |