Computing.Net > Forums > Networking > subnetting

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

subnetting

Reply to Message Icon

Name: drs
Date: July 18, 2002 at 09:41:30 Pacific
Comment:

Hello & I have a question,

I have an original IP range of 192.168.2.x,

an original subnet mask of 255.255.255.0,

and I need 6 subnets.

-Now-

I know that i need a subnet bit of 224, and
that my new subnet mask will be 255.255.255.224

and I know that my increment range will be in increments of 32, but this will not work!

could please explain to me in detail whats wrong and what my true range IP values will
be?



Sponsored Link
Ads by Google

Response Number 1
Name: dude
Date: July 18, 2002 at 10:12:56 Pacific
Reply:

Go to this site to get the free
IP Subnetter

Actually, there is nothing wrong with that. You will get 7 subnets because the first one is 192.168.2.0 Here is the break down. I'll just use the last numbers for ease.

subnet valid range broadcast
0 1 thru 30 31
32 33 thru 62 63
64 65 thru 94 95
96 97 thru 126 127
128 129 thru 158 159
160 161 thru 190 191
192 193 thru 222 223
224 225 thru 254 255


0

Response Number 2
Name: dude
Date: July 18, 2002 at 10:29:01 Pacific
Reply:

Sorry, you get 8 subnets not 7 :)


0

Response Number 3
Name: Glen
Date: July 18, 2002 at 11:06:59 Pacific
Reply:

Why won't it work? There would actually be 8 subnets, but 2 would be invalid. So you would end up with 6 usable subnets with 30 hosts per subnet.

Your first range of addresses would start at 192.168.2.33. (192.168.2.32 would be the subnet ID, not a valid IP address.) That range would end at 192.168.2.62. 192.168.2.63 would be the broadcast address for that subnet, not a valid IP address for a client. 192.168.2.64 would be the next subnet ID so the next subnet range would start at 192.168.2.65 - 192.168.2.94. etc. That subnets would go like this:


1.) 192.168.2.33 - 192.168.2.62
2.) 192.168.2.65 - 192.168.2.94
3.) 192.168.2.97 - 192.168.2.126
4.) 192.168.2.129 - 192.168.2.158
5.) 192.168.2.161 - 192.168.2.190
6.) 192.168.2.193 - 192.168.2.222

That's it. Hope that helps.


0

Response Number 4
Name: dude
Date: July 18, 2002 at 14:27:01 Pacific
Reply:

Hello Glen,

Why do you say that 2 of the subnets are not valid?


0

Response Number 5
Name: Glen
Date: July 18, 2002 at 18:12:22 Pacific
Reply:

Well, to be technical, it depends a bit on your hardware and whether you are allowing a zero subnet. Often, the 0 subnet is not supported. Based on his question, and him mentioning the 6 subnets, I assumed he was not wanting the zero subnet. It's hard to explain without drawing a picture but I'll try.

With a 224 mask the first 3 bits in the last octet are reserved for the network ID. They can not be all 0's or all 1's in binary. Either can the host ID which in this case is the last 6 bits. 224 in binary is 11100000. This means we use the last 6 bits for host ID. So, since the first 3 bits can not be all 0's or all 1's and the host ID, the last 6 bits can not be all 0's or all 1's, the lowest number in binary would be 00100001. (The network ID can not be all 0's since this would indicate the whole subnet.) 00100001 = 33 - The first valid IP address.

Now, the last first 3 bits in the last octet can not be all ones either so the first 3 bits in binary would have to be 110 - and the host ID can not be all 1's so the highest number in the last 6 bits would be 111110. Put all 8 bits together, 11011110 = 222. The last valid IP address.

Hope that helps clear things up. Dude, your post is not necessarily wrong, I was just referencing the fact that he said that the mask he was using (which is correct) and everything DRS mentioned seemed correct so I was just showing him how it could correct.



0

Related Posts

See More



Response Number 6
Name: Hmmm
Date: July 18, 2002 at 18:47:41 Pacific
Reply:

Well done Glen. Also an address which finishes in all 1's is the broadcast address of that subnet.


0

Response Number 7
Name: Matt
Date: July 23, 2002 at 19:23:25 Pacific
Reply:

I have read about this before, but am wondering... My network at home runs on 192.168.1.x and my cousins runs on 192.168.0.x I want to set up my network so that each of these can happily chat away, What subnet do i have to use to do that?

Sorry, i dont fully understand all that techno mumbo jumbo up there :$


0

Sponsored Link
Ads by Google
Reply to Message Icon

Mapped drive in xp slow Network routers



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: subnetting

Subnet Mask or DHCP problem www.computing.net/answers/networking/subnet-mask-or-dhcp-problem/17127.html

wrong subnet? www.computing.net/answers/networking/wrong-subnet/4885.html

Subnetting and Supernetting question www.computing.net/answers/networking/subnetting-and-supernetting-question-/7049.html