TCP/IP Transmission Control Protocol/Internet Protocol

Resource: Windows 2000 Server Resource kit TCP/IP Core Networking Guide

> Part2 > TCPIP > Commands > Route

Route

این فرمان برای نمایش جدول Routing Table و نیز Modify کردن آن به کار می رود .

 
Route Print

زمانی که می خواهید Routing Table را مشاهده کنید از این فرمان استفاده می کنید .

Route Print

Route Add

 برای اضافه کردن یک Route به Routing Table از این دستور استفاده می شود .

Route Add <destination> Mask <netmask> <gateway> Metric <metric> if <interface>

Route Delete

برای پاک کردن یک Route موجود در Routing Table استفاده می شود .

Route  Delete <destination>

Route Change

برای تغییر دادن یک Route که در جدول Routing Table وجود دارد استفاده می شود

Route Change <destination> Mask <netmask> <gateway> Metric <metric> if <interface>

 

برای اطلاعات بیشتر به قسمت  IP Routing and Unicast Routing Principles  مراجعه کنید . استفاده از Route -p موجب می شود Route شما بعد از Add شدن بعد از Boot شدن سیستم نیز

در جدول Routing Table نگهداری شود .

در زیر کلیه Switch های این فرمان را مشاهده می کنید .

 

Switch Function
-f Clears the routing table of all gateway entries. If this is used in conjunction with one of the other commands, the tables are cleared prior to running the command.
-p When used with the Add command, this switch adds the route to the routing table and to the Windows 2000 registry. The route is automatically added to the routing table each time the TCP/IP protocol is initialized. By default, routes added without the -p switch are only stored in the RAM-based IP routing table and are not preserved when the TCP/IP is restarted. This option is ignored for all other commands.
Print <destination> Prints a route to the specified host. Optionally, prints the routes for the specified destination.
Add <destination> Mask <netmask> <gateway> Metric <metric> if <interface> Adds a route for the specified destination using the forwarding IP address of the gateway. The metric and if options are not required.
Delete <destination> Deletes a route for the specified destination.
Change <destination> Mask <netmask> <gateway> Metric <metric> if <interface> Modifies an existing route.
Mask <netmask> Specifies that the next parameter is the network mask value. If a netmask value is not specified, it defaults to 255.255.255.255.
Metric <metric> Specifies the cost to reach the destination. Routes with lower metrics are chosen over routes with higher metrics. A typical use of the metric value is to indicate the number of routers that must be crossed to reach the destination.
if <interface> Specifies the IP address of the interface over which the destination is available.
Table 3.11 Route Switches

TCP/IP Transmission Control Protocol/Internet Protocol

LastUpdate:2005/04/05

> Part2 > TCPIP > Commands > Route