Wednesday, December 8, 2010

Find Net-ID, Host-ID, Total Subnets

Method # 1

Let suppose we have address 192.168.1.142/25

First Address: The first address in the block can be found by setting rightmost 32 – n bits to 0’s. Let’s take the address give above:
11000000 10101000 00000001 10001110
11000000 10101000 00000001 10000000 (as 32-25 = 7)

192.168.1.127 is the First Address

Last Address: The last address in the block can be found by setting rightmost 32 – n bits to 1’s. Let’s take the address given above:
11000000 10101000 00000001 10001110
11000000 10101000 00000001 11111110 (do 32 – n)

192.168.1.254 is the Last Address

Total Addresses: The number of address in the block can be found by using the formula 232-n, let’s look at this:
232-25 = 24 = 16

I hope this will be informative for you.

Cheers :)

No comments: