Names can be used for destination if an appropriate entry exists in the local Networks file stored in the systemroot\System32\Drivers\\ folder. To remove the large metrics, disable the automatic determination of the interface metric from the advanced properties of the TCP/IP protocol for each LAN connection. Automatic determination of the interface metric, enabled by default, determines the speed of each interface and adjusts the metrics of routes for each interface so that the fastest interface creates the routes with the lowest metric. Large values in the metric column of the routing table are the result of allowing TCP/IP to automatically determine the metric for routes in the routing table based on the configuration of IP address, subnet mask, and default gateway for each LAN interface. When the if parameter is omitted, the interface is determined from the gateway address. For hexadecimal values, precede the hexadecimal number with 0x. You can use either decimal or hexadecimal values for the interface index. For a list of interfaces and their corresponding interface indexes, use the display of the route print command. Specifies the interface index for the interface over which the destination is reachable. The metric can reflect the number of hops, the speed of the path, path reliability, path throughput, or administrative properties. The route with the lowest metric is chosen. Specifies an integer cost metric (ranging from 1 to 9999) for the route, which is used when choosing among multiple routes in the routing table that most closely match the destination address of a packet being forwarded. For remote routes, available across one or more routers, the gateway address is a directly reachable IP address that is assigned to a neighboring router. For locally attached subnet routes, the gateway address is the IP address assigned to the interface that is attached to the subnet. Specifies the forwarding or next hop IP address over which the set of addresses defined by the network destination and subnet mask are reachable. The destination can be an IP network address (where the host bits of the network address are set to 0), an IP address for a host route, or 0.0.0.0 for the default route. Specifies the network destination of the route. Persistent routes are stored in the registry location HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes. This parameter is ignored for all other commands. When used with the print command, the list of persistent routes is displayed. By default, added routes are not preserved when the TCP/IP protocol is started. When used with the add command, the specified route is added to the registry and is used to initialize the IP routing table whenever the TCP/IP protocol is started. If this is used in conjunction with one of the commands (such as add, change, or delete), the table is cleared prior to running the command. Syntax route ] ]Ĭlears the routing table of all entries that are not host routes (routes with a netmask of 255.255.255.255), the loopback network route (routes with a destination of 127.0.0.0 and a netmask of 255.0.0.0), or a multicast route (routes with a destination of 224.0.0.0 and a netmask of 240.0.0.0). This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.