Numerical Practise IPv4 Addressing Expertvision
Numerical Practise IPv4 Addressing Expertvision
Question: Find the netid and the hostid of the following classfull
addresses:
a. 114.34.2.8 b. 208.34.54.12
Solution :
Classes have following range [0-127, 128-191, 192-223, 224-239,
240-255]
a). 114.34.2.8 is class A Address, therefore bits allocation is (
8 + 24)
So, Netid = 114 and Hostid = 34.2.8
b).208.34.54.12 is class C Address, therefore bits allocation is
(24 + 8)
So, Netid = 208.34.54 and Hostid = 12
Reply
Expert_Talk
5 Dec 2021 at 4:36 pm
Using the subnet mask, we can find the size of this block and therefore the first
and last ip of the block.
Using
First address = (any address) AND (network mask) ,
Last Address = (any address) OR [NOT(network mask)], we get
First Address = (163.171.113.153) AND (255.255.252.0) = 163.171.112.0
Last Address = (163.171.113.153) OR (0.0.3.255) = 163.171.115.255
We know the first and last address are reserved and do not assigned to host.
Moreover the IP are consecutively assigned to subnetworks.
Therefore, second ip address of the block will be the first host of the first subnet.
i.e. 163.171.112.1
Similarly, the second last ip of the block will be the last host of the last
subnetwork
i.e. 163.171.115.254
Reply
CHRISTIAN JOSEPH ELISHA
5 Dec 2021 at 5:59 pm
Even i did the same as you did but got confused whether i did correct or not thanks
to your i did that problem in my own
Reply
Leave a Reply
Enter your comment here...
Expertvision,