Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Each IP address has two parts--a network ID and a host ID. The network ID
identifies a physical network. All hosts on the same network require the same
network ID, which should be unique to the internetwork.
The host ID identifies a workstation, server, router, or other TCP/IP host within a
network. The host ID must be unique to the network ID. Each TCP/IP host is
identified by a logical IP address. A unique IP address is required for all hosts
and network components that communicate using TCP/IP, as shown in the
following illustration.
00000000 0 0
00000001 1 1
00000011 1+2 3
00000111 1+2+4 7
00001111 1+2+4+8 15
00011111 1+2+4+8+16 31
00111111 1+2+4+8+16+32 63
01111111 1+2+4+8+16+32+64 127
11111111 1+2+4+8+16+32+64+128 255
Procedure:
B) Address Classes
There are different classes of IP addresses. Each class defines the part of the IP
address which identifies the network ID and the part, which identifies the host ID.
The Internet community has defined five IP address classes to accommodate
networks of varying sizes. Microsoft TCP/IP supports class A, B, and C
addresses assigned to hosts. The class of address defines which bits are used
for the network ID and which bits are used for the host ID. The class also defines
the possible number of networks and the number of hosts per network.
You can identify the class of address by the number in the first octet. The 32-bit
IP addressing scheme supports a total of 3,720,314,628 hosts. The following
chart shows the network and host ID fields for class A, B, and C IP addressing.
Class IP address Network ID Host ID
A w.x.y.z w x.y.z
B w.x.y.z w.x y.z
C w.x.y.z w.x.y z
Class A
Class A addresses are assigned to networks with a very large number of hosts.
The high-order bit in a class A address is always set to zero. The next 7 bits
(completing the first octet) complete the network ID. The remaining 24 bits (the
last three octets) represent the host ID. This allows for 126 networks and
approximately 17 million hosts per network.
Class B
Class B addresses are assigned to medium-sized to large-sized networks. The
two high-order bits in a class B address are always set to binary 1 0. The next 14
bits (completing the first two octets) complete the network ID. The remaining 16
bits (last two octets) represent the host ID. This allows for 16,384 networks and
approximately 65,000 hosts per network.
Class C
Class C addresses are used for small LANs. The three high-order bits in a class
C address are always set to binary 1 1 0. The next 21 bits (completing the first
three octets) complete the network ID. The remaining 8 bits (last octet) represent
the host ID. This allows for approximately 2 million networks and 254 hosts per
network.
Note
The network ID cannot be 127. This ID is reserved for loopback and diagnostic
functions.
Class D
Class D addresses are used for multicast group usage. A multicast group can
contain one or more hosts, or none at all. The four high-order bits in a class D
address are always set to binary 1 1 1 0. The remaining bits designate the
specific group in which the client participates. There are no network or host bits
in the multicast operations. Packets are passed to a selected subset of hosts on
a network. Only those hosts registered for the multicast address accept the
packet. Microsoft supports class D addresses for applications to multicast data to
hosts on an internetwork, including WINS and Microsoft NetShow™.
Class E
Class E is an experimental address not available for general use because it is
reserved for future use. The high-order bits in a class E address are set to 1111.
Address Class
131.107.2.89
3.3.57.1
200.200.5.2
191.107.2.10
225.6.15.0
129.15.5.6
127.0.0.1
2. Which address class (es) will allow you to have more than 1000 hosts per
network?
3. Which address (es) will allow only 254 hosts per network?
C: Guidelines
There are several general guidelines you should follow when assigning network
IDs and host IDs:
• The network ID cannot be 127. This ID is reserved for loopback and
diagnostic functions.
• The network ID and host ID bits cannot all be 1's. If all bits are set to 1, the
address is interpreted as a broadcast rather than a host ID.
• The network ID and host ID bits cannot all be 0's. If all bits are set to 0, the
address is interpreted to mean "this network only."
• The host ID must be unique to the local network ID.
A unique network ID is required for each network and wide area connection. If
you are connecting to the public Internet, you are required to obtain a network ID
from the Internet Network Information Center (InterNIC). If you do not plan to
connect to the public Internet, you can use any valid network ID.
The network ID identifies the TCP/IP hosts that are located on the same physical
network. All hosts on the same physical network must be assigned the same
network ID to communicate with each other.
The host ID identifies a TCP/IP host within a network and must be unique to the
network ID. All TCP/IP hosts, including interfaces to routers, require unique host
IDs. The host ID of the router is the IP address configured as a workstation's
default gateway. For example, for the host on subnet 1 with an IP address of
124.0.0.27, the IP address of the default gateway is 124.0.0.1.
131.107.256.80
222.222.255.222
231.200.1.1
126.1.0.0
0.127.4.100
190.7.2.0
127.1.1.1
198.121.254.255
255.255.255.255
In this next practice, you decide which class of address will support the following
IP network. Next, you assign a valid IP address to each type of host to easily
distinguish it from other hosts (for example, UNIX, Windows NT servers, or
Windows NT workstations). In this scenario, all computers are on the same
Network.
Which address classes will support this network?
Using the network ID that you chose, assign a range of host IDs to each type of
host, so that you can easily distinguish the Windows NT Server computers from
the Windows NT Workstation computers and the UNIX workstations.
In this next practice, you decide how many network IDs and host IDs are required
to support this network. Use the following illustration for reference.
How many network IDs does this network environment require?
Which default gateway (router interface) would you assign to the Windows NT
Workstation computers that communicate primarily with the UNIX workstations?
D. SUBNET MASK
Review Questions
1. In class A, class B, and class C addresses, which octets represent the network
ID and which represent the host ID?
2. When is a unique network ID required?