With a SLIP connection I just restart AmiTCP after a reboot and
that's all I have to do.
My provider uses dynamic connections so I just modified my PPPStart
script in a couple of places and it works perfectly. I called my
new script 'PPPResume.' When I have to reset, I just run PPPResume
instead of PPPStart. Hope this helps.
Doug
-------------------------- cut here -------------------------------
echo > env:sana2/ppp0.config "serial.device 0 19200 0.0.0.0"
online ppp0
AmiTCP:bin/umask 022
AmiTCP:AmiTCP
WaitForPort AMITCP
; Configure loop-back device
AmiTCP:bin/ifconfig lo0 localhost
; Configure ppp0
AmiTCP:bin/ifconfig ppp0 $ppp0iplocal $ppp0ipremote
; Add route to this host
AmiTCP:bin/route add $ppp0iplocal localhost
AmiTCP:bin/route add default $ppp0ipremote
; Add route to the default gateway
setenv HOSTNAME `AmiTCP:bin/hostname`
Assign TCP: Exists > NIL:
IF Warn
Mount TCP: from AmiTCP:devs/Inet-Mountlist
EndIf
; Start the internet `super server'
run AmiTCP:bin/inetd
-----------------------------------------------------------------
Just have a script that copies an alternate ppp0.config to env:sana2
that doesn't have the DIALSCRIPT entry in it.
;recover network
delete env:Sana2/ppp0.config
copy AmiTCP:db/no_dialppp0.config ENV:Sana2/ppp0.config
startnet
your normal ppp0.config may be something like
serial.device 0 19200 0.0.0.0 7WIRE IPCP BADXONXOFF
DIALSCRIPT="DH0:Networking/PPP/ppplogin"
your no_dialppp0.config would only have the first line in it,
serial.device 0 19200 0.0.0.0 7WIRE IPCP BADXONXOFF
Of course your ppp0.config isn't like mine, but you get the idea. :)
--
\ / Pope Rev. Dr. Nick the Eversilly Fruitbat of Cornvalley, K.S.C.
--X-- mas...@peak.org -><- | My oppinions in no way represent those of |
/ \ Finger for PGP, fnord.|Yog-Sothoth, Cthulhu, The FBI, or Nick Rusnov.|
-- http://www.peak.org/~masked --
>Is there any way to re-establish a PPP connection without redialling
>the PPP host? Example: I'm using my PPP connection, and my computer
>crashes, or I have to reset for some reason. My modem stays connected
>(I use ignore DTR). Is there any way to go back on-line without
>hanging up and redialling?
Just restarting AmiTCP works for me.
o-----------------------------o
o| Stewart Skelt |o
----=====O (ste...@defcen.gov.au) O=====----
o| Queanbeyan, NSW, Australia |o
o-----------------------------o
I've created a new startnet file without the dialup script line in it. This
resumes startnet without calling my provider.
Hope this helps.
Mike
__| __| _/_/_/ _/_/_/ _/ _/ __/ _/_/_/ Beam me up up
_/_| _/_| _/ _/ _/ _/__/ __/ _/ _/ Scotty, I'm
_/ _|_/ _| _/ _/ _/ _/ _| __/ _/ _/ surrounded by
_/ __/ _| _/_/_/ _/_/_/ _/ _| __/ _/_/_/ Bastards!!
> Is there any way to re-establish a PPP connection without redialling
> the PPP host? Example: I'm using my PPP connection, and my computer
> crashes, or I have to reset for some reason. My modem stays connected
> (I use ignore DTR). Is there any way to go back on-line without
> hanging up and redialling?
Just use:
online devs:networks/ppp.device 0
It won't try a dialup but reestablish the
protocol-connection.
--
Regards, Jens
: Scott Cape (Sc...@mail.coretech.com) wrote:
: : Is there any way to re-establish a PPP connection without redialling
: : the PPP host? Example: I'm using my PPP connection, and my computer
: : crashes, or I have to reset for some reason. My modem stays connected
: : (I use ignore DTR). Is there any way to go back on-line without
: : hanging up and redialling?
: Just have a script that copies an alternate ppp0.config to env:sana2
: that doesn't have the DIALSCRIPT entry in it.
There is even simpler solution: if you use te CD (carrier detect) option
in ppp0.config , ppp.device will execute the dialscript if and only if
the modem is offline. If the modem is still online, it tries to reashtablish
the link.
--
Elad Tsur http://www.tau.ac.il/~eladts/
> Is there any way to re-establish a PPP connection without redialling
> the PPP host? Example: I'm using my PPP connection, and my computer
> crashes, or I have to reset for some reason. My modem stays connected
> (I use ignore DTR). Is there any way to go back on-line without
> hanging up and redialling?
> --
> Scott Cape Scott...@mail.coretech.com
Sure - just open a shell, and type Startnet. That will re-start the AmiTCP
software, and you can then launch whatever software you want to use,
AMosaic, FTP, etc.
----------------------------------------------------------------
| John Crookshank | jo...@mcs.com |
| MicroTech Solutions, Inc. | http://www.digiweb.com/~johnc/ |
|----------------------------------------------------------------|
| Desktop video systems dealer - finger/www for more info. |
----------------------------------------------------------------
This is only true if the "CD" option is present in the SANA2OPTIONS.
Otherwise, if a DIALSCRIPT option is present, it will try to re-dial,
connect, etc even if the connection is still active. I simply type
STARTNET again.
--Dave