Windows 版 (精华区)
发信人: hbt (书生21), 信区: OS
标 题: Howto for Windows 95 SLIP and PPP
发信站: 紫 丁 香 (Mon Oct 19 13:27:09 1998), 转信
发信人: sunny (Apollo), 信区: Win95
标 题: Howto for Windows 95 SLIP and PPP
日 期: Thu Jan 18 13:36:50 1996
Note: The instructions below now accomodate multiple dial-ups by
localizing the IP addresses to each dial-up entry, rather than making
them global throughout the system. Revisions have also been made for
better clarity.
The following are comprehensive instructions on getting Win95 to
network over a dial-up using SLIP/PPP, with consideration for TIA &
SLiRP. These are specific to the Win95 950 builds, including the gold
release (950r6). These assume that you have a modem and have an
Internet account with an ISP (Internet Service Provider).
Info needed: Your IP address (if static IP); your ISP's name, domain
names, and IP addresses.
Components needed: Dial-Up Networking; DSCRIPT; TCP/IP.
**Always select OK to close a settings screen and not the Close (X)
button, or otherwise the changes you made will be ignored.
----------
ADDING NEEDED COMPONENTS:
To add Dial-Up Networking,
Open Start | Settings | Control Panel | Network | Add | Adapter |
Microsoft | Dial-Up Adapter. Click OK.
The Dial-Up Adapter should now be present in the Network window.
Win95 will ask to restart system, don't restart just yet.
Delete all other entries in the window (aside from the Dial-Up
Adapter), by selecting them and clicking Remove.
To add DSCRIPT,
Open Start | Settings | Control Panel | Add/Remove Programs |
Windows Setup | Have Disk.
Enter [CD drive]:\ADMIN\APPTOOLS\DSCRIPT and press OK.
To add TCP/IP,
Open Start | Settings | Control Panel | Network | Add | Protocol |
Add | Microsoft | TCP/IP. Click OK.
You should now have the Dial-Up Adapter and TCP/IP icons in the
Network window. Win95 will ask to restart system. Press No
to keep on going.
Select TCP/IP, and click on 'Properties'. Select 'Gateway' tab.
Enter 1.0.0.1, and press the Add button.
Press OK's until you've closed the Network screen.
After rebuilding its driver database, Win95 will again prompt you to
restart the system. Select No to keep on going.
----------
MAKING A DIAL-UP ENTRY:
Open Start | Programs | Accessories | Dial-Up Networking. Win95 will
activate the Make New Connection wizard. Press Cancel for now.
Select Connections (in the Dial-Up Networking folder menu) | Settings.
Enable 'Redial' (retry = 99, 0 min 1 sec between retries).
Select 'Don't prompt to use Dial-Up Networking'. Press OK.
Double-click on the Make New Connection icon.
Enter name of the ISP for the top box (ex: Eskimo North).
Select your modem from the list, or let Win95 autoselect your modem
(if modem is not already set up).
Select 'Configure' (modem)
[General]
Select max speed (I use 57600 for 28.8K, for typical 2:1
compression ratio). Click OK.
[Connection]
Enable 'Cancel the call if not connected within _60_ secs'
Enable 'Disconnect a call if idle for more than _15_ mins'
Click Next; enter the ISP's telephone access number when prompted
(no area code, unless it is a long-distance call.)
Click Next; enter a name for the dial-up entry (ex: Eskimo).
Click Finish. A connect icon for the ISP will appear in the folder.
Right-click on the connect icon. Select Properties | Server Type.
Select SLIP (use this for TIA 1.3), CSLIP, or PPP (use this for SLiRP
or TIA 2.0 beta) from the drop-down menu.
Disable 'Log on to network'.
Disable 'NetBEUI' and 'IPX/SPX Compatible'.
[If you select SLIP or CSLIP, these will already be greyed out.]
Click on 'TCP/IP Settings'.
Select 'Specify name server address'.
Enter the IP address(es) of the various domains of the ISP.
(Ex: for Eskimo, enter 204.122.16.13 for main server,
204.122.16.40 for tia server)
If dynamic IP address, select 'Server assigned IP address'.
If static IP address, select 'Specify an IP address' and enter
your IP address, as provided to you by your ISP.
If TIA or SLiRP, select 'Specify an IP address' and enter
192.0.2.1 (anything you want, really) for IP address.
You can drag the ISP icon you've just made out onto the desktop for
quicker access. Repeat this section for any additional dial-up entry
you want to create.
----------
MAKING A LOGIN SCRIPT:
You've made a dialing connection icon for the ISP, but you need a
script to get past the login and start SLIP/PPP/TIA. DSCRIPT will
handle this chore.
Open Start | Programs | Accessories | Dial-Up Scripting Tool
The dialing connection you've just made should be presented as an entry
inside the Connections window. Since it's the only entry, it should
already be highlighted. Click on 'Browse', and select one of the
sample script (SCP) files for modification. Then click on 'Edit' to
modify the file to fit your ISP login. Below is a sample script for
Eskimo North:
-----
; Eskimo North login script
proc main
transmit "^M"
waitfor "Selection ==>"
transmit "4^M"
waitfor "login:"
transmit "YourName^M" ; replace with your login name
waitfor "Password:"
transmit "YourPasswd^M" ; replace with your password
waitfor "bash$" ; replace with your prompt
transmit "tia^M" ; use this for TIA
;transmit "slirp -b 57600 -P^M" ; use this for SLiRP (emulating PPP)
;set ipaddr getip 2 ; use this for dynamic IP address
endproc
-----
Save the script.
Enable 'Start terminal screen minimized'.
[For script debugging purposes, you can elect to disable the 'Start
terminal screen minimized' option and/or enable the 'Step through
Script' option.]
Restart Win95.
Note: Accessing the SCRIPTER.HLP file may be problematic, as it has no
accompanying .CNT (contents listing) file. I wasn't able to access its
Topics List, which means no access to the command syntax listing. I
ran the help file through an ASCII filter, and reconstructed the syntax
listing after some reformatting. If there is sufficient interest, I'll
repost it as an addendum.
----------
TESTING THE SETUP:
Double-click on the dialing-connection icon for the ISP, and click
Connect. (You don't have to enter your name/passwd, since you've
already hardcoded it into the script file. Be aware, however, that the
scripts are saved in plain ASCII which may pose a security problem for
multi-user setups). If everything goes smoothly, you will get a
Connect message. (I've noted that with SLiRP, it takes as long as half
a minute for the TCP/IP connect to be made after the SLiRP command is
given to the host shell.)
After the Connect message, minimize the window onto the TaskBar, and
open up a DOS box. Enter 'telnet [ISP domain name]' (ex: telnet
eskimo.com) to connect to your ISP. If telnet is successful, then the
setup is good, and you are in business.
Win95 also has some other command-line TCP/IP utils, the most important
of which is FTP.EXE. Between telnet and ftp, you have the tools to
acquire other winsock apps from the net to add to your stable.
----------
Miscellany: The Win95's FTP is a subset of the Unix version. While it
is bareboned, it has a scripting function which makes it useful for
automated batch-type ftp sessions (as versus interactive point-and-
click use, for which WS_FTP32 is better suited). A plus is that it has
zero impact on CPU usage (as shown by System Monitor) and runs well in
the background. For more info on FTP's syntax, search the Win95
Resource Kit (included on the Win95 CD) for 'ftp' as keyword. Here is
a sample ftp script file:
open ftp.eskimo.com ; access the site (no comments are allowed within
anonymous ; name the script, so strip these out)
anon@anon.com ; password
hash ; turn on hash marks to see transfer progress
bin ; set transfer type to binary
prompt ; turn off file prompting for mget
cd /pub/yummy_stuff ; cd to site's desired directory
lcd e:/download ; cd to desired local dir (remember to use '/')
dir eskimo.lst ; save a dir of Eskimo to local file ESKIMO.LST
! ; shell to DOS to scan file, 'exit' to re-enter
mget stuffa* stuffb* ; get stuff (my favorite part)
close ; quit the site
To use a script, enter FTP -s:[script_file]
--------------------------------------------------------------------------------
--
书 中 自 有 黄 金 屋 ,
网 络 更 胜 千 本 书 .
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: hs8.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:202.868毫秒