On Fri, 7 Jun 2002 11:53:23 +0000  Howard Schwartz
<[EMAIL PROTECTED]> wrote:

> Several folks suggested grabbing dynamic DNS addresses from the
> ip-up.bat file. Mine is generated by the chat0 dialer that comes
> with epppd, and then I used lsppp for the packet driver. However,
> my ip-up.bat files not contain te DNS number, only these variables:

> set myip=209.3.225.39
> set remip=209.3.225.2
> set netmask=255.255.255.192
> set peermru=1500

> What software creates an ip-up.bat file that includes DNS numbers?
> By the way, here is a little strategy for quickly generating a
> new wattcp.cfg file, for each internet session. Assume I put
> say 10 static lines I want in wattcp.cfg, in in dialer.bat file.
> Then:
>    call ip-up.bat
>    echo ip=%myip% > wattcp.cfg
>    tail -10 dialer.bat > wattcp.cfg

> The latter inserts the dos variable %myip% in wattcp.cfg, and then
> copies the last 10 lines in your dialer script into wattcp.cfg as well.
> These lines can just site in your dialer batch file, as long as you
> use, for instance, a null batch file to teminate  dialer.bat execution,
> before the last 10 lines (e.g., is you run a batch file within
> a parent batch file, rather than ``calling'' it, and the  child batch
> file is  empty - the effect is to exit the parent file.).

LSppp will automatically grab the DNS numbers and generate
them into IP-UP.BAT.  I use COMTOOL as a dialer and then use
LSppp to load the packet driver and to complete the TCP/IP
negotiations.  (COMTOOL is a freeware dialer utility that comes with
DOS ARACHNE.)  My internet dialup program looks like this:

----------
@echo off
REM; Program name: DIALUP.BAT
REM  Program needs COMTOOL.COM, HANGUP.BAT, AT.EXE, TERMIN.COM, and LSppp.exe
REM  AT.EXE and TERMIN.COM are programs called by HANGUP.BAT
echo  Ready to dial the Internet Service Provider whose number is indicated.
echo  Upon connecting you will see a terminal screen.
echo  Enter your login and password at the terminal screen.
echo  When you see the strings of "weird characters", press ALT + E.
echo.
echo  Also press ALT + E to get out of this program in case it "hangs".
echo.
echo  Press any key to continue . . .
pause > nul
:rep
echo.
COMTOOL 1 ^B0 +++ ^T9 AT&F&C1&D2 ^T6 ^CR ATDT9849676 ^CR ^W600 CONNECT BUSY NO^
if errorlevel 8 goto ende
if errorlevel 3 goto ende
if errorlevel 2 goto rep
if errorlevel 1 goto termi
goto rep
:termi
COMTOOL 1
echo.
echo.
echo Now logged in.  Packet driver starting . . .
echo.
lh lsppp
call IP-UP.bat
echo my_ip=%MYIP% > path.cfg
echo gateway=%remip% >> path.cfg
echo netmask=%netmask% >> path.cfg
echo nameserver=%dns1% >> path.cfg
echo nameserver=%dns2% >> path.cfg
echo Ip address set to %MYIP%
copy copy path.cfg c:\arachne > NUL
copy path.cfg d:\arachne > NUL
copy path.cfg c:\ssh > NUL
copy path.cfg c:\dialnet\lynx386 > NUL
goto thend
echo.
:ende
hangup
:thend
echo.
-------------

My IP-UP.BAT looks like this:

-------------
set myip=204.111.89.148
set remip=204.111.87.2
set netmask=255.255.240.0
set peermru=1500
set dns1=204.111.1.35
set dns2=204.111.1.36
-------------

In have a WATTCP.CFG file in each directory where I have a DOS
internet application installed.  The first line of my WATTCP.CFG
file is "include=path.cfg"

Optionally I could dialup my ISP by using only LSppp because LSppp
has its own dialer functions.  The reason why I use COMTOOL in
combination with LSppp is that the dialer functions in LSppp do
not work with some modems.  Also I have found that using COMTOOL
in combination with LSppp is more likely to result in establishing
an TCP/IP connection in my first dialup attempt.  When I use LSppp
by itself and in such a manner to include using its built-in
dialer functions as in

lh lsppp /n:1 /i:4 /M:AT&F&C1&D2 /B:115200 /U:username /P:password /d:9849676

the command shown above is all that is necessary to dialup and
connect and to generate an IP-UP.BAT to include DNS numbers. Of course
the command would first have to be modified so as to substitute my
real username and my real password.

The problem with using LSppp as a dialer with modems that work with
the LSppp dialer is that sometimes LSppp will "hang" while displaying
the message "Connecting to network . . .".  When this happens I have
to hit the escape key and then run HANGUP.BAT and try again.  Usually
I can establish a TCP/IP connection within three attempts.  Often it
will work on the very first try.  When I use COMTOOL as a dialer and
use LSppp only as a packet driver and for doing the TCP/IP negotiations
I generally always establish a TCP/IP connection on the first dialup
attempt.  Before running DIALUP.BAT I always run HANGUP.BAT first
to insure that the modem has been properly reset with "AT&F".  COMTOOL
seems to fail at times in properly resetting the modem, even though
"AT&F" is included in the modem init string.

Sam Heywood
-- This mail was written by user of The Arachne Browser - http://arachne.cz/

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html

Reply via email to