Subscribe to Windows IT Pro
August 01, 1997 12:00 AM

Watch Your RAS

Windows IT Pro
InstantDoc ID #568
Rating: (0)
Fine-tuning RAS's new features

My January article, "What's New in Windows NT 4.0 RAS?" generated a lot of great feedback and numerous interesting questions and problems. Many organizations use Windows NT's Remote Access Service (RAS) as the foundation for remote access and WAN connectivity solutions. Several new features in NT 4.0 RAS, such as Point-to-Point Tunneling Protocol (PPTP) and Multilink RAS, turn what was once a simple remote access component into a complex, high-powered networking solution. These new features increase the number of problems for users implementing RAS. This article answers questions and introduces a few new RAS-related tips and tricks. To start this discussion of RAS, I'll answer a few questions from readers.

The Case of the Missing Subnet Mask

When I dial in to my Windows NT RAS server and obtain an IP address, running IPCONFIG to display IP address information shows the wrong subnet mask for the RAS adapter. This problem happens from both NT and Windows 95 clients. Why does this occur, and how can I force RAS to recognize the correct subnet mask?

I've wondered the same thing about RAS since I started using it. We use subnetting and variable-length subnet masks (e.g., 255.255.255.192, etc.) in my organization, and RAS has never correctly displayed the network's subnet mask.

Instead, RAS displays the default subnet mask for the IP address. This default address is based on the first octet of the IP address (e.g., the 192 in the address 192.x.x.x) and determines the IP network class in use. Table 1 shows how these values are derived.

If you've noticed this behavior in RAS clients, you've probably also noticed that RAS works fine anyway. RAS uses the default subnet mask because subnet masks aren't a part of Point-to-Point Protocol (PPP--the industry standard framing method RAS uses), and the system doesn't pass them over the connection. You can stop worrying that your RAS clients are getting the wrong subnet mask: This behavior is not unusual for RAS.

Pump Up the Volume

One thing annoys me about using Windows NT 4.0's Dial-Up Networking (DUN): I like to hear the dialing tones and modem negotiation noises during a RAS connection (the noise reassures me that something is happening). But something turns off my modem's speaker as soon as I hear the dial tone (i.e., before the modem dials the phone number). Adding the string L3 in the Extra Settings field in the Advanced Connection Settings dialog box in the Control Panel Modems applet didn't make a difference. How can I make my modem speaker stay on during dialing and negotiation?

I have experienced this problem when manually adjusting the modem initialization string in RAS/DUN under NT 4.0. Using the slide-tab speaker volume adjustment in the Control Panel Modems applet is a hit-or-miss proposition. If this adjustment doesn't work, try placing the string M1L3 in the Extra Settings field in the Advanced Connection Setting dialog box. (To reach this dialog box from the Modems applet, click Properties, select the Connection tab, and click Advanced.)

If neither method works, and you're using Unimodem drivers and not the old MODEM.INF file entries, try editing the Registry section for your modem's Unimodem driver. To locate this entry, open one of the NT Registry editors (REGEDIT.EXE or REGEDT32.EXE) and open the HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Class key. Under this key, you'll find a many bizarre-looking codes (e.g., "{4D36E351...etc etc"), one of which represents the Unimodem driver class. The specific subkey you're looking for is {4D36E96D-E325-11CE-BFC1-08002BE10318}.

After opening this key, you'll see a subkey beginning with "0000," for each installed modem. Inside this key, you'll find various modem-related sections, including one called Init.

Init has values that are the initialization strings NT uses with your modem. You can add the M1L3 statement here or in one of the other subkeys of this tree.

The M and L registers control modem speaker and volume settings, respectively. Table 2 lists the possible values and definitions (I chose M1L3 to set the volume to maximum until the modem connects; this setting is sometimes necessary to hear a modem with a quiet speaker).

RAS Auto Redialing

I want to configure DUN as a service so that when the server boots, it automatically dials the Internet and makes a connection, without requiring that anyone log in. I had our Windows NT 3.51 server doing this task with the command-line utility RASDIAL. When installed as a service, RASDIAL required no intervention to get the network going. Does NT 4.0 have a feature for this procedure? I don't think the RASDIAL utility works as a service in NT 4.0.

Unfortunately, you cannot run this feature with only NT 4.0 RAS. RASDIAL works fine with

Related Content:

ARTICLE TOOLS

Comments
  • Jose Manuel Cremades Román
    9 years ago
    Mar 28, 2003

    I have been using Ras in Windows NT 4.0, 2000, and XP and It seems to work so well. Last week I detected a problem, and I don't know how to solve it.
    The problem ocurrs in a W2000 server acting as a Ras server, and a windows XP DUN Client. I am using GSM modems with low quality comunication. The problem is that I can comunicate sometime, and when I try to copy a long file, the comunication shuts down. Then when I try to connect again, the server does not respond. When I go to the server, I have to go to the server and finish the connection manually in order to be able to respond to new callings.
    The first problem I have is the quality of the communication, bun it is incredible that w2000 ras, becomes hang, and you have to go to the server (make some kilometers) to restart the service.

    I would be pleasant if anyone can help me.

  • Ashish Sinha
    10 years ago
    Jan 16, 2002

    Please Refer to the question:
    "When I dial in to my Windows NT RAS server and obtain an IP address, running IPCONFIG to display IP address information shows the wrong subnet mask for the RAS adapter. This problem happens from both NT and Windows 95 clients. Why does this occur, and how can I force RAS to recognize the correct subnet mask?"
    I am also facing the problem, the subnet mask allocated to the RAS client is 255.0.0.0. instead of 255.255.240.0. According to table1 the allocation depends on the first octet of IP. Does that mean that the RAS client would never be able to get the subnet mask of 255.255.240.0?

  • Gerald A. Burt
    13 years ago
    Aug 13, 1999

    I enjoy Sean Daily’s articles and Windows NT Magazine so much that I recently subscribed. I have a question about Sean’s August article, “Watch Your RAS,” and the Registry settings for tweaking PPTP. On page 168, in a Data setting, 1 enables a process; later in the article, in the Data setting, 1 disables a process. I’m new to the Registry, so feel free to slap me, but doesn’t 1 usually signify “on” and 0 signify “off”? Am I missing something in the syntax of the setting?

    --Gerald A. Burt




    Thanks for your feedback on my article and your question. As far as someone getting slapped, perhaps it should be the folks at Microsoft who name these Registry entries. In this case, the particular entry you mention for PPTP (DontAddDefaultGateway) is disabled when set to a value of 1 because of its negative context (“DontAdd…”). With other Registry values, the context of the value is positive (“Do” something or other…), so a value of 1 consistently signifies a true, or enabled, status.

    --Sean Daily

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.