lotus

previous page: 4B-7: Does anyone know how to put in a delay in switch.inf scripts?
  
page up: Windows NT Internet FAQ
  
next page: 4B-9: Will the NT slip work with TIA?

4B-8: How do I get dynamic IP working for slip or ppp?




Description

This article is from the Windows NT Internet FAQ, by sscoggin@enet.net (Steve Scoggins) with numerous contributions by others.

4B-8: How do I get dynamic IP working for slip or ppp?

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=198.60.143.32 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.

[EVERGREEN SLIP]
Description=
AutoLogon=0
User=
Domain=
BaseProtocol=2
Authentication=-1
ExcludedProtocols=0
LcpExtensions=1
DataEncryption=0
SlipHeaderCompression=1
SlipFrameSize=1006
SlipIpAddress=198.60.143.32
SkipDownLevelDialog=0


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:

[ENETPPP]
Description=
AutoLogon=1
User=
Domain=
BaseProtocol=1
Authentication=0
ExcludedProtocols=3
LcpExtensions=0
DataEncryption=0
PppTextAuthentication=0
PppIpPrioritizeRemote=1
PppIpVjCompression=0
PppIpAddress=0.0.0.0
PppIpAssign=2
PppIpDnsAddress=168.158.8.5
PppIpDns2Address=
PppIpWinsAddress=
PppIpWins2Address=
PppIpNameAssign=2
SkipDownLevelDialog=0

Below is my switch.inf login script for the Evergreen PPP login
using dynamic IP.

[ENETPPP]
;
; Wait until we get the "username:" prompt
COMMAND=
ERROR_NO_CARRIER=<match>"NO CARRIER"
OK=<match>"ame:"
;
; Give the account and wait for "password:" prompt
COMMAND=USERNAME<cr>
ERROR_NO_CARRIER=<match>"NO CARRIER"
OK=<match>"ord:"
;
; Give the password and ignore response (we're done)
COMMAND=PASSWORD<cr>
ERROR_NO_CARRIER=<match>"NO CARRIER"
; Wait for "Alpine>" send the PPP command
OK=<match>"ine>"
COMMAND=PPP<cr>
ERROR_NO_CARRIER=<match>"NO CARRIER"
; Wait for my IP address
CONNECT=<match>"Switching to PPP"
ERROR_DIAGNOSTICS=<cr><lf><Diagnostics>
;ERROR_DIAGNOSTICS=<lf><cr><lf><Diagnostics>
;
; 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.
;



 

Continue to:













TOP
previous page: 4B-7: Does anyone know how to put in a delay in switch.inf scripts?
  
page up: Windows NT Internet FAQ
  
next page: 4B-9: Will the NT slip work with TIA?