You are currently offline, waiting for your internet to reconnect

Routing IP Packets to Network Adapter Rather than RAS

This article was previously published under Q143168
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
Pages 419 to 421 of the Windows NT Networking Guide in the Windows NT3.5 Resource Kit explain how you can configure the Windows NT Remote Access Service (RAS)using the TCP/IP protocol to perform as a simple router.

The routing is between the RAS connection and the network adapter in yourlocal area network (LAN). However, if the following conditions are met,all network packets are sent over the RAS connection:
  • Your RAS connection and network adapter are using two different subnetwork addresses in the same network.
  • You select Use Default Gateway On Remote Network check box for Windows NT RAS.
This article explains how you can direct network packets to the networkadapter.
To send packets to your network adapter, do the following in the registry:

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

  1. Start Registry Editor (REGEDT32.EXE) and locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

  2. From the Edit menu, select Add Value.
  3. Enter the following:

    Value Name: PriorityBasedOnSubNetwork
    Data Type: REG_DWORD
    String: 1 (Enable)
  4. Click OK and quit the Registry Editor.
  5. At a command prompt type:

    net stop remoteaccess
  6. At a command prompt type:

    net start remoteaccess


If your network adapter address is and your RAS connection usesthe address and your subnet mask is, the networkpackets is forwarded to The addresses and aretwo different subnetworks in the Class A network. If you do notenable the PriorityBasedOnSubNetwork parameter, the following entriesappear in your route table (assuming that you have selected the UseDefault Gateway on Remote Network check box in RAS):
 Network Address      Netmask     Gateway Address   Interface  Metric ---------------      -------     ---------------   ---------  ------     1     1     2 *     1 *     1     1     1     1     1     1     1				

Due to the two entries above (noted with *), all packets are sent over theRAS connection with the address If you enablePriorityBasedOnSubNetwork, the following entry is removed from the routetable:
 Network Address      Netmask      Gateway Address  Interface  Metric ---------------    -----------    ---------------  ---------  ------     1				

If you have additional subnetworks in the network and you wantthe packets to reach the correct subnetwork, add static routes to theroute table. You can also use the Multi-Protocol Router (MPR) softwareavailable in the Windows NT 3.51 Service Pack 2. For additional information about adding static routes to the route table in Windows NT, please see the following article in the Microsoft Knowledge Base:
140859 TCP/IP Routing Basics for Windows NT
prodnt TCPIP lose packets connectivity

Article ID: 143168 - Last Review: 11/01/2006 04:56:28 - Revision: 2.1

  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • kbnetwork KB143168