29. Configure Networking Automatically with DHCP or BootPBEFORE YOU BEGIN 27 Set Your Network Device Preference Order SEE ALSO 30 Configure Networking Manually 40 Connect to the Internet Wirelessly If you connect to the Internet using Ethernet or AirPort, chances are that your Mac is part of a business or home network that is configured to automatically set each computer's TCP/IP settings as soon as it connects. If this is the case, you don't have to do any difficult configuration to get online; you just have to set up your Mac to use the Dynamic Host Configuration Protocol (DHCP) the most popular protocol whereby the computer is automatically assigned an IP address and routing information by a server somewhere on the LAN. 29. Configure Networking Automatically with DHCP or BootP KEY TERM Dynamic Host Configuration Protocol (DHCP) A mechanism whereby you can plug a computer into a network and have it automatically receive TCP/IP configuration settings from a server somewhere on the network, freeing you from having to type in those settings yourself. In DHCP (BootP, another similar protocol, is sometimes used instead), as soon as you plug in an Ethernet cable, join an AirPort network, or power-on a computer that's already plugged in, the computer sends out a broadcast message asking for a computer on the network to tell it what to use as an IP address , as well as other critical TCP/IP information, such as the subnet mask , the router , the DNS server , and the search domain . If a DHCP server is present on the LAN, it sends a reply directly back to your computer with the TCP/IP information it needs. Your computer applies that information to its own configuration, and it can then communicate on the network and with the Internet. In the IPv4 protocol, your IP address uniquely identifies your computer on the Internet. This address is a string of four numbers from 0 to 255, separated by dots (periods). Another string of four numbers , the subnet mask, defines how large your network's address space is. Common subnet masks are 255.0.0.0 , 255.255.0.0 , and 255.255.255.0 ; they correspond to networks with 16.7 million, 65 thousand, and 256 IP addresses, respectively. Finally, the router, a device on your local network that enables your computer to communicate with computers on far-flung remote networks around the world, must be present within the address space of the local network defined by the combination of your IP address and your subnet mask. A further bit of magic is done by DNS servers, which provide a mapping between numeric IP addresses and textual hostnames; this mapping is the Domain Name Service, or DNS. When you connect to the hostname www.apple.com , a DNS server must supply the IP address associated with that hostname before your computer can connect to it. If you specify a search domain, the hostnames you type can be shortened ; for instance, if your search domain were apple.com , you could simply type info to connect to info.apple.com . Generally you would use this option on a business network, and set it to your company's domain name so that you can connect to internal servers by using only their machine names . KEY TERMS IP address A unique numeric address that identifies your computer on the Internet. An IP address is of the form A.B.C.D , where each letter is any number from 0 to 255for example, 17.112.152.32 . Subnet mask Another set of four numbers, each from 0 to 255, the subnet mask is a numeric string that defines how large the address space is on your local network. Router A device on your local network that enables your computer to communicate with computers on other networks across the Internet. DNS servers Computers on the network that provide a mapping between numeric IP addresses and textual hostnames; this mapping is the Domain Name Service, or DNS. Search domain Allows you to type shortened versions of hostnames on the Internet. For instance, if you worked at Apple, your search domain would be apple.com , and you could simply type info to connect to info.apple.com. IPv4 The current and ubiquitous version of IP, the Internet Protocol, is 4. IPv6 is the next -generation version of IP, and you can configure your Mac to use IPv6 if you're on a network that uses it (click the Configure IPv6 button)but most networks don't use IPv6 yet.
|