<P>Route ADD "data" -p
<P>Just type route at the cmd prompt. It will tell you all the comands. Here they are below.
<P>______________________
<P>C:\>route ?
<P>Manipulates network routing tables.
<P>ROUTE [-f] [-p] [command [destination]<BR> [MASK netmask] [gateway] [METRIC metric] [IF interface]
<P> -f Clears the routing tables of all gateway entries. If this is<BR> used in conjunction with one of the commands, the tables are<BR> cleared prior to running the command.<BR> -p When used with the ADD command, makes a route persistent across<BR> boots of the system. By default, routes are not preserved<BR> when the system is restarted. Ignored for all other commands,<BR> which always affect the appropriate persistent routes!
. This<BR> option is not supported in Windows 95.<BR> command One of these:<BR> PRINT Prints a route<BR> ADD Adds a route<BR> DELETE Deletes a route<BR> CHANGE Modifies an existing route<BR> destination Specifies the host.<BR> MASK Specifies that the next parameter is the 'netmask' value.<BR> !
netmask Specifies a subnet mask value for this route entry.<BR> If not specified, it defaults to 255.255.255.255.<BR> gateway Specifies gateway.<BR> interface the interface number for the specified route.<BR> METRIC specifies the metric, ie. cost for the destination.
<P>All symbolic names used for destination are looked up in the network database<BR>file NETWORKS. The symbolic names for gateway are looked up in the host name<BR>database file HOSTS.
<P>If the command is PRINT or DELETE. Destination or gateway can be a wildcard,<BR>(wildcard is specified as a star '*'), or the gateway argument may be omitted.
<P>If Dest contains a * or ?, it is treated as a shell pattern, and only<BR>matching destination routes are printed. The '*' matches any string,<BR>and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.<BR>Diagnostic Notes:<BR> Invalid MASK generates an error, that is when (DEST & MASK) != DEST.<BR> Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1<BR> The route addition failed: The specified mask parameter is invalid.<BR> (Destination & Mask) != Destination.
<P>Examples:
<P> > route PRINT<BR> > route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2<BR> destination^ ^mask ^gateway metric^ ^<BR> Interface^<BR> If IF is not given, it tries to find the best interface for a given<BR> gateway.<BR> > route PRINT<BR> > route PRINT 157* .... On!
ly prints those matching 157*<BR> > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
<P> CHANGE is used to modify gateway and/or metric only.<BR> > route PRINT<BR> > route DELETE 157.0.0.0<BR> > route PRINT
<P>
<P>
<P> <B><I>Justin Bennett <JUSTIN.BENNETT@DYNABRADE.COM></I></B>wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">This is not linux related but I need some help jogging my memory, Whats<BR>the file in W2k where you can add routes, so the routes will be active at<BR>startup. I did it before but can't remember.<BR><BR><BR><BR>-- <BR>-------------------------------------------<BR>Justin Bennett<BR>Red Hat (Linux) Certified Engineer<BR>Network Administrator<BR>Dynabrade Inc.<BR>8989 Sheridan Dr<BR>Clarence, NY 14031<BR>716-631-0100 ext 215<BR></BLOCKQUOTE><BR><BR>Tom McKim<br>mckimt@yahoo.com<br>mckimt@epicforchildren.org<p><br><hr size=1>Do you Yahoo!?<br>
New <a href="http://rd.yahoo.com/evt=1207/*http://sbc.yahoo.com/">DSL Internet Access</a> from SBC & Yahoo!</a>