Discussion Locked

Subnetting question

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do i find out the subnet mask when i only got an IP range? (ex: 207.46.200.0-207.46.207.255). I already got the answer, please give me an explanation.

6 replies

by ans_84

I think i?ve already got a good understandin of binarys. It was just this issue i couldn?t find out! Thanks for the links anyway.

by crt

You should know that the maximum value per octet is 255 so you go octet by octet and take the difference between the 2 values and substract that from 255:

First octet = 207 and 207, diff = 0 so mask value = 255 - 0 = 255
Second octet = 46 and 46, diff = 0 so mask value = 255 - 0 = 255
Third octet = 200 and 207, diff = 7 so mask value = 255 - 7 = 248
Fourth octet = 0 and 255, diff = 255 so mask value = 255 - 255 = 0

Which gives you a mask of 255.255.248.0

(Of course since bits have to be contiguous in a subnet mask once you find a non-255 value you don't have to calculate the remaining octet(s) as everything that follows has to be 0)

by ans_84

Thanks for your very good explanation of this issue! It seems to be quite simple after all!

by ramzeelali

u give the ip range from 207.46.200.0 to 207.46.207.255
first understand that it as a class C ip address
find out the changes b/w 2 ip address
A.B.C.D ie A=207 B=46 C=200 to 207 & D=0 to 255
first changes started from c (200 to 207)
therefore subnet mask is 255.255._.0 for A&B
for c there is 8 is the difference(256-248=8 OR 256-8=248)
there for by adding the 248 for C we get
255.255.248.0

This discussion is closed to new replies.