How can I will identify the different classes of IP address? I have learnt that........
Class A:
1st Octet 2nd Octet 3rd Octet 4th Octet
Network ID Host ID Host ID Host ID
Class B:
1st Octet 2nd Octet 3rd Octet 4th Octet
Network ID Network ID Host ID Host ID
Class c:
1st Octet 2nd Octet 3rd Octet 4th Octet
Network ID Network ID Network ID Host ID
Bu this is confucing me..........
Determining the Class of an IP Address
We can find the class of an IP address when the given address is either in binary notation or in dotted-decimal notation.
If the address is given in binary notation, the first few bits can immediately tell us the class of the address.
If the first bit of an IP address is 0 , it is class A address
If the first two bits of an IP address is 10 , it is class B address
If the first three bits of an IP address is 110 , it is class C address
If the first four bits of an IP address is 1110 , it is class D address
If the first four bits of an IP address is 1111 , it is class E address
If the address is given in dotted-decimal notation, the first byte defines the class.
If the value of first octet is between 0 to 127 , it is class A address
If the value of first octet is between 128 to 191 , it is class B address
If the value of first octet is between 192 to 223 , it is class C address
If the value of first octet is between 224 to 239 , it is class D address
If the value of first octet is between 240 to 255 , it is class E address
Example:
Find the class of each address given below:
a) 01101111 00111000 00101101 01001110
b) 11001111 00111110 00101001 01000111
c) 221.34.7.8
d) 15.34.127.89
e) 255.67.243.190
Solution:
a) The first bit is zero. So, this is class A address.
b) The first three bit is 110. So, this is class C address
c) The first octet is 221 (between 192 and 223). So, this is class C address.
d) The first octet is 15 (between 0 and 127). So, this is class A address.
e) The first octet is 255 (between 240 and 255). So, this is class E address.
Can any one help me?