"P" Switch for Route Command Added in Windows NT

Last reviewed: October 5, 1997
Article ID: Q141383
The information in this article applies to:
  • Microsoft Windows NT Workstation version 3.51
  • Microsoft Windows NT Server version 3.51
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

The "P" switch for the Route command allows a user to make persistent entries routing table by adding a static route directly to the registry. The switch is new to Windows NT 3.51.

MORE INFORMATION

You can use the "P" switch for the Route command which allows a user to make persistent entries in the routing table by adding a static route directly to the registry. The use of the "P" switch is covered in the online command reference but is not in the printed TCP/IP reference.

Sample syntax from a command line:

   route -p add 131.107.3.0 mask 255.255.255.0 131.107.3.1

The command forces the following registry entry to be read when the computer is restarted.

   HKEY_LOCAL_MACHINE
    \SYSTEM
      \CurrentControlSet
        \Services
          \Tcpip
            \Parameters
              \PersistentRoutes

   value: 131.107.3.0 255.255.255.0 131.107.3.1 Reg_SZ:


Additional query words: prodnt
Keywords : NTSrvWkst nttcp kbnetwork
Version : 3.51 4.0
Platform : winnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.