• Increase font size
  • Default font size
  • Decrease font size

How Do I Create Static Routes In Windows Xp

 

C:\Documents and Settings\Administrator>route print

IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x10005 ...00 1e 58 45 99 6b ...... D-Link DGE-530T V.B1 Gigabit Ethernet Adapte
r
0x10006 ...00 1e c9 5d 35 67 ...... Broadcom NetXtreme 57xx Gigabit Controller
0x30007 ...80 00 60 0f e8 00 ...... Windows Mobile-based Device #3
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     172.16.0.254      172.16.0.10     10
          0.0.0.0          0.0.0.0    172.16.10.254     172.16.10.42     20
        127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1      1
        134.0.0.0        255.0.0.0     172.16.0.254      172.16.0.10      1
      169.254.2.0    255.255.255.0      169.254.2.2      169.254.2.2     30
      169.254.2.2  255.255.255.255        127.0.0.1        127.0.0.1     30
  169.254.255.255  255.255.255.255      169.254.2.2      169.254.2.2     30
       172.16.0.0    255.255.255.0      172.16.0.10      172.16.0.10     10
       172.16.0.2  255.255.255.255        127.0.0.1        127.0.0.1     10
      172.16.0.10  255.255.255.255        127.0.0.1        127.0.0.1     10
      172.16.10.0    255.255.255.0     172.16.10.42     172.16.10.42     20
     172.16.10.42  255.255.255.255        127.0.0.1        127.0.0.1     20
   172.16.255.255  255.255.255.255      172.16.0.10      172.16.0.10     10
   172.16.255.255  255.255.255.255     172.16.10.42     172.16.10.42     20
     192.168.23.0    255.255.255.0     192.168.23.1     192.168.23.1     20
     192.168.23.1  255.255.255.255        127.0.0.1        127.0.0.1     20
   192.168.23.255  255.255.255.255     192.168.23.1     192.168.23.1     20
    192.168.107.0    255.255.255.0    192.168.107.1    192.168.107.1     20
    192.168.107.1  255.255.255.255        127.0.0.1        127.0.0.1     20
  192.168.107.255  255.255.255.255    192.168.107.1    192.168.107.1     20
        224.0.0.0        240.0.0.0      169.254.2.2      169.254.2.2     30
        224.0.0.0        240.0.0.0      172.16.0.10      172.16.0.10     10
        224.0.0.0        240.0.0.0     172.16.10.42     172.16.10.42     20
        224.0.0.0        240.0.0.0     192.168.23.1     192.168.23.1     20
        224.0.0.0        240.0.0.0    192.168.107.1    192.168.107.1     20
  255.255.255.255  255.255.255.255      169.254.2.2      169.254.2.2      1
  255.255.255.255  255.255.255.255      172.16.0.10      172.16.0.10      1
  255.255.255.255  255.255.255.255     172.16.10.42     172.16.10.42      1
  255.255.255.255  255.255.255.255     192.168.23.1     192.168.23.1      1
  255.255.255.255  255.255.255.255    192.168.107.1    192.168.107.1      1
Default Gateway:      172.16.0.254
===========================================================================
Persistent Routes:
  None

C:\Documents and Settings\Administrator>

Manipulates network routing tables.
ROUTE [-f] [-p] [command [destination]
                  [MASK netmask]  [gateway] [METRIC metric]  [IF interface]
  -f           Clears the routing tables of all gateway entries.  If this is
               used in conjunction with one of the commands, the tables are
               cleared prior to running the command.
  -p           When used with the ADD command, makes a route persistent across
               boots of the system. By default, routes are not preserved
               when the system is restarted. Ignored for all other commands,
               which always affect the appropriate persistent routes. This
               option is not supported in Windows 95.
  command      One of these:
                 PRINT     Prints  a route
                 ADD       Adds    a route
                 DELETE    Deletes a route
                 CHANGE    Modifies an existing route
  destination  Specifies the host.
  MASK         Specifies that the next parameter is the 'netmask' value.
  netmask      Specifies a subnet mask value for this route entry.
               If not specified, it defaults to 255.255.255.255.
  gateway      Specifies gateway.
  interface    the interface number for the specified route.
  METRIC       specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
The PRINT command will show both IPv4 and IPv6 routes, but the ADD, DELETE,
and CHANGE commands work only for IPv4 routes.  For IPv6 routes, use
the 'interface ipv6' context in netsh.exe.
Diagnostic Notes:
    Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
    Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
             The route addition failed: The specified mask parameter is invalid.
 (Destination & Mask) != Destination.
Examples:
    > route PRINT
    > route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2
             destination^      ^mask      ^gateway     metric^    ^
                                                         Interface^
      If IF is not given, it tries to find the best interface for a given
      gateway.
    > route PRINT
    > route PRINT 157*          .... Only prints those matching 157*
    > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
      CHANGE is used to modify gateway and/or metric only.
    > route PRINT
    > route DELETE 157.0.0.0
    > route PRINT
C:\Documents and Settings\Administrator>
Open Command Prompt.
At the command prompt, type: 
Syntax:
 
route ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx
where:
 
Static IP route entry Definition

destination

Specifies either an IP address or host name for the network or host.

subnetmask

Specifies a subnet mask to be associated with this route entry. If subnetmask is not specified, 255.255.255.255 is used.

gateway

Specifies either an IP address or host name for the gateway or router to use when forwarding.

costmetric

Assigns an integer cost metric (ranging from 1 through 9,999) to be used in calculating the fastest, most reliable, and/or least expensive routes. If costmetric is not specified, 1 is used.

interface

Specifies the interface to be used for the route that uses the interface number. If an interface is not specified, the interface to be used for the route is determined from the gateway IP address.

 

Add comment


Security code
Refresh