custom subnet masks - TechRepublic
General discussion
February 25, 2006 at 07:52 AM
tech_soul7

custom subnet masks

by tech_soul7 . Updated 20 years, 4 months ago

For example I need to create 652 networks with class B address 150.150.0.0.

a)the subnet mask is 255.255.255.192
b)the first three valid network numbers are 150.150.0.64, 150.150.0.128, 150.150.0.192
c)the range of host ip addresses on 150.150.0.64 network is 150.150.0.65-150.150.0.126

Using the subnet goggles we see: NNNNNNNN.NNNNNNNN.SSSSSSSS.SSHHHHH.

Now I dont understand how can I get 126 which is the last number from 150.150.0.126 ip address (which represents the last valid host ip address on 150.150.0.64 network) if I have only 5 bits left in host portion.
To get 126 I need to took one bit from subnet portion. And why I cant apply rule on this example that says to figure out the range of ip addresses on each network, use this two-part equation: The first part, or start of the range = (the network address + 1), The second part, or end of the range =
For Class A, B: (the next network address – 1). If I apply this rule on my example than I’ll get 127 instead 126. Why?

This discussion is locked

All Comments