State three main classes of ip adress and give two example for each?
- Posted:
- 3+ months ago by binthuu
- Topics:
- state, example, ip address
Answers (1)
IP addresses are assigned to organizations inblocks. Each block belongs to one of three classes: class A, class B, or class C. You can tell what class an IP address is by the value in its first octet.
Class A
1-126
Class B
128-191
Class C
192 -->
An IP address consists of two fields. The first field identifies the network, and the second field identifies the node on the network. Which bits of the address are in the network field and which bits are in the host field is determined by the subnet mask.
When a class A IP license is granted, you are assigned something like this: 99.0.0.0. Only the value of the bits in the first octet is assigned. This means you are free to assign any values you wish in the second, third and fourth octets.
The default subnet mask for a class A network is 255.0.0.0. High bits, ones, indicate the bits that are part of the network field of the IP address. The default subnet mask does not create subnets. Therefore, a class A network with the default subnet maskis one network. The three octets that are unassigned and unmasked are part of the host field of the address. There is a total of 24bits in those three octets. Each bit can be in one of two states. Therefore, 2^24 is the number of host addresses that can be assigned on that network, almost. Two addresses are reserved on every network, x.x.x.0 and x.x.x.255. So the total number of hosts possible on this network is 2^24. 2^24-2=16,777,214 hosts for a class A IP network.
When a class B license is granted, the first two octets are assigned. For example, 172.198.x.x. The default subnet mask for a class B is 255.255.0.0. One network, two octets free, 16 bits for the host address field. 2^16-2=65,534 possible host addresses on a class B IP network.
When a class C license is granted, the first three octets are assigned, for example: 193.52.16.0. The default subnet mask for a class C is 255.255.255.0. Once octet makes up the host address field. 2^8-2=254 host addresses possible on a class C network.