Windows IT Pro
Windows IT Library
  - Advertise        
Windows IT Pro Logo

  Home  |   Books  |   Chapters  |   Topics  |   Authors  |   Book Reviews  |   Whitepapers  |   About Us  |   Contact Us  |   ITTV  |   IT Jobs

search for  on    power search   help
 






Making Connections
View the book table of contents
Author: Sue Mosher
Published: February 1997
Copyright: 1997
Publisher: Duke Press
 


Creating a DUN Connectoid
Now you need to create a DUN connectoid to link you to specific network resources. To make a new connectoid, follow these steps:
  1. Open My Computer, then choose Dial-Up Networking. You’ll see any existing DUN connectoids, including one for The Microsoft Network, if you have joined MSN. You can also start DUN by clicking Start, then choosing Programs, Accessories, Dial-Up Networking.
  2. Choose Make New Connection.
  3. In the first screen of the Make New Connection wizard, give this connection a name, perhaps the name of the computer you’re dialing. Also, select a modem from the list of those installed on your system. Click Next to continue.
  4. Enter the Area Code, Telephone Number, and Country Code for the computer you want to call; then click Next to continue and Finish to complete the wizard.
This process creates a new connectoid with default settings to connect to a Windows 95, Windows NT, or Internet server. Here’s where we get into the specific settings for your connection. You’ll need to know
  • Your user name
  • Your password
  • Whether or not a terminal window is used for logging on
  • For TCP/IP, whether or not the server assigns an IP address
  • For TCP/IP, whether or not the server assigns name server (DNS and WINS) addresses
Once you have this information, right-click on the connectoid in the Dial-Up Networking folder and choose Properties. In the Properties dialog box for the connectoid (Figure 3.5), click the Configure button to display the properties for the selected modem, then switch to the Options tab (Figure 3.6) to set the connection options listed in Table 3.2.

When you’ve finished with these options, click OK to return to the properties for the connectoid, then click Server Type for additional options, as shown in Figure 3.7. These options are also listed in Table 3.3.

Special Note: PPP connections also can be made to Shiva LanRovers and other third-party remote access products.

If you choose TCP/IP as one of your protocols, click TCP/IP Settings for a final set of connectoid options, listed in Table 3.4.

Setting the User ID and Password
By default, a DUN connectoid uses the same user name and password that you specified when you logged on to Windows. You’ll want to change this in some cases, particularly if you’re using the connectoid to log on to an Internet mail server. Follow these steps:
  1. Double-click the connectoid in the Dial-Up Networking window.
  2. In the Connect To dialog box (Figure 3.8), enter the User name and Password that you want to use to connect to this server.
  3. Click the “Save password” box if you want this password to be saved as part of your Windows password list, so you won’t be prompted for it again.
  4. Click the Connect button to apply the new user name and password to this connectoid and to try to make a connection.
Scripting the Log-On Process

You can automate your dial-up log-on process with a script.

Some ISPs automatically handle the log-on process, based on the user name and password you provided. Others require you to enter that information manually, responding to prompts on the screen. It’s possible to automate your log-on process with a script. If you installed support for SLIP, as described earlier under “Configuring DUN for Windows 95,” then script support is already available. If not, follow the steps in that section to install it.

Before writing a script, use the connectoid at least once and jot down all the prompts that appear in the terminal window, as well as your responses. To see those prompts, you need to select Bring Up Terminal Window Before Dialing, as described in Table 3.2.

To use Dial-Up Scripting, click Start, then choose Programs, Accessories, Dial-Up Scripting Tool. You will see the dialog box shown in Figure 3.9.

To add a script to a DUN connectoid, follow these steps:

  1. Under Connections, select the connectoid you want to work with.
  2. In the “File name” box, type a name for the script you want to create. Use .scp as the extension; for example, My Connection.scp.
  3. Click Edit to open the blank script in Notepad.
  4. Enter a proc main command to begin the script and an endproc to end it.
  5. Between proc main and endproc, enter commands from those listed in Table 3.5. Alternate a waitfor or delay command with one or more transmit commands, as shown in the sample script.
  6. Close Notepad and save the script.
  7. If you want to test your script when the connectoid starts, check “Step through script.”
  8. In the Dial-Up Scripting Tool dialog box, click the Apply button to link the script with the selected connectoid, then click Close.
Once you’ve added a script to a connectoid, the script will automatically execute each time you use that connectoid, saving you from having to enter your user ID and password in the terminal window.

Here’s an example of a simple script you can use to wait for various prompts and enter the required information:

proc main
        ; wait for prompt for user name
	waitfor “User ID:”
	; send user ID
	transmit $USERID
	transmit “^M”
	; wait for prompt for password
	waitfor “Password:”
	; send password
	transmit $PASSWORD
	transmit “^M”
endproc
In addition to the common commands shown in Table 3.5, a number of others are available to address specific log-on issues. For example, to establish a PPP connection using CompuServe, you must change the communications port settings to log on, then restore them to complete the connection. To find out about these commands, click the Help button in the Dial-Up Scripting Tool dialog box. Look in the Program Files\Accessories folder for more examples of scripts, stored as .scp files.

Configuring DUN for Windows NT
Under Windows NT 4.0, DUN is part of Remote Access Service (RAS) and is installed as part of the network setup, following these steps:

  1. Click the Start button, then choose Settings, Control Panel.
  2. In the Control Panel window, double-click Network, then switch to the Services tab in the Network dialog box.
  3. On the Services tab, click the Add button. (If this button is disabled, that means you don’t have the right privileges to change your network setup. See your system administrator for assistance.)
  4. In the Select Network Service dialog box, select Remote Access Service, then click OK.
  5. In the Windows NT Setup dialog box, enter the path to the CD, diskette, or network folder where the NT setup files can be found, then click Continue.
  6. After the Remote Access Service files are copied to your system, the Add RAS Device dialog box (Figure 3.10) appears. Under RAS Capable Devices, choose the modem you want to use for DUN. (You can also click the Install Modem button to add a new modem to your system.) Click OK when you have selected the modem.
  7. You should now see your modem listed in the Remote Access Setup dialog box (Figure 3.11). Your modem is set by default for dial-out access only. Click the Network button to bring up the Network Configuration dialog box shown in Figure 3.12.
  8. In the Network Configuration dialog box (Figure 3.12), check TCP/IP or the other network protocol you need, then click OK.
  9. Back in the Remote Access Setup dialog box, click the Continue button.
  10. Restart your system when you’re prompted to do so.
Special Note: If you want to add dial-in access to your modem, click the Configure button shown in Figure 3.11. This will turn your workstation into a remote access server that other people can dial into. You will then also see additional options for the RAS server in the Network Configuration dialog box. For Exchange, though, you need only the dial-out access.

Installing a Network Protocol
The next step is to install the TCP/IP protocol for accessing the Internet (or another protocol if you need it) if TCP/IP is not already active on your system. Follow these steps to install TCP/IP:

  1. Click the Start button, then choose Settings, Control Panel.
  2. In the Control Panel window, double-click Network, then switch to the Protocols tab in the Network dialog box.
  3. On the Protocols tab, click the Add button.
  4. In the Select Network Protocol dialog box, select TCP/IP Protocol, then click OK.
  5. You’ll be asked whether you want to use DHCP to dynamically obtain an address for your network adapter. Click Yes if your computer is connected with a network card to a LAN that has a DHCP server available. Otherwise, click No. (Click No if you use this machine only for DUN, not for connecting on a local network.)
  6. In the Windows NT Setup dialog box, enter the path to the CD, diskette, or network folder where the NT setup files can be found, then click Continue.
  7. After files are copied to your system, you’ll be asked whether you want to configure RAS to support the TCP/IP protocol. Click OK.
  8. In the Remote Access Setup dialog box (Figure 3.11), select the modem you use for RAS, then click the Network button.
  9. In the Network Configuration dialog box (Figure 3.12), check TCP/IP, then click OK.
  10. Back on the Remote Access Setup dialog box, click the Continue button. Then, in the Network dialog box, click Close.
  11. If you did not choose DHCP in Step 5, you’ll see the Microsoft TCP/IP Properties dialog box, where you will need to enter configuration settings for your network card on four separate tabs, then click OK to save them (get the information you need from your system administrator). For DUN, these settings are handled on each phonebook entry, as you’ll see in the next section; so you won’t see this dialog box if you use only DUN and no network card.
  12. Restart your computer when you’re prompted to do so.


Page: 1, 2, 3, 4, 5

next page



ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Maximize your SharePoint Investment – 8 Cities
Discover best practices and tips for both architecting and administering SharePoint. Early Bird Price of $99 through Sept 15th.

Find a new job now on the all new IT Job Hound!
Search jobs, post your resume, and set up job e-mail alerts!

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Top Tools for Virtualization Disaster Recovery & Replication
View this web seminar on August 14th to learn about two tools that will result in faster backup and restore with P2V disaster recovery.

SharePointConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

VMworld 2008 - Sign Up Today!
Join your peers on September 15-18 at The Venetian Hotel in Las Vegas as VMware hosts VMworld 2008, the leading Virtualization event.



When managing just VMware isn’t enough
Plan/Manage/Secure – NetIQ VMware management. Download whitepaper.

What’s up with your network? Find out with ipMonitor
Availability monitoring for servers, applications and networks – FREE trial

Microsoft® Tech•Ed EMEA 2008 IT Professionals
Advance your thinking with new ideas and practical real-world solutions at Microsoft’s FIVE day technical infrastructure conference 3-7 Nov., 2008. Register before 26 September 2008 to save €300.

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

Are You Really Compliant with Software Regulations?
View this web seminar that will help you with compliance best practices and check out a management solution to assure that you won’t be in jeopardy of an audit.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16 in London.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing