Information Technology Reference
In-Depth Information
Solution
Using a Graphical User Interface
1.
Start the Routing and Remote Access Services administrative console from the
Administrative Tools folder in the Start menu, or directly from %systemroot%\system32\
rrasmgmt.msc .
2.
Expand the console tree below the server object until you have selected IP Routing
Static Routes.
From here you can display the routing table or add, delete, or modify a static route:
￿
Display the routing table: Right-click Static Routes in the left pane and select Show IP
Routing Table. The results will appear in a pop-up window. Click any of the column
headers to sort the data by that criterion.
￿
Add a static route:
a.
Right-click Static Routes in the left pane and select New Static Route.
b.
Select the interface to which you want to add the static route.
c.
Enter the IP address of the destination network.
d.
Enter the network (subnet) mask of the destination network.
e.
Enter the IP address of the local gateway to the destination network.
f.
Select the metric value of this static route.
g.
Click the OK button to complete the static route configuration.
￿
Delete a static route: Right-click the interface in the right pane and select Delete.
(You will not be prompted to confirm the action.)
￿
Modify a static route: Right-click the interface in the right pane and select Properties.
Configure the same settings as those specified when you created the static route.
Using a Command-Line Interface
You can manipulate the IP routing table using the route command. The basic syntax is
as follows:
> route [-f] [-p] [command [ destination ] [Mask <netmask> ]
[gateway] [Metric <metricvalue> ] [Interface <interfacenumber> ]
Here is a description of the command-line options:
-f : Parameter that clears the routing tables of all gateway entries. If this is used in conjunc-
tion with one of the commands, the tables are cleared prior to running the command.
-p : Parameter that permanently adds a route, even after the computer is restarted. This option
can only be used with the add command; it will be ignored if used with any other command.
Search WWH ::




Custom Search