Information Technology Reference
In-Depth Information
See Also
￿
Recipe 4-7 for more on displaying and working with the Windows IP routing table
￿
Recipe 4-11 for more on working with static Windows routes
￿
Microsoft TechNet: The Cable Guy, September 2003, “Default Gateway Behavior for
Windows TCP/IP” ( http://www.microsoft.com/technet/community/columns/cableguy/
cg0903.mspx#EDAA )
1-4. Configuring a Gateway Metric
Problem
You want to specify the gateway metric for the default gateway on a Windows Server 2003
computer.
Solution
Using a Graphical User Interface
1.
Open the Network Connections applet.
2.
Double-click on the Local Area Connection icon.
3.
Click on Internet Protocol (TCP/IP), and select Properties and then Advanced.
4.
In the Default Gateways section, highlight the gateway whose metric you want to
modify, and click on Edit. Clear the check mark next to Automatic Metric, and enter
a numerical value in the Interface Metric text box.
5.
Click OK when you're finished.
Using a Command-Line Interface
The following command adds a default gateway of 10.0.0.1 with a metric of 1 to the network
connection called Local Area Connection . You can modify the IP address of the gateway, its
metric, and the name of the network connection to fit your environment as needed:
> netsh interface ip add address name = "Local Area Connection"
gateway = 10.0.0.1 gwmetric = 1
Continuing the example, to change the metric of a gateway that you've already configured,
you need to first delete the gateway using the following command:
> netsh interface ip delete address name = "Local Area Connection" gateway = 10.0.0.1
After that, you can add the gateway again using the new metric.
Search WWH ::




Custom Search