Chapter 28: Configuring Windows for a LAN
Installing and Configuring Network Components Running the Network Setup Wizard is usually all you need to do to set up a workgroup network or attach your PC to an existing workgroup. However, if you are connecting to a domain-based or other type of network, you may need to install, configure, or uninstall network components yourself. Talk to your LAN administrator before making any changes to your configuration.
For each networking connection listed in the Network Connections window, you can see its properties by right-clicking the connection and choosing Properties from the menu that appears. Figure 28-5 shows the properties of a LAN connection.
Figure 28-5: Properties of a LAN connection The Local Area Connection Properties dialog box lists the network interface card that connects your computer to the LAN. It also lists the clients, protocols, and services used for this network connection. The network interface card appears at the top, in the Connect Using box. The clients, protocols, and services are listed in the This Connection Uses the Following Items box, with icons that identify the different types of components:
For a standard TCP/IP LAN, these four components should be installed (they should appear in your Local Area Connection Properties dialog box) and enabled (each check box contains a check mark):
- Client For Microsoft Networks Client that enables the computer to communicate with other Windows computers.
- File And Printer Sharing For Microsoft Networks Service that shares files and printers. This service should be enabled only on a LAN connection, not on an Internet connection.
- QoS Packet Scheduler Service that determines the precedence of information packets on the LAN based on Quality of Service (QoS) standards.
- Internet Protocol (TCP/IP) Protocol used on the Internet and many LANs.
If you have these four components and your LAN uses TCP/IP, you probably don't need to install any network components. Skip down to the section "Checking Your Network Connection" later in this chapter.
Installing and Configuring an Adapter Chapter 13 described how to install a network interface adapter if your computer doesn't already have one. The adapter is the software driver that allows your PC to communicate with the network interface card in your PC. (Network interface cards are also called network adapters.) Every model of network interface card has its own driver, which must be installed so the client software knows how to package information and send it to the network interface card.
Your network adapter appears in the Connect Using box of the Local Area Connection Properties dialog box (Figure 28-5). Click the Configure button to see the Properties dialog box for the network interface card.
Installing a Client The next step is to install the client component, which identifies the type of network on which your computer will be. When you configure your network connection (or when Windows finds your Plug and Play network interface card), Windows also installs the Client For Microsoft Networks. If a client is installed, it appears in the This Connection Uses The Following Items dialog box in the Local Area Connection Properties dialog box (Figure 28-5).
Because you are installing a peer-to-peer Windows network, the Client For Microsoft Networks is the one you need. (It is similar to the Workstation service that came with Windows NT 4.0 Workstation.) If you mistakenly deleted your Client For Microsoft Networks, or if you need the Client Service For NetWare (which also comes with Windows XP), follow these steps:
- Display the Local Area Connection Properties dialog box (by clicking Start, right-clicking My Network Places, choosing Properties, right-clicking Local Area Connection, and choosing Properties). Click the General tab (if it's not already selected).
- Click the Install button. You see the Select Network Component Type dialog box:
- Select Client as the type of network component you want to install and click the Add button. You see the Select Network Client dialog box.
- Choose the network client. If you have a floppy disk or CD with software for another type of client, insert it now and click Have Disk.
- Click OK. You return to the Local Area Connection Properties dialog box, with the client you just defined listed. You may be prompted to insert the Windows XP CD-ROM.
- Click OK to save your changes.
Installing a Protocol When you install Windows, it automatically installs the TCP/IP protocol, in case you want to use TCP/IP for Internet communication. We recommend that you use TCP/IP if you are setting up a new network, since it's the standard.
You can delete protocols you don't use, but don't delete TCP/IP! We did so, and ended up needing to reinstall Windows in order to get it back. Starting with Windows XP, Microsoft no longer supports NetBEUI. If you use NetBEUI for a small network, you have two choices: Install NetBEUI from the Windows XP CD-ROM, even though Microsoft no longer supports it, or upgrade all the computers on your LAN to TCP/IP. Windows XP also comes with support for NetWare's IPX/SPX protocol, which you can easily install as a network component.
Copying NetBEUI Files Before you can install the NetBEUI protocol, you need to follow these steps to copy the files by hand from the Windows XP CD-ROM:
- Put the Windows XP CD-ROM in the drive. Choose Perform Additional Tasks, and then Browse This CD.
- In the Explorer window that appears, locate the Valueadd\msft\net\netbeui folder on the CD.
- Copy the Nbf.sys file into the C:\Windows\System32\Drivers folder (assuming that Windows is installed in C:\Windows).
- Copy Netnbf.inf into the C:\Windows\Inf folder.
After copying the files, you can install NetBEUI, as described in the next section.
Installing NetBEUI or IPX/SPX Installing a protocol is similar to installing other network components. Follow these steps to install NetBEUI or IPX/SPX:
- Display the Local Area Connection Properties dialog box (by clicking Start, right-clicking My Network Places, choosing Properties, right-clicking Local Area Connection, and choosing Properties). Click the General tab (if it's not already selected).
- Click the Add button to display the Select Network Component Type dialog box.
- Select Protocol and click the Add button. You see the Select Network Protocol dialog box, shown in Figure 28-6.
Figure 28-6: Choose the network protocol.
- Select NetBEUI or NWLink IPX/SPX/NetBIOS Compatible Transport Protocol and click OK.
- You return to the Local Area Connection Properties dialog box, with the protocol you just defined listed. You may be prompted to insert the Windows XP CD-ROM.
- Click OK to save your changes.
Setting the Order of Your Protocols When you install a protocol, Windows "binds" the new protocol to all the clients and services you have available--usually File And Printer Sharing For Microsoft Networks and Client For Microsoft Networks. A binding tells Windows to use a specific protocol with a specific client or service.
You might not want to use all of your installed protocols to work with all your installed clients and services. You can control which protocols work with which clients and services, and which protocol Windows should try first, by opening the Network Connections window (choose Start | Control Panel, click Network And Internet Connections, and click Network Connections) and choosing Advanced | Advanced Settings. You see the Advanced Settings dialog box, shown in Figure 28-7. Click the Local Area Connection in the Connections box (if it's not already selected). The lower part of the Adapters And Bindings tab shows your client and services for that connection, with your installed protocols listed under each client or service.
Figure 28-7: Choosing which protocols to use with each client or service You can switch the order of the protocols, so that the one you plan to use most often appears first. Click the protocol and click the up- or down-pointing arrow button to move it. If you don't plan to use a protocol with a particular service, deselect the check box by the protocol.
If you connect to the Internet through a hub or router than doesn't provide a firewall between your computers and the Internet, don't use TCP/IP for your file and printer sharing. Instead, on each computer on your LAN, install the IPX/SPX protocol, as described in "Installing a Protocol" earlier in this chapter. Then use the Advanced Settings dialog box on each computer to disable Internet Protocol (TCP/IP) for File And Printer Sharing For Microsoft Networks. Leave IPX/SPX enabled, so that all the computers can use that protocol for file and printer sharing. Leave TCP/IP installed for use by your Internet connection.
Configuring the TCP/IP Protocol If you use TCP/IP for communication on your LAN, you need to assign an IP address to your computer's network interface card, using static addressing or DHCP. For a laptop, you can also use an alternate configuration, for when the computer isn't connected to its regular network. Follow these steps:
- Display the Local Area Connection Properties dialog box (by clicking Start, right-clicking My Network Places, choosing Properties, right-clicking Local Area Connection, and choosing Properties). Click the General tab (if it's not already selected).
- On the list of network components that the connection uses, select Internet Protocol (TCP/IP).
- Click Properties. You see the Internet Protocol (TCP/IP) Properties dialog box:
- To assign a static IP address, click Use The Following IP Address. In the IP Address box, type the IP address you've chosen. Windows supplies the dots that separate the four parts of the address.
- In the Subnet Mask box, type 255.255.255.0.
- To use DHCP or APIPA (systems that assign an IP address to your computer when Windows starts up), select Obtain An IP Address Automatically. If your LAN has a DHCP server, Windows will get IP addresses from the server each time you start Windows. If not, Windows will assign itself an address.
- If you have a laptop that connects to a LAN in a different way when you are not at your desk, click the Alternate Configuration tab. Your IP addressing choices are Automatic Private IP Address (APIPA) or User Configured (a static address).
- Click OK in each dialog box.
Installing a Service A service is the last network component you install. It also is the only optional component. Your network can work fine without a service, but no one on the network will be able to share resources, such as hard disks, CD-ROM drives, files, or printers. If you don't want to share resources, don't install any services.
Even when a service has been defined, you can add some security measures to ensure that the resources on your computer are not abused. If you are creating a peer-to-peer network of Windows computers, you need the File And Printer Sharing For Microsoft Networks service. This service is installed automatically by the Network Setup Wizard. If you need to install it (or another service) yourself, follow these steps:
- Display the Local Area Connection Properties dialog box (by clicking Start, right-clicking My Network Places, choosing Properties, right-clicking Local Area Connection, and choosing Properties). Click the General tab (if it's not already selected).
- Click the Add button to display the Select Network Component Type dialog box.
- Select Service and click the Add button. You see the Select Network Service dialog box:
- Select the service you want and click OK.
- You return to the Local Area Connection Properties dialog box, with the protocol you just defined listed. You may be prompted to insert the Windows XP CD-ROM.
- Click OK to save your changes.
Changing the Computer Name, Workgroup, or Domain To see or change your computer's name and which workgroup or domain it is in, follow these steps:
- Click Start, right-click My Computer, and choose Properties from the menu that appears. You see the System Properties dialog box.
- Click the Computer Name tab, shown in Figure 28-8.
Figure 28-8: Each computer needs a unique name and the name of a workgroup.
- Type a description of the computer in the Computer Description box. This description appears in the My Network Places window.
- To change the computer name or workgroup, click the Change button to display the Computer Name Changes dialog box:
- In the Computer Name box, type a unique name for the computer.
- If the computer is part of a workgroup, choose Workgroup in the Member Of section of the dialog box and type the workgroup name in the box. If the computer is part of a domain, choose Domain and type the domain name.
- Click OK. You may see a message telling you to restart Windows for your changes to take effect.
Setting Other Network Configuration Options Here are a few other options that you can configure for your LAN connection:
- Showing an icon in the notification area If you would like to see an icon for the LAN connection in the notification area (the right end of the taskbar, next to the clock), display the Local Area Connection Properties dialog box, click the General tab, and select the Show Icon In Notification Area When Connected check box.
- Wireless networks Wireless LANs use radio waves rather than cables to communicate. One computer has an access point, which serves as the hub for the LAN. The other computers have wireless LAN cards with antennas for communicating to the access point. If your computer has a wireless LAN connection, it appears as a local area connection in the Network Connections window (choose Start | Control Panel, click Network And Internet Connections, and click Network Connections). Right-click the connection and click the Wireless Networks tab to configure the connection.
- Bridging two networks If you have two network interface cards, and each one connects your computer to a network, your computer can bridge (connect together) the two networks. In the Network Connections window, select the two (or more) LANs (by clicking one and CTRL-clicking the others). Choose Advanced | Bridge Connections from the menu bar. You can't bridge a connection that has the Internet Connection Firewall or ICS enabled. Network bridges are useful for connecting a wireless LAN to your regular cable-based LAN. (Network bridging isn't available in Windows XP 64-Bit Edition.)
Don't bridge anything to an Internet connection. Doing so would create a wide-open security hole into your LAN!
- Optional network components Windows XP comes with several optional services that you can install, but none of them is commonly used on small peer-to-peer networks.
- Authentication using smart cards Windows can use IEEE 802.1X-standard authentication, which supports smart cards and other access controls. In the Local Area Connection Properties dialog box, click the Authentication tab.