Advanced IP Windows NT Server 4 Unleashed

Previous Page TOC Next Page



11

Installing and Configuring Microsoft TCP/IP

For many people coming from a background steeped in DOS and Windows, TCP/IP might still remain something of a mystery. Traditionally, DOS and Windows people only had to deal with TCP/IP when accessing services from a larger network, such as accessing a corporate UNIX system, or even connecting to the Internet. Often, configuring the system involves using addresses and numbers that are provided by some other organization, such as InterNIC, or maybe the group responsible for your company's network backbone.

With Microsoft's recent recognition of the importance of TCP/IP and their push to provide all services over a TCP/IP protocol stack, however, TCP/IP is becoming more and more common in the Windows environment. You can now run a Windows-based network with only TCP/IP. This is made possible by the availability of the fast and robust TCP/IP stacks that Microsoft provides with Windows for Workgroups, Windows 95, and Windows NT. With this strong support for TCP/IP, it becomes even more important for anyone designing or administering a Windows-based network to understand how TCP/IP works and how it can benefit your network.

This chapter begins with a discussion of TCP/IP on the Windows NT platform. Included is a discussion of how this TCP/IP integration enhances connectivity with Windows for Workgroups and Windows 95 clients. The chapter continues with an explanation of how to install and configure TCP/IP on Windows NT Server. I have included additional sections to discuss many of the optional TCP/IP-related services. Some TCP/IP-related services, such as WINS, DHCP, DNS, and TCP/IP printing, are important and substantial enough to warrant their own chapters.

For more information on WINS, DHCP and DNS, see Chapter 12, Using the DHCP, WINS and DNS Services. If you are interested in TCP/IP printing, refer to Chapter 13, Configuring TCP/IP Printing.

Preparing to Install the TCP/IP Protocol

Before installing TCP/IP on your NT Server, let's take a few minutes to identify some of the things that will be required during the configuration process.

If you will be using DHCP for TCP/IP configuration, you won't need much information. However, if you won't be using DHCP, you need the following:

In addition to this information, you might want to think about which IP-related services you want to install. Following is a list of additional TCP/IP-based services that can be installed after you install the TCP/IP stack:

Installing the TCP/IP Protocol on Windows NT

You can install TCP/IP during the NT Server installation process or add it later. In either case, the installation process is essentially identical. The follow set of procedures specifically details how to install TCP/IP on an existing NT Server.


NOTE:

Make sure you are logged onto the server with and account that has administrative permissions.


  1. Open the Control Panel, and double-click the Network icon. The Network window will appear, similar to that shown in Figure 11.1.

    Figure 11.1

    The Network Control Panel permits you to change network-related configuration information.

  2. Click the Protocols tab. Any currently installed network protocols will be in the list. The Network Protocols dialog is shown in Figure 11.2.

    Figure 11.2

    The Network Protocols dialog shows the currently installed network protocols.

  3. Click the Add button. NT will build a list of all available network protocols and display these in a new window, shown in Figure 11.3.

    Figure 11.3

    The Select Network Protocol dialog lists all available network protocols that you can install.

  4. Select the TCP/IP Protocol and click OK.
  5. You will now be asked if there is a DHCP server on your network and you want to get your TCP/IP address automatically from this server. This message is shown in Figure 11.4.

    Figure 11.4

    You can specify if you want to act as a DHCP client.

    In this example, you should choose No. If, however, you were configuring an NT Server and you did want it to dynamically obtain its IP address from a DHCP server, you would choose Yes. For more information on setting up a DHCP server, see Chapter 12.

  6. You might be required to provide a path to the Windows NT Server distribution media so NT can install the necessary software components. If you are using a local CD-ROM, indicate the drive letter and path. Or if you are installing from a network, indicate the UNC location (for example, \\NTSERVER1\NT40INST\i386) of the NT Server distribution files. Click OK once you have identified a valid NT distribution media set.

    NT will copy files from the distribution media to the local system directory.

  7. You will be returned to the Protocols tab of the Network window. You should see TCP/IP Protocol listed in the Network Protocols list, as shown in Figure 11.5.

    Figure 11.5

    TCP/IP will appear in the Network Protocols list.

  8. Click the Close button at the bottom of the Network window.

    NT will go through an automatic process to review the bindings on the network adapter. NT will display the Microsoft TCP/IP Properties window so you can provide specific TCP/IP configuration information, which is necessary to complete the binding. The Microsoft TCP/IP Properties window is shown in Figure 11.6.

    Figure 11.6

    Microsoft TCP/IP Properties page is used to configure the TCP/IP settings.

  9. If your system is physically multihomed (you have more than one network adapter in your system), you can use the Adapter pick list to select the adapter you want to configure.

    If you chose to use a DHCP server to acquire your TCP/IP information, back in step 6, the Obtain an IP address from a DHCP Server option will be selected and the IP Address, Subnet Mask, and Default Gateway text boxes will be grayed out.

  10. You should enter the IP address, subnet mask, and default gateway for your network card into the appropriate text boxes.
  11. This is the minimal amount of information you need to provide to get your system up and running with TCP/IP. Click OK at the bottom of the Microsoft TCP/IP properties window. NT will complete the adapter binding process and tell you that you need to restart your computer before your changes can take effect.

Advanced TCP/IP Options

The Advanced TCP/IP settings option under the Microsoft TCP/IP Properties window allows you to configure your multiple IP addresses for a single network card, or to specify multiple IP gateways for each network card in your system.

Logically Multihomed Adapter

Configuring more than one IP address for a single network card is known as a configuring a logically multihomed network adapter. Windows NT allows you to assign up to five IP addresses to a single network adapter. This is known as a logically multihomed network adapter. Compare this to what is traditionally called a multihomed system, where you have multiple network interfaces on a system, each with its own unique IP address. There are advantages and disadvantages to a logically multihomed configuration.

One of the advantages of a logically multihomed system is very apparent when used in conjunction with the new Internet Information Server (IIS) that is included with NT Server 4.0. IIS can be configured to respond to a default hypertext transport protocol (http) request in different ways depending on which one of the logically multihomed IP addresses is accessed. If you want to run three Web sites from your server, logical multihoming makes this easier and cleaner. For instance, if you wanted to host xyzcorp.com, USAcollege.edu, and greenfood.com from your server, you would simply designate a different IP address for each site and then bind all three IP addresses to your network adapter. Then when someone uses a Web browser to connect to xyzcorp.com, he or she will get the home page for xyzcorp; if connecting to USAcollege.edu, the user will get the default page for USAcollege. For more information about using a multihomed system with IIS, see Chapter 34, Windows NT as an Internet Server, which includes additional coverage of IIS.

One thing to be aware of with logical multihomed adapters is that NetBIOS over TCP/IP (NetBT) will only be bound to the first IP address of a logically mulithomed adapter. If you want multihomed support with NetBT, you need to install multiple network adapters with a single IP address bound to each adapter.

Multiple IP Gateways

If you need to use TCP/IP to communicate with a computer outside of your subnet, the communication needs to be done through an IP gateway. Many smaller LANs include only a single gateway between subnets. However, for additional levels of fault tolerance, many larger and more stable networks are designed with multiple IP gateways between their major subnets.

Windows NT enables you to take advantage of these multiple gateways to provide fault tolerance in case the default gateway becomes unavailable. For each network card onto which you bind TCP/IP, you can also specify as many backup gateways as you have available. When you specify additional IP gateways, if the default gateway fails, NT will automatically attempt to use each of the additional IP gateways, in the order listed, until it can find a functioning gateway.

PPTP Filtering

Windows NT 4.0 includes a new technology called Point-to-Point Tunneling Protocol (PPTP), which allows you to create multiprotocol virtual private networks (VPNs). PPTP that takes advantage of Windows NT's Remote Access Service (RAS), but when you install PPTP, by default, you will be able to use your network as normal as well as take advantage of the VPN features provided by PPTP. However, you might want to prevent your system from responding to any non-PPTP traffic on the network, thus isolating it from the "public" network it is physically connected to. If you enable the PPTP Filtering, your NT Server will only communicate with machines on its VPNs.

For more information on PPTP, see Chapter 20.

TCP/IP Security

One of the new features of Windows NT 4.0 is the ability to filter network traffic by TCP or UDP port number, as well as IP protocol value. This allows you to control the type of TCP/IP traffic that your server will respond to, providing a higher level of security. For instance, if you were running a SQL server on your system, you might want to permit access only to the ports your databases listen to.

For more information on TCP/IP Security, see Chapter 25.

Configuring Advanced TCP/IP Options

Once TCP/IP is installed, if you need to configure additional IP addresses or IP gateways, use the following procedure:

  1. Make sure you are logged on as an administrative user.
  2. Double-click the Network icon in the Control Panel. This will display the Network window.
  3. Click the Protocols tab and then double-click TCP/IP Protocol. This will display the Microsoft TCP/IP Properties window.
  4. Click the Advanced button located in the bottom-right corner of the windows. This will display the Advanced IP Addressing window, shown in Figure 11.7.
  5. If you have multiple physical network adapters, you can use the Adapter pick list to choose the adapter you want to configure.

    Figure 11.7

    Advanced IP Addressing allows you to enter multiple IP addresses or gateway addresses, as well as enable TCP/IP security.

  6. Use the Add button in the IP Addresses window to add additional IP address and subnet mask pairs for the current network adapter. Remember, NT allows you to have up to five IP addresses per physical network adapter.
  7. Use the Add button in the Gateways group to add any additional IP gateways that are available on your network.
  8. If you are using PPTP and want to restrict network access to PPTP, then select the Enable PPTP Filtering option.
  9. If you want to do IP or port-level filtering, select the Enable Security option, then click the Configure button. This will bring up the TCP/IP Security Window as shown in Figure 11.8.

    Figure 11.8

    Use the TCP/IP Security to restrict access based on TCP, UDP, or IP protocol information.

  10. If you want to enable only certain TCP or UDP ports, select the Permit Only option above the appropriate field, then click the Add button to add the TCP or UDP port addresses you want to allow. Valid TCP and UDP port addresses are between 1 and 65535.
  11. If you want to enable only certain IP protocol, select the Permit Only option above the IP Protocols field, then click the Add button to add the IP protocol values you want to allow. Valid IP protocol values are between 1 and 255.
  12. When you have completed entering the filtering information, click the OK button to return to the Advanced IP Addressing window.
  13. Click OK to return to the Microsoft TCP/IP Properties window, then OK again to return to the Network Control Panel. Then click OK one more time to exit the Network Control Panel. You will be prompted to restart the server.

Once the system has restarted the changes you made will take effect.

Configuring Windows NT To Use an Existing DNS Server

If you have Domain Name System (DNS) servers in your organization or you are connected to the Internet, you will most likely want to configure your NT Server to take advantage of them.


NOTE:

There are so many acronyms in the computer industry, it's very difficult to keep them all straight. A common mistaken acronym is DNS. Many people think it stands for Domain Name Server, or Domain Name Service, when in fact it stands for Domain Name System. The "ultimate" authority is Request for Comments (RFC) 1034 and 1035, where DNS is defined.


The following set of procedures explains how to configure the items in the DNS tab of the Microsoft TCP/IP Properties window.

  1. Make sure you are logged on as an administrative user.
  2. Double-click the Network icon in the Control Panel. This will display the Network window.
  3. Click the Protocols tab and then double-click TCP/IP Protocol. This will display the Microsoft TCP/IP Properties window.
  4. Click the DNS tab. This will display the DNS configuration options for TCP/IP, shown in Figure 11.9.

    Figure 11.9

    DNS options for TCP/IP properties.

  5. Enter the TCP/IP DNS hostname and the DNS domain name into the appropriate fields. By default, the computer's name as registered with the NT domain is automatically entered into the Host Name field.

NOTE:

A common problem point is that people don't understand how the computer name and domain information entered into this screen differ from the computer and domain information entered when NT was installed. Here are some tips:

For more information on this topic, see Chapter 12.


  • If you are using a DNS server on your network, use the Add button to add the address of the DNS server. You can specify up to three DNS servers and use the up and down arrows to change the order in which they are queried. The way this works is if the first DNS fails to properly resolve a name, NT will try the second DNS, and finally the third.
  • You can also specify default domain suffixes by adding them to the list at the bottom of the window. You can assign up to six default domain suffixes. For instance, you might configure the domain suffix search order as shown in Figure 11.10.

    Figure 11.10

    The domain suffix search order.

    Given this setup, if you typed ping server1 at the command prompt, NT would first try to locate a machine called server1.xyzcorp.com, since xyzcorp.com is my DNS domain. If a machine by this name is not found, it would try server1.houston.xyzcorp.com, server1.denver.xyzcorp.com, server1.washington.xyzcorp.com, and finally server1.USAcollege.edu, until a valid machine is found. At this point, if no machine is found, you will get an error message.

    Windows Internet Name Service (WINS) Address Configuration

    The WINS Address tab in the Microsoft TCP/IP Properties window enables you to configure your NT system to take advantage of any WINS servers available on the network. Additionally, it provides you more methods of Windows name resolution, such as using DNS for Windows name lookups and LMHOSTS files. For more about theses services, please see Chapter 12.

    If you want to configure any of these options on your system, use the following set of procedures:

    1. Make sure you are logged on as an administrative user.
    2. Double-click the Network icon in the Control Panel. This will display the Network window.
    3. Click the Protocols tab and then double-click TCP/IP Protocol. This will display the Microsoft TCP/IP Properties window.
    4. Click the WINS Address tab. This will display the WINS configuration options for TCP/IP, shown in Figure 11.11.

      Figure 11.11

      WINS configuration options.

    5. NT allows you to specify different primary and secondary WINS servers for each network card on which TCP/IP is configured. If you have only one network card installed, it will appear by default in the Adapter pick list. If you have more than one adapter, you can use the pick list to select which network card you are currently configuring.
      Enter the IP addresses for the primary WINS server and secondary WINS servers on your network.
    6. If you want to allow your system to act as a WINS proxy, check the Enable WINS Proxy Agent. WINS proxy support allows your machine to provide b-node name resolution support for clients that are not configured to talk directly to the WINS server. For more on the WINS proxy and b-node name resolution, see Chapter 12.
    7. Check the Enable DNS for Windows Name Resolution box if you want to use a DNS server to provide resolution for NetBIOS names. More details about using DNS for Windows name resolution can be found in Chapter 12.
      In order for this function to work, you must have your system configured to use at least one DNS server. See the section titled "Configuring Windows NT to use Existing DNS Servers," earlier in this chapter for information about setting up NT to use DNS servers. If you want to use an LMHOSTS file for Windows name resolution, check the box Enable LMHOSTS lookup. You can use the Import LMHOSTS button to import an existing LMHOSTS file. The LMHOSTS file is located in the %SystemRoot%\system32\drivers\etc directory. By default, this file does not exist, but Microsoft does provide a sample file called LMHOSTS.SAM as a template for creating your own. For more information on LMHOSTS files, see Chapter 14.
    8. If your network uses NetBIOS scopes for limiting NetBIOS traffic over TCP/IP, you can enter the scope into the Scope ID field. Typically this field is left blank. The NetBIOS scope is a string that gets appended to the computers NetBIOS name. You can communicate only with computers that have the same NetBIOS scope as your system. The NetBIOS scope allows you to effectively have two physical computers on the network with the same NetBIOS name since the NetBIOS name is actually a concatenation of the computer's name and it's NetBIOS scope.

    Enabling IP Routing

    Windows NT Server supports static IP routing (IP forwarding) on multihomed systems. Until the 4.0 release, NT Server was capable of static IP routing only. This allowed you to configure NT to work with other static IP routers on the network. Under this configuration, you need to use the route command to create static routes. However, with NT Server 4.0, Microsoft includes a Routing Information Protocol (RIP) agent that allows NT Server to collect RIP information from other routers on the network.

    To configure your NT Server as an IP router, use the following procedure.

    1. Make sure you are logged on as an administrative user.
    2. Double-click the Network icon in the Control Panel. This will display the Network window.
    3. Click the Protocols tab. This will display a list of currently installed network services.
    4. Double-click the TCP/IP Protocol. This will bring up the Microsoft TCP/IP Properties page. Then click on the IP Routing tab. The IP Routing tab is shown in Figure 11.12.
    5. If you want to enable static IP routing (IP forwarding) click the Enable IP Forwarding box.
    6. Click OK. This will return you to the Network control panel window.

    Figure 11.12

    Enabling IP static IP routing.

    If you also want to enable dynamic RIP routing, you must install the RIP for Internet Protocol service. Continue with the following procedure to install this service as well:

    1. Click the Services tab. This will display a list of all currently installed services.
    2. Click the Add button. NT will generate a list of all available services for installation.
    3. Scroll down the list and click the RIP for Internet Protocol entry. This is shown in Figure 11.13.

      Figure 11.13

      Selecting the RIP for Internet Protocol entry.

    4. Click OK.
    5. You might be required to provide a path to the Windows NT Server distribution media so NT can install the necessary software components.
      NT will copy files from the distribution media to the local system directory.
      Once it has finished copying the necessary files, you will be returned to the Network window.
    6. From the Network control panel window, click the Close button. Any changes you made will not take effect until you restart your system. You will be asked if you want to restart your system.

    Installing Simple TCP/IP Services

    Windows NT includes an optional service called Simple TCP/IP Services. This service allows Windows NT respond to a number of network utilities that are somewhat prevalent in the UNIX world. For most environments, these utilities provide no real functionality.

    Simple TCP/IP services are all based on UDP and provide support for

    Diagnostic Utilities

    Microsoft has included a number of TCP/IP diagnostic utilities with Windows NT. Many of these utilities, such as ping and tracert, are functionally identical to common implementations on other platforms, including most UNIX systems. Other utilities, such as nbtstat, are more specific to Windows environments and do not have direct analogues on non-Windows systems.

    All of the diagnostic utilities listed in this section are automatically installed when you installed TCP/IP on your system. They are all located in the %SystemRoot%\system32 directory.

    arp

    The arp command is used to display or modify the IP address to physical network address lookup table maintained by Windows NT. This table is called the address resolution protocol (ARP) table.

    The syntax for the arp command is arp -a [IP_addr] [-N [if_addr]] arp -d IP_addr [if_addr] arp -s IP_addr mac_addr [if_addr]

    hostname

    The hostname command returns the name of the computer as defined in the DNS tab of the TCP/IP configuration window. There are no options to this command.

    ipconfig

    The ipconfig utility is useful for getting a quick look at a system's TCP/IP configuration. It is especially useful when your systems receives its IP configuration from a DHCP server.

    The syntax for the ipconfig command is

    ipconfig [/all | /release [adapter] | renew [adapter]]

    If you run ipconfig without any switch options, it returns the IP address, subnet mask and default gateway for all network adapters bound with TCP/IP.

    nbtstat

    The nbtstat command is used to display the status of NetBIOS over TCP/IP (NetBT).

    The syntax for the nbtstat command is

    nbtstat [-a hostname] [-A IP_addr] [-c] [-n] [-R] [-r] [-S] [-s] [interval]

    netstat

    netstat can be used to examine the statistics for all TCP, IP, and UDP connections.

    The syntax for the netstat command is

    netstat [-a] [-e] [-n] [-s] [-p protocol] [-r] [interval]

    If you run netstat without any switch options, it displays all active TCP connections.

    ping

    ping is one of the fundamental diagnostic utilities. It can be used to verify if a host is reachable. When troubleshooting TCP/IP connectivity problems, ping should be the first tool to use. ping uses the Internet control message protocol (ICMP) echo packets to do its job.

    The syntax for the ping command is

    ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [[-j host_list] | [-k host_list]] [-w timeout] destination_list

    By default, ping will send four 64-byte ICMP packets with a one-second pause between each packet.

    route

    The route command is used to manage the local TCP/IP route table.

    The syntax for the route command is

    route [-f] [print|add|delete|change [destination] [MASK netmask] [gateway]]

    tracert

    tracert is an extremely useful utility that determines the path taken between your system and a target system. If you are experiencing connectivity problems, this can be useful for pinpointing the location of the problem.

    tracert uses Internet Control Message Protocol (ICMP) echo packets to accomplish its job. First tracert determines the number of router hops to its destination. Then it sends a number of ICMP echo packets equal to the hop count. On the first packet, tracert sets the time-to-live (TTL) to 1. On each successive packet, tracert increments the TTL by 1. Each time a packet goes through a router, the router decrements the TTL byWhen the TTL reaches 0, most routers send a message back to the sender indicating the packet has been discarded. This means the first echo packet sent (with a TTL of 1) will be returned by the first router. The second echo packet (with a TTL of 2) will be returned by the second router, and so on.

    The syntax for the route command is

    tracert [-d] [-h max_hops] [-j host_list] [-w timeout] destination

    Connectivity Utilities

    Microsoft included a couple of standard TCP/IP connectivity utilities with Windows NT. These utilities include Telnet, FTP, finger, and TFTP.

    Telnet

    Windows NT includes a graphical Telnet utility that can be used to connect to any system running a standard telnet server, as described in RFC 854. The Telnet utility can be found in the Accessories program group or can be started by typing telnet at the Run prompt.


    NOTE:

    Windows NT Server does not include a Telnet server component. If you want to use Telnet to connect to your NT Server, there are a couple of third-party companies that make Telnet server components.


    The Telnet is fairly simple, but does include features such as logging the Telnet session to file, vt-100/ansi emulation, and configurable screen settings.

    FTP

    Windows NT includes a relatively simple, command-line FTP client. This utility can be invoked from the Run prompt, or from the command line by typing FTP. Once in the FTP utility, you can get a simple level of help by typing help or ? at the ftp> prompt. FTP file transfers are governed by standards defined in RFC 959.

    For information on installing the FTP server that comes with Windows NT, see Chapter 33, Windows NT as an Internet Server.

    finger

    Also included with Windows NT is a finger client utility. This command-line utility can be used to get user information from any system running a standard finger service.

    The finger command can be used in one of two ways:

    The first syntax usually returns a list of users logged onto the hostname's system. The second syntax usually gives information about the specified user, such as full name, office phone number, or address. Additionally, many finger servers accept partial user names and will return all matches.


    NOTE:

    Windows NT Server does not include a finger server service. A finger server service for NT is available from the European Microsoft Windows NT Academic Centre (EMWAC). EMWAC can be contacted at http://www.emwac.ed.ac.uk.


    TFTP

    The trivial file transfer protocol (TFTP) command allows you to transfer files to or from a computer running a TFTP server, as defined in RFC 783.

    The syntax for the tftp command is tftp [-i] host [GET | PUT] source [destination]

    Summary

    This chapter presented a look at TCP/IP on the Windows NT platform. It included how Microsoft implemented TCP/IP on NT, as well as the steps they have taken to ensure that Windows NT can take full advantage of standards-based networking through the implementation of services such as WINS, DHCP, DNS, LPR/LPD, and other TCP/IP protocols.

    You also saw how TCP/IP integration enhances connectivity with Windows for Workgroups and Windows 95 clients through a robust implementation of NetBIOS over TCP/IP. The chapter continued with an explanation of how to install and configure TCP/IP on Windows NT Server, including an explanation of how to install and configure additional TCP/IP-related services, such as IP Routing and simple TCP/IP services.

    Previous Page Page Top TOC Next Page

    Hosted by uCoz