Wednesday, June 21, 2006

Creating a Persistent Route

The Route command is used to manually configure the routes in the routing table.

If problems accessing websistes or external services, with a system with two network cards setup up a Persistent Route.

To display existing active routes: - in a command prompt, type

Route Print


To create the Persistent Route type:

SYNTAX:

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. When used with the PRINT command, displays the list of registered persistent routes. Ignored for all other commands, which always affect the appropriate persistent routes. This option is not supported Windows'95. command

command
One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route destination

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.


EXAMPLE:

route add -p 192.168.1.33 MASK 255.255.255.255 134.30.254.254

Additional information:
http://www.computerhope.com/routehlp.htm#01
http://www.microsoft.com/resources/documentation/windows/xp/all
/proddocs/en-us/route.mspx?mfr=true

No comments: