11.2. Configuring IP AddressesWhen IP was first used, every computer on a network had to be hand-configured with a static IP address and a netmask address before it could communicate with other machines. While it's nice to have a static IP address, it also meant that it was possible to run out of IP addresses assigned to a domain. This often forced sysadmins to restrict certain users from access to network services (file sharing, printing, even the Internet) by not assigning an IP address to a certain class of machines or users, with dedicated "network" computers in each group from which the network could be accessed. As you can imagine, that was a real pain. Fortunately for today's users, most networks provide Dynamic Host Configuration Protocol (DHCP ) services. These services allow computers to be configured automatically with an IP address and netmask for that particular network. DHCP also helps conserve IP addresses by letting a potentially large number of computers share a smaller number of active IP addresses. DHCP services are provided by a separate server on the network or can be built into the hardware, known as a gateway router, providing access to the Internet via an ISP. When you plug your computer into a DHCP-enabled network, your machine sends out a low-level request to the DHCP server for configuration information. The DHCP server responds by sending the IP address, netmask, router, and DNS information that the computer needs to connect to the network. Your computer uses this information to configure itself and becomes a fully functional node on the network. DHCP works only when the network has been configured properly. In the absence of a DHCP server, Mac OS X uses a link local address, which is part of Bonjour. This is a private network address in the range 169.254.1.0 to 169.254.254.255. By assigning itself an address when no other address information is present, your Mac can still interact with other hosts on the network that also have self-assigned IP addresses. This is perfect for setting up ad hoc networkssuch as when you want to connect two laptops together with an Ethernet or FireWire cable. This address won't work for accessing the Internet, but it works for connecting a group of computers together to share data, compile code, and the like.
11.2.1. Manually Configuring IP InformationIf you need to manually configure your IP information so your Mac can access a network or the Internet, the place to do so is in the Network preference panel, shown in Figure 11-4. You'll need the following pieces of information from your network administrator or ISP:
After entering the information for your network connection, you'll need to click the Apply Now button for the settings to take effect. Check your connection's status by going to the Show pop-up and select Network Status from the menu. If you see a green dot, your connection is working; a red dot, as mentioned earlier, means that your connection isn't working properly. |