[Sunhelp] route problem

Fuerst, Robert C. (Chris) robert.fuerst at sylvania.com
Fri Aug 11 05:22:54 CDT 2000


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0037E.1CB28CC0
Content-Type: text/plain;
	charset="iso-8859-1"

vi /etc/init.d/lp

example file:

caddy% !!
more lp
#!/bin/sh
#
# Copyright (c) 1997, by Sun Microsystems, Inc.
# All rights reserved.
#
#ident  "@(#)lp 1.4     92/09/29 SMI"   /* SVr4.0 1.6   */

##########
#
# The first argument tells what to do.
##########

state=$1

set `who -r`
case $state in

'start')
        if [ $9 = "2" -o $9 = "3" ]
        then
                exit
        fi
        [ -f /usr/lib/lpsched ] && /usr/lib/lpsched
        ;;
'stop')
        [ -f /usr/lib/lpshut ] && /usr/lib/lpshut
        ;;
esac
route add net 128.129.1.1 128.129.202.5 0
route add net 128.129.101.0 128.129.202.5 0
route add net 128.129.100.0 128.129.202.5 0
route add net 128.129.6.0 128.129.202.5 0
route add net 128.129.50.0 128.129.202.5 0
route add net 128.129.50.3 128.129.202.5 0
route add net 128.129.50.9 128.129.202.5 0
route add net 128.129.105.0 128.129.202.5 0
route add default 128.129.1.1 1
caddy% 

> -----Original Message-----
> From:	Gene.Patterson at risk.sungard.com
> [SMTP:Gene.Patterson at risk.sungard.com]
> Sent:	Thursday, August 10, 2000 6:10 PM
> To:	sunhelp at sunhelp.org
> Cc:	sunhelp at sunhelp.org
> Subject:	Re: [Sunhelp] route problem
> 
> 
> 
> You can create a script file in "/etc/init.d" like "addroute" such as
> below:
> 
> =============
> 
> case "$1" in
> 
> 'start')
> 
>         route add 172.19.0.0 172.18.0.1
>         ;;
> 
> *)
>         echo "Usage: /etc/init.d/addroutes { start | stop }"
>         ;;
> esac
> 
> ==============
> 
> Then put a symbolic link in "/etc/rc3.d" like S88addroute.
> 
> Gene
> 
> 
> |--------+--------------------------->
> |        |          Karl Rossing     |
> |        |          <karl.rossing at fed|
> |        |          erated.ca>       |
> |        |                           |
> |        |          08/10/2000 05:23 |
> |        |          PM               |
> |        |          Please respond to|
> |        |          sunhelp          |
> |        |                           |
> |--------+--------------------------->
>  
> >-------------------------------------------------------------------------
> --|
>   |
> |
>   |       To:     sunhelp at sunhelp.org
> |
>   |       cc:     (bcc: Gene Patterson/Infinity)
> |
>   |       Subject:     Re: [Sunhelp] route problem
> |
>  
> >-------------------------------------------------------------------------
> --|
> 
> 
> 
> 
> 
> Where does one set a static route so that when the systems is rebooted,
> it gets re-added.
> 
> Karl
> 
> Scott Walker wrote:
> >
> > Add the ip of your gateway to the file /etc/defaultrouter
> >
> > ----- Original Message -----
> > From: "Habib M." <stmp at hotmail.com>
> > To: <sunhelp at sunhelp.org>
> > Sent: Thursday, August 10, 2000 5:14 PM
> > Subject: [Sunhelp] route problem
> >
> > > Hi,
> > >
> > > I do "route add default [ip-address-of-gateway] 1" and i add the
> default
> > > entry to the "netstat -rn" output in my ssol 2.6. This fixes
> > > all the routing issues. But when i boot up the system this entry
> > > goes away and i have the same problem. is there a scrip or something
> > > that i have to revise?.
> > >
> > > When i try to delete an entry from table by looking at the output
> > > of "netstat -r" i get the error message: "not in the table".
> > >
> > > HM
> > >
> ________________________________________________________________________
> > > Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
> > >
> > > _______________________________________________
> > > SunHELP maillist  -  SunHELP at sunhelp.org
> > > http://www.sunhelp.org/mailman/listinfo/sunhelp
> > >
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> 
> **********************************************************************
> > This email and any files transmitted with it are confidential 
> > and intended solely for the use of the individual or entity to
> > whom they are addressed. If you have received this email 
> > in error please notify the system manager.
> >
> > This footnote also confirms that this email message has 
> > been swept by MIMEsweeper for the presence of computer
> > viruses.
> >
> ********************************************************************** <<
> File: karl.rossing.vcf >> 

------_=_NextPart_001_01C0037E.1CB28CC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2651.67">
<TITLE>RE: [Sunhelp] route problem</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">vi =
/etc/init.d/lp</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">example file:</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">caddy% !!</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">more lp</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">#!/bin/sh</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">#</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"># Copyright (c) =
1997, by Sun Microsystems, Inc.</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"># All rights =
reserved.</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">#</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">#ident  =
"@(#)lp 1.4     92/09/29 SMI"   =
/* SVr4.0 1.6   */</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">##########</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">#</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"># The first =
argument tells what to do.</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">##########</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">state=3D$1</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">set `who -r`</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">case $state =
in</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">'start')</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        if [ $9 =3D =
"2" -o $9 =3D "3" ]</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        then</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">         &nb=
sp;      exit</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        fi</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        [ -f =
/usr/lib/lpsched ] && /usr/lib/lpsched</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        ;;</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">'stop')</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        [ -f =
/usr/lib/lpshut ] && /usr/lib/lpshut</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">        ;;</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">esac</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.1.1 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.101.0 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.100.0 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.6.0 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.50.0 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.50.3 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.50.9 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add net =
128.129.105.0 128.129.202.5 0</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">route add default =
128.129.1.1 1</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">caddy% </FONT>
</P>
<UL>
<P><FONT SIZE=3D1 FACE=3D"Arial">-----Original Message-----</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">From:  </FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">Gene.Patterson at risk.sungard.com =
[SMTP:Gene.Patterson at risk.sungard.com]</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">Sent:  </FONT></B> <FONT =
SIZE=3D1 FACE=3D"Arial">Thursday, August 10, 2000 6:10 PM</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"Arial">To:    </FONT><=
/B> <FONT SIZE=3D1 FACE=3D"Arial">sunhelp at sunhelp.org</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">Cc:    </FONT></B> <FONT SIZE=3D1 =
FACE=3D"Arial">sunhelp at sunhelp.org</FONT>
<BR><B><FONT SIZE=3D1 =
FACE=3D"Arial">Subject:       </FONT>=
</B> <FONT SIZE=3D1 FACE=3D"Arial">Re: [Sunhelp] route problem</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">You can create a script file in =
"/etc/init.d" like "addroute" such as below:</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">case "$1" in</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">'start')</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">        route add =
172.19.0.0 172.18.0.1</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        ;;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">*)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        echo =
"Usage: /etc/init.d/addroutes { start | stop }"</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">        ;;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">esac</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Then put a symbolic link in =
"/etc/rc3.d" like S88addroute.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Gene</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">|--------+---------------------------></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          Karl =
Rossing     |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          =
<karl.rossing at fed|</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          =
erated.ca>       |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|           &nbsp=
;           &nbsp=
;   |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          08/10/2000 =
05:23 |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          =
PM           &nbs=
p;   |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          Please respond =
to|</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|          =
sunhelp          |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|        =
|           &nbsp=
;           &nbsp=
;   |</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">|--------+---------------------------></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">  =
>--------------------------------------------------------------------=
-------|</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">  =
|           &nbsp=
;           &nbsp=
;           &nbsp=
;           &nbsp=
;           &nbsp=
;           &nbsp=
;   |</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">  |     =
  To:     =
sunhelp at sunhelp.org        &nbsp=
;           &nbsp=
;           &nbsp=
;        |</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">  =
|       cc:     (bcc: =
Gene =
Patterson/Infinity)        &nbsp=
;           &nbsp=
;         |</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">  =
|       Subject:     =
Re: [Sunhelp] route =
problem          &nbsp=
;           &nbsp=
;     |</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">  =
>--------------------------------------------------------------------=
-------|</FONT>
</P>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Where does one set a static route so =
that when the systems is rebooted,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">it gets re-added.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Karl</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Scott Walker wrote:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> Add the ip of your gateway to =
the file /etc/defaultrouter</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ----- Original Message =
-----</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> From: "Habib M." =
<stmp at hotmail.com></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> To: =
<sunhelp at sunhelp.org></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> Sent: Thursday, August 10, 2000 =
5:14 PM</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> Subject: [Sunhelp] route =
problem</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > Hi,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > I do "route add =
default [ip-address-of-gateway] 1" and i add the default</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > entry to the "netstat =
-rn" output in my ssol 2.6. This fixes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > all the routing issues. But =
when i boot up the system this entry</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > goes away and i have the =
same problem. is there a scrip or something</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > that i have to =
revise?.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > When i try to delete an =
entry from table by looking at the output</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > of "netstat -r" i =
get the error message: "not in the table".</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > HM</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > =
________________________________________________________________________=
</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > Get Your Private, Free =
E-mail from MSN Hotmail at<U> </U></FONT><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial"><A HREF=3D"http://www.hotmail.com" =
TARGET=3D"_blank">http://www.hotmail.com</A></FONT></U>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> > SunHELP maillist  =
-  SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT><U> <FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT></U>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> ></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> _________________________________=
______________</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> SunHELP maillist  -  =
SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT><U> <FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT></U>
</P>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
*************</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> This email and any files =
transmitted with it are confidential </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> and intended solely for the use =
of the individual or entity to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> whom they are addressed. If you =
have received this email </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> in error please notify the =
system manager.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> This footnote also confirms that =
this email message has </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> been swept by MIMEsweeper for =
the presence of computer</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">> viruses.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">></FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
************* << File: karl.rossing.vcf >> </FONT>
</P>
</UL>
</BODY>
</HTML>
------_=_NextPart_001_01C0037E.1CB28CC0--





More information about the SunHELP mailing list