Automate RAS dial out
After configuring RAS for Dial out:
1. You dial with RASPHONE
2. Start Netscape and/or WinCim
You can automate this in a batch file:
RASDIAL Entry-Name
RASMON
cd c:\netscape
c:\netscape\program\netscape.exe
RASDIAL Entry-Name /DISCONNECT
exit
When you exit Netscape, RAS will hang up.
Here is a sample batch file:
rasdial PPP-CIS
cd C:\CSERVE\WinCim
c:\cserve\wincim\wincim.exe
rasdial PPP-CIS /DISCONNECT
exit
Optionally, you can add rasmon.exe at the beginning.
PPP-CIS is my entry name in RAS for Compuserve.
Here is my Switch.inf:
[CIS-Internet]
COMMAND=<cr>
OK=<match>"e:"
ERROR_NO_CARRIER=<match>"NO CARRIER"
LOOP=<ignore>
COMMAND=+<cr>
OK=<match>"Host Name:"
ERROR_NO_CARRIER=<match>"NO CARRIER"
LOOP=<ignore>
COMMAND=CIS<cr>
OK=<match>"User ID:"
ERROR_NO_CARRIER=<match>"NO CARRIER"
LOOP=<ignore>
COMMAND=YourCompuserveId/GO:PPPCONNECT<cr>
OK=<match>":"
ERROR_NO_CARRIER=<match>"NO CARRIER"
LOOP=<ignore>
COMMAND=YourPassword<cr>
CONNECT=<ignore>
After installing RAS for dial-out in Control Panel/Networks, run RASPHONE:
click Authenticate using current user ....
Modem
As fast as you can
Hardware features - check all (if your modem supports them)
Network
check PPP
TCP/IP settings
check Server assigned IP address
check use specific name servber address
DNS 149.174.64.41
DNS Backup 149.174.64.42
check Use VJ header compression
check Use default gateway
Security
check Accept any authentication ....
Terminal Scripts
Before dialing [none]
After dialing [CIS-Internet]
Here is a wordier I got from another thread:
I recently spent a lot of time doing this exercise, and I'm finally using a
PPP
account with several third party apps (Mosaic, Netscape, et al). Let's see
if I can remember all of it:
1. From ControlPanel/Networks/Add Software..., add "TCP/IP and related
components," "Remote Access Service (RAS)," and "NetBIOS
Interface."
When these are added, other components will automatically be added
as well.
2. When RAS is added, you will be given the opportunity to configure
it. If you have no NIC, NT will tell you that as you have no network
adapter
installed, it is disabling automatic restoration of network
connections at startup, tell it OK. The RAS configuration dialog
box will come up, and list your modem as your only network device.
You will note that 'Disable automatic restoration, etc. is
checked (if not, select it). Don't worry about configuring the
modem at this point. NT gives you a 'Configure' button, but it
doesn't do anything. Press the "Network" button, and you will see
three buttons under the heading Dialout protocols. NetBEUI and
TCP/IP are each selected. Deselect NetBEUI, and leave TCP/IP
selected. Press OK/OK, and let NT do its thing and return you to
the Network dialog box.
3. At stage, confirm the following network components are installed:
NetBIOS Interface, Remote Access Services, Simple TCP/IP Services
SNMP Service, and TCP/IP protocol. Press OK.
4. After installing the network software, NT will configure bindings,
etc., and have you restart. Do so.
5. Go to ControlPanel/Services and set Remote Access Connection
Manager startup to manual. Set Simple TCP/IP Services startup
to automatic. Close Control Panel.
6. Execute the Remote Access Manager app.
7. Select ADD, and enter your ISP Name and phone number.
A. For the present, do not select Authenticate using current
user name and password.
8. Confirm that your appropriate Port and Modem are shown. From
the line of buttons on the bottom of the dialog box, select
Modem. Set the initial spped, and enable hardware flow control
and modem error control. Press OK.
9. Press the Network button. Select PPP and TCP/IP as the protocol.
Enable Request LCP connections. Press the TCP/IP Settings...
button to bring up the TCP/IP dialog box.
10 Select Server Assigned IP Address. Select Use specific name server
address, and fill in the primary and backup DNS addresses. Leave
the WINS and WINS backup addresses at 0. Select Use VJ Header
compression, and Use default gateway on remote network. Press
OK/OK.
11 Press the Security button to bring up the Security Settings
dialog box. Select Use clear text Terminal logon only. For
Terminal or Script, set before and after to none. Press OK/OK.
12 Highlight your ISP's phone number, and press the Dial button.
After the connect, the RAS Terminal window opens, and you should be
prompted by your ISP to logon:. Enter whatever you are supposed
to at this time. Next comes password:, which you should enter.
Next you will see a series of interesting characters. When they
start to appear, press the Done button. A message box will come
up and inform you "verifying username and password." Then it will
say logging your computer onto network. When the dialog box
disappears, you are successfully logged on, and you may switch to
your third-party net app.
11 Now you have confirmed that RAS works, so press RAS's Hang Up
button.
12 Create a RAS script by editing Switch.Inf in \System32\RAS. It's
pretty easy (you can probably use the generic script with your
username and password inserted).
13 Go back to RAS and press the Edit button to alter the entry for
your ISP. Select Authenticate using current username and password.
Press the Security button. Select Accept any authentication
including clear text. Under Terminal or Script, After Dialing,
select the entry that corresponds to the script you added for your
ISP. Select OK/OK.
14 Dial up your ISP. You won't get the terminal window this time,
you'll get the connection dialog box telling you (for a long time)
it is verifying username and password, then connecting your
computer. When it has finished, start your third-party app, and
enjoy.
Backup one step