IP Addressing
IP Addressing
An IP address is a number that is used to identify a device on the network. Each device on a network must
have a unique IP address to communicate with other network devices. Network devices are those that move data
across the network, including hubs, switches, and routers. On a LAN, each host (device that sends or receives
information on the network) and network device must have an IP address within the same network to be able to
communicate with each other.
A persons name and fingerprints usually do not change. They provide a label or address for the persons
physical aspectthe body. A persons mailing address, on the other hand, relates to where the person lives or picks
up mail. This address can change. On a host, the Media Access Control
(MAC) address is assigned to the host Network Interface Card (NIC) and is known as the physical
address. The physical address remains the same regardless of where the host is placed on the network in the same
way that fingerprints remain with someone regardless of where he or she goes. An IP address consists of a series of
32 binary bits (1s and 0s). It is very difficult for humans to read a binary IP address. For this reason, the 32 bits are
grouped into four 8-bit bytes called octets. An IP address, even in this grouped format, is hard for humans to read,
write, and remember. Therefore, each octet is presented as its decimal value, separated by a decimal point or period.
This format is called dotted-decimal notation. When a host is configured with an IP address, it is entered as a dotted-
decimal number, such as 192.168.1.5.
Imagine if you had to enter the 32-bit binary equivalent of this:
11000000101010000000000100000101. If you mistyped just 1 bit, the address would be different,
and the host may not be able to communicate on the network. The logical 32-bit IP address is
hierarchical and is composed of two parts. The first part identifies the network, and the second part
identifies a host on that network. Both parts are required in an IP address. For example, if a host
has an IP address of 192.168.18.57, the first three octets, 192.168.18, identify the network portion
of the address, and the last octet, 57, identifies the host. This is called hierarchical addressing,
because the network portion indicates the network on which each unique host address is located.
Routers only need to know how to reach each network, not the location of each individual host.
IP Classes Purpose
Class A Used for large networks, implemented by large companies and some countries
Class B Used for medium-sized networks, implemented by universities
Class C Used for small networks, implemented by ISPs for customer subscriptions
Class D Used for special use for multicasting
Class E Used for experimental testing
Class D addresses are used for multicast groups. There is no need to allocate octet or bits to separate
network and host addresses. Class E addresses are reserved for research use only.
IpConfig
Ipconfig is a command used to find out the IP address of a certain network you are connected to.
5. Click the Properties button. The Internet Protocol (TCP/IP) Properties dialog box appears.
9. Type the address for the preferred DNS server. The address should be obtained from your Internet Service
Protocol. It is used to help your computer find web pages and other addresses on the internet.
10. Type the address for the alternate DNS server. The alternate Domain Name System (DNS) servers IP address is
something that your ISP provides.
11. Click OK to confirm the settings.
12. Close all other open dialog boxes and windows.
These are the IP address information that a DHCP server can assign to hosts:
IP address
Subnet mask
Default gateway
Optional values, such as a Domain Name System (DNS) server address
The DHCP server receives a request from a host. The server then selects IP address information from a set of
predefined addresses that are stored in a database. After the IP address information is selected, the DHCP server
offers these values to the requesting host on the network. If the host accepts the offer, the DHCP server leases the IP
address for a specific period of time.
Using a DHCP server simplifies the administration of a network because the software keeps track of IP addresses.
Automatically configuring TCP/IP also reduces the possibility of assigning duplicate or invalid IP addresses. Before a
computer on the network can take advantage of the DHCP server services, the computer must be able to identify the
server on the local network. You can configure a computer to accept an IP address from a DHCP server by clicking
the Obtain an IP address automatically option in the NIC configuration window, as shown in Figure 56.
If your computer cannot communicate with the DHCP server to obtain an IP address, the Windows operating system
automatically assigns a private IP address. If your computer is assigned an IP address in the range of 169.254.0.0 to
169.254.255.255, it can communicate with only other computers in the same range. An example of when these
private addresses would be useful is in a classroom lab where you want to prevent access outside to your network.
This operating system feature is called Automatic Private IP Addressing (APIPA). APIPA continually requests an IP
address from a DHCP server for your computer.