Configuring and Troubleshooting TCP/IP AddressingAn IP address is a series of numbers that represents a computer (for example, 131.108.116.55). Each of the numbers in an IP address is an octet, which is made up of 8 bits; the whole IP address is 32 bits. IP addresses are typically displayed in a decimal format called dotted-decimal notation. Each host that requires connectivity on a TCP/IP network requires its own unique IP address. If you were to look at 131.108.116.55 in binary, as the computer sees it, you would see 10000011 01101100 01110100 00110111. The easiest way to convert dotted-decimal notation to binary is to learn the mechanics of the binary system. By knowing that the smallest value that an IP address octet can take is 0 and the largest value that an IP address octet can take is 255, you can make a chart such as the one shown in Table 1.
Table 1 represents the 8 binary digits that make up a single IP address octet. If you have a value of decimal 255, its binary equivalent is 11111111, and if you have a value of decimal 0, its binary equivalent is 00000000. IP addresses are organized by class. There are three basic classes: Class A, Class B, and Class C. Table 2 defines the range and number of hosts included with each class of addresses.
A subnet mask effectively breaks an IP address into two parts: the network identifier and the host identifier. When the subnet bits match, the host and destination host are on the same subnet, and no routing is needed. When the subnet bits don't match, the destination host is on a remote network, and the packets are sent to the router. The Internet community has standardized default subnet masks for each of the three IP address classes. The subnet masks for these address classes are defined in Table 3.
If a computer has an IP address of 142.146.102.45 and a subnet mask of 255.255.0.0, the first two octets (142.146) identify the network, and the last two octets (102.45) identify a specific host on that network. Using Variable Length Subnet Masks, also known as subnet addressing, allows you to borrow bits from the host ID portion of an IP address and apply them to the network ID. Suppose that you have been assigned a Class B address of 172.18.0.0. Further suppose that you now need to create four separate networks from your one IP address range. To do so, you borrow 3 bits from the host ID field. These 3 bits let you configure six separate subnets. A default gateway is the IP address of the router that the packets from a host should use to leave the subnet. The typical process of how a packet leaves a host and gets to a destination is as follows:
Several changes and improvements have been made to TCP/IP in Windows Server 2003:
After you've performed the initial configuration of TCP/IP, you still might need to configure some additional settings on the protocol. If you click the Advanced button in the TCP/IP Properties dialog box, the Advanced TCP/IP Settings dialog box appears, and you can change settings on the following tabs:
Table 4 provides a list of common TCP port numbers. Table 5 presents some common UDP port numbers. Table 6 covers common Internet protocol numbers.
Automatic Private IP Addressing (APIPA) allows a DHCP-configured computer to automatically assume an IP address from the range 169.254.0.1 through 169.254.255.254, with a subnet mask of 255.255.0.0, when a DHCP server cannot be contacted. Although APIPA does provide a client with an IP address if a DHCP server cannot be contacted, the only guarantee that is made is that the IP address the client uses will not belong to any other computer on its IP subnet. APIPA does not provide any information to the computer beyond the IP address and subnet mask. This means that a computer possessing an APIPA IP address will not be able to communicate with other computers that are working with correctly assigned IP addresses and subnet masks. In addition, APIPA receives no default gateway and thus is unable to communicate outside its IP subnet. There are several tools for troubleshooting TCP/IP problems, including the following:
|