An explanation of the Automatic Metric feature for Internet Protocol routes

Article translations Article translations
Article ID: 299540 - View products that this article applies to.
This article was previously published under Q299540
Expand all | Collapse all

SUMMARY

This article describes the Automatic Metric feature that is used in Windows XP for Internet Protocol (IP) routes.

MORE INFORMATION

A metric is a value that is assigned to an IP route for a particular network interface that identifies the cost that is associated with using that route. For example, the metric can be valued in terms of link speed, hop count, or time delay. Automatic Metric is a new feature in Windows XP that automatically configures the metric for the local routes that are based on link speed. The Automatic Metric feature is enabled by default, and it can also be manually configured to assign a specific metric.

The Automatic Metric feature can be useful when the routing table contains multiple routes for the same destination. For example, if you have a computer with a 10 megabit (Mb) network interface and a 100 Mb network interface, and the computer has a default gateway that is configured on both network interfaces, the Automatic Metric feature assigns a higher metric to the slower network interface. This feature can force all of the traffic that is destined for the Internet, for example, to use the fastest network interface that is available.

NOTE: Typically, Microsoft does not recommend that you add default gateways across disjoint networks. For example, edge servers, such as, Network Address Translation (NAT) and proxy servers, are typically configured to connect two or more disjoint networks: The public Internet and one or more private intranets. In this situation, you should not assign the default gateways on the private interfaces, as doing so may result in improper routing on your network.

The following table outlines the criteria that is used to assign metrics for routes that are bound to network interfaces of various speeds.

Collapse this tableExpand this table
Link SpeedMetric
Greater than or equal to 2 GB 5
Greater than 200 Mb10
Greater than 20 Mb, and less than or equal to 200 Mb20
Greater than 4 Mb, and less than or equal to 20 Mb30
Greater than 500 kilobits (Kb), and less than or equal to 4 Mb40
Less than or equal to 500 Kb50

The following table lists the link speeds and metrics for computers that run Windows XP Service Pack 2.

Collapse this tableExpand this table
Link SpeedMetric
Greater than 200 Mb10
Greater than 80 Mb, and less than or equal to 200 Mb20
Greater than 20 Mb, and less than or equal to 80 Mb25
Greater than 4 Mb, and less than or equal to 20 Mb30
Greater than 500 Kb, and less than or equal to 4 Mb40
Less than or equal to 500 Kb50

The Automatic Metric feature is configured independently for each network interface in the network. This feature is useful in situations where you have more than one network interface of the same speed, for example, when each network interface has been assigned a default gateway. In this situation, you may want to manually configure the metric on one network interface, and enable the Automatic Metric feature to configure the metric of the other network interface. This setup can enable you to control the network interface that is used first in the routing of IP traffic.

In addition, the metric that is assigned to specific default gateways can be configured independently for each gateway. This setup enables a further level of control over the metric that is used for the local routes. For example, it is possible to enable the Automatic Metric feature to configure the routes that are assigned to the network interface, and at the same time to manually configure the metric that is assigned to the default gateways.

NOTE: If a metric is specified at the network interface level, but a gateway is added and configured for the Automatic Metric feature, the gateway can inherit the metric that is assigned to the network interface. For example, if you assign a metric of five at the network interface level, and then you add a gateway and leave the Automatic Metric feature checked for the gateway, the gateway is also assigned a metric of five.

The Automatic Metric feature is different from the Dead Gateway Detection feature that can force the network to switch the default gateways that are based on Transmission Control Protocol (TCP) retransmissions. Also, the Routing and Remote Access feature does not activate the Dead Gateway Detection feature. This activation is performed by the TCP/IP stack on the computer that initiates the TCP session.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
205027 Dead Gateway Detection with RRAS and Demand Dial Connections
To configure the Automatic Metric feature:
  1. In Control Panel, double-click Network Connections.
  2. Right-click a network interface, and then click Properties.
  3. Click Internet Protocol (TCP/IP), and then click Properties.
  4. On the General tab, click Advanced.
  5. To specify a metric, on the IP Settings tab, click to clear the Automatic metric check box, and then enter the metric that you want in the Interface Metric field.

Properties

Article ID: 299540 - Last Review: October 19, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Windows Web Server 2008
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
  • Windows Server 2008 Service Pack 2
  • Windows Vista Service Pack 1
  • Windows Vista Service Pack 2
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Service Pack 1
  • Windows Server 2008 R2 Standard
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Service Pack 1
  • Windows 7 Ultimate
Keywords: 
kbinfo kbnetwork KB299540

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com