Article ID: 140859 - View products that this article applies to.
This article was previously published under Q140859
This article discusses the Windows NT Routing Table on a single-homed machine and multihomed Windows NT Router with and without Multi Protocol Router (MPR). This background information will help with troubleshooting related to TCP/IP.
The Route TableEven a single-homed TCP/IP host has to make routing decisions. These routing decisions are controlled by the route table. The route table can be displayed by typing "route print" at the command prompt. The following is an example route table from a single-homed machine. This simple route table is built automatically by Windows NT based on the IP configuration of your host.
Network Address Netmask Gateway Address Interface Metric 0.0.0.0 0.0.0.0 220.127.116.11 18.104.22.168 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 22.214.171.124 255.255.248.0 126.96.36.199 188.8.131.52 1 184.108.40.206 255.255.255.255 127.0.0.1 127.0.0.1 1 220.127.116.11 255.255.255.255 18.104.22.168 22.214.171.124 1 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 1 255.255.255.255 255.255.255.255 18.104.22.168 22.214.171.124 1
The titles of each column in the above table are explained in following text:
Network Address is the destination. The Network address column can contain:
0.0.0.0 is the default route 127.0.0.0 is the loopback address 126.96.36.199 is the local subnet address 188.8.131.52 is the network card address 184.108.40.206 is the subnet broadcast address 220.127.116.11 is the multicast address 255.255.255.255 is the limited broadcast address
The Netmask defines what portion of the Network Address must match for that route to be used. When the mask is written in binary a 1 is significant (must match) and a 0 need not match. For example, a 255.255.255.255 mask is used for a host entry. The mask of all 255s (all 1s) means that the destination address of the packet to be routed must exactly match the Network Address for this route to be used. For another example, the Network Address 18.104.22.168 has a netmask of 255.255.248.0. This netmask means the first two octets must match exactly, the first 5 bits of the third octet must match (248=11111000) and the last octet does not matter. Since 8 in the decimal number system is equivalent to 00001000 in binary, a match would have to start with 00001. Thus, any address of 157.57 and the third octet of 8 through 15 (15=00001111) will use this route. This is a netmask for a subnet route and is therefore called the subnet mask.
The Gateway Address is where the packet needs to be sent. This can be the local network card or a gateway (router) on the local subnet.
The Interface is the address of the network card over which the packet should be sent out. 127.0.0.1 is the software loopback address.
The Metric is the number of hops to the destination. Anything on the local LAN is one hop and each router crossed after that is an additional hop. The Metric is used to determine the best route.
Multihomed RouterThe following is the default Route table of a multihomed Windows NT host.
Network Address Netmask Gateway Address Interface Metric 0.0.0.0 0.0.0.0 22.214.171.124 126.96.36.199 1 0.0.0.0 0.0.0.0 188.8.131.52 184.108.40.206 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 220.127.116.11 255.255.248.0 18.104.22.168 22.214.171.124 1 126.96.36.199 255.255.255.255 127.0.0.1 127.0.0.1 1 188.8.131.52 255.255.255.0 184.108.40.206 220.127.116.11 1 18.104.22.168 255.255.255.255 127.0.0.1 127.0.0.1 1 22.214.171.124 255.255.255.255 126.96.36.199 188.8.131.52 1 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 1 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 1 255.255.255.255 255.255.255.255 18.104.22.168 22.214.171.124 1
Check "Enable IP Routing" in the Advanced TCP/IP configuration to enable routing. At this point Windows NT will route between these two subnets.
NOTE - for the Multihomed Router to pass DHCP Discover packets from one subnet to the other you will need to install the "BootP Relay Agent" that comes with MPR. MPR is discussed later.
A note on Default gateways:
In the TCP/IP configuration, you can add a default route for each network card. This will create a 0.0.0.0 route for each. However, only one default route will actually be used. In this case, the 126.96.36.199 is the first card in the TCP/IP bindings and therefore the default route for this card will be used. Since only one default gateway will be used you should only configure one card to have a default gateway. This will reduce confusion and insure the results you intended.
For more information, see the following article in the Microsoft Knowledge base:
TITLE : Default Gateway Configuration for Multi-Homed Computers
If the Windows NT router does not have an interface on a given subnet, it will need a route to get there. This can be done by adding Static Routes or by using MPR. MPR is discussed later.
To Add a Static RouteThe following is an example route.
Route Add 188.8.131.52 mask 255.255.255.0 184.108.40.206 metric 2
NOTE: The metric option is only supported in Windows NT 3.51 with Service Pack 2 or later installed.
The route in this example means that to get to the 220.127.116.11 subnet with a mask of 255.255.255.0 use gateway 18.104.22.168 and that the subnet is 2 hops away. A static route will also need to be added on the next router telling it how to get back to subnets reachable by the first router. With a network of a few routers or more, static routes can become very complicated.
For additional information, please see the following article(s) in the Microsoft Knowledge Base:
TITLE : "P" Switch for Route Command Added in Windows NT
Multi Protocol Router (MPR)MPR consists of the following:
MPR is available in Service Pack 2 for Windows NT 3.51.
For additional information, please see the RIPROUTE.WRI file (available with Windows NT 3.51 Service Pack 2) for MPR installation instructions or the following article in the Microsoft Knowledge Base:
TITLE : Multi-Protocol Router Installation and Configuration
Article ID: 140859 - Last Review: February 20, 2007 - Revision: 2.2