This article is from the Windows NT Internet FAQ, by firstname.lastname@example.org (Steve Scoggins) with numerous contributions by others.
I do not have the dynamic IP working for SLIP connections.
This is because I do not know how to parse the IP and then transfer
the dynamically assigned IP to the proper RAS variable. I asked
Microsoft for additional information on the script language and I
was told that the NT 3.5 resource kit is supposed to have
additional documentation on the switch.inf script language but it
is not released yet (supposed to be released soon).
SLIP with dynamic IP
You will have to interactively logon to a SLIP server by manually
entering name, password, and "slip" to enter slip mode and recieve
the dynamic IP address. I copied the address to the address box in
the RAS terminal IP address box. Don't forget to enter the DNS IP
addressby configuring TCP/IP ( control panel \ network \ advanced \
enable DNS & DNS... ). Scripting
examples are included in other sections of this FAQ.
After searching for where rasphone stuck my IP address, and I
found it in the rasphone.pbk entry.
The first time I ran the SLIP login script via Rasphone book
entry I got a screen with a DONE button and the 0.0.0.0 IP
address was in a white box at the bottom of the screen. I typed
in my SLIP static IP address and clicked on the DONE button.
This then was written into the rasphone.pbk as the
SlipIpAddress=18.104.22.168 entry in the Evergreen section of
the rasphone.pbk file in /winnt35/system32/ras
Below is the rasphone.pbk entry for my Evergreen slip connection
which uses my static IP address.
I played around with a PPP connection using dynamic
IP and it worked fine. This works because the PPP protocol
negotiates the proper IP addresses for each end of the link
and the appropriate MTU etc.
Below is my rasphone.pbk entry for the Evergreen PPP connection:
Below is my switch.inf login script for the Evergreen PPP login
using dynamic IP.
; Wait until we get the "username:" prompt
; Give the account and wait for "password:" prompt
; Give the password and ignore response (we're done)
; Wait for "Alpine>" send the PPP command
; Wait for my IP address
CONNECT=<match>"Switching to PPP"
; CONNECT response means that the connection completed fine.
; ERROR_DIAGNOISTICS response means connection attempt failed
; - the DIAGNOSTIC information will be extracted from the response
; and sent to the user.
; ERROR_NO_CARRIER means that the remote modem hung up.
; ERROR resonses are for generic failures.