|
|
netconf file in sun...
Is there a file similar to the /etc/rc.config.d/netconf file in HP?
The reason is that I need to at a static default route in sun, and I know
you can do it from command line, but on reboot does it get blown up?
I know in hp you add it to the netconf file...
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=192.168.50.10
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]=default
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=192.168.50.11
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
ROUTE_DESTINATION[2]="net 192.168.10.0"
ROUTE_GATEWAY[2]=192.168.50.28
ROUTE_COUNT[2]=1
Is there similar in sun...
|
|
0
|
|
|
|
Reply
|
LHradowy
|
5/26/2004 8:30:26 PM |
|
"LHradowy" <laura.hradowy@NOSPAM.mts.caaaaa> writes:
>Is there a file similar to the /etc/rc.config.d/netconf file in HP?
>The reason is that I need to at a static default route in sun, and I know
>you can do it from command line, but on reboot does it get blown up?
>I know in hp you add it to the netconf file...
>Is there similar in sun...
...
Yes.
$ echo 10.0.0.254 > /etc/defaultrouter
--
Doug McIntyre merlyn@visi.com
Network Engineer/Jack of All Trades
Vector Internet Services, Inc.
|
|
0
|
|
|
|
Reply
|
Doug
|
5/26/2004 8:36:12 PM
|
|
"Doug McIntyre" <merlyn@visi.com> wrote in message
news:40b4ffbc$0$8692$a18e6209@newsreader.visi.com...
> "LHradowy" <laura.hradowy@NOSPAM.mts.caaaaa> writes:
> >Is there a file similar to the /etc/rc.config.d/netconf file in HP?
> >The reason is that I need to at a static default route in sun, and I know
> >you can do it from command line, but on reboot does it get blown up?
>
> >I know in hp you add it to the netconf file...
> >Is there similar in sun...
> ..
>
> Yes.
>
> $ echo 10.0.0.254 > /etc/defaultrouter
>
Yes, but can you add multiple routes, if it is not a default route...
|
|
0
|
|
|
|
Reply
|
LHradowy
|
5/26/2004 9:09:32 PM
|
|
In article <gI7tc.9243$gf1.23192@news1.mts.net>,
"LHradowy" <laura.hradowy@NOSPAM.mts.caaaaa> wrote:
> "Doug McIntyre" <merlyn@visi.com> wrote in message
> news:40b4ffbc$0$8692$a18e6209@newsreader.visi.com...
> > "LHradowy" <laura.hradowy@NOSPAM.mts.caaaaa> writes:
> > >Is there a file similar to the /etc/rc.config.d/netconf file in HP?
> > >The reason is that I need to at a static default route in sun, and I know
> > >you can do it from command line, but on reboot does it get blown up?
> >
> > >I know in hp you add it to the netconf file...
> > >Is there similar in sun...
> > ..
> >
> > Yes.
> >
> > $ echo 10.0.0.254 > /etc/defaultrouter
> >
> Yes, but can you add multiple routes, if it is not a default route...
You can put multiple lines in /etc/defaultrouter, and multiple default
routes will be put in the routing table.
If you want static non-default routes (i.e. routes for specific
networks), you have to write a boot-time script. Put it in /etc/init.d,
with appropriate S##* links to it from /etc/rc<runlevel>.d
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
|
|
0
|
|
|
|
Reply
|
Barry
|
5/26/2004 11:59:33 PM
|
|
|
3 Replies
149 Views
(page loaded in 0.047 seconds)
|
|
|
|
|
|
|
|
|