Solved

Subnetting: Network with six subnets

Posted on 2016-09-04
8
140 Views
Last Modified: 2016-09-07
I'm reading "Windows Networking Essential" and my question is about subnetting.
I understand that in order to create subnets, I need to borrow from the host bit of the address.
In the book, it says that

...you can use the following formula to determine how many subnets you can create based on how many bits you borrow: 2n, where n is the number of bits you borrow.

So if I I want to create four subnets, I borrow two bits, if I borrow three, I get eight subnets etc.
But how do I create, for example, six subnets?

For example, with the IP address 192.168.50.0 how is it possible to create six subnets?

To create four subnets, I borrow two bits:
11000000 10101000  00110010  00000000

What would you do to create six subnets?

Another important question is: If no network mask is given, can I assume that it's 255.255.255.0 ?
0
Comment
Question by:Massimo Scola
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 69

Accepted Solution

by:
Qlemo earned 250 total points
ID: 41783892
You need to round up the available subnets to 2^n. 6 subnets require 3 bits = 8 subnets. with two subnets unused. With an original netmask of /24 each of those 6 subnets will only be able to hold 2^5(-2) hosts, as if you had 8 subnets. There is no way to change that.

If the netmask is not provided, you'll have to assume the traditional classes A (10./8), B (172.16..0.0/16-172.31.0.0/16) or C (192.168.x.0/24).
0
 
LVL 37

Expert Comment

by:bbao
ID: 41783906
>> To create four subnets, I borrow two bits

this is for 4 same-size subnets, each has 32 IPs (30 workable IPs available).

>> with the IP address 192.168.50.0 how is it possible to create six subnets

you may simply "borrow" one more bit for 2 of the 4 above subnrts, then 6 subnrts will be available in the original class C space, 32 IPs for two subnets (mask 224), and 16 IPs for four subnets (mask 240).

> 6 subnets require 3 bits = 8 subnets. with two subnets unused.

leaving two unused subnets is not necessary, the unused subnets can be merged into two of existing eight subnets.
0
 

Author Comment

by:Massimo Scola
ID: 41783920
Then the netmask changes from
11111111 11111111 11111111 00000000 to
11111111 11111111 11111111 11100000 =  255.255.255.224

When I apply it to the IP address (in order to determine the network ID)

IP Address: 11000000  10101000  00110010  00000000
Netmask:    11111111  11111111  11111111  11100000
ID:                11000000  10101000  00110010  00000000

I get 192.168.50.0 as the network ID.  Is that correct?
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 37

Assisted Solution

by:bbao
bbao earned 250 total points
ID: 41783928
> I get 192.168.50.0 as the network ID.  Is that correct?

correct, for the 1ST subnet having 32 IPs (30 workable).
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 41783940
and the next one is 192.168.50.32, .64, .96 aso.
0
 

Author Comment

by:Massimo Scola
ID: 41783950
For the sake of completeness (if following my book) .. so it looks right.


1  000            192.168.50.0                    192.168.50.1 – 192.168.50.30
2  001            192.168.50.32            192.168.50.33 – 192.168.50.62
3  010            192.168.50.64            192.168.50.65 – 192.168.50.94
4  011            192.168.50.96            192.168.50.97 – 192.168.50.126
5  100            192.168.50.128            192.168.50.129 – 192.168.50.158
6  101            192.168.50.160            192.168.50.161 – 192.168.50.190
7  110            192.168.50.192            192.168.50.193 – 192.168.50.222
8  111            192.168.50.224            192.168.50.225 – 192.168.50.254

Bing, you wrote that ,

the unused subnets can be merged into two of existing eight subnets.

I assume this is something more advanced?

Is it like setting the default gateway of network 8 to the subnet of network 7 for example?
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 250 total points
ID: 41784308
Bing's suggestion using exactly 6 subnets with an uneven split works, but is not recommended. It increases the complexity, and is prone to confusion and misconfiguration. You usually only do that if it is absolutely necessary.

If you want to do uneven splitting, you should go exactly as Bing stated: Use 4 subnets, then split two of them further. This makes sure you use correct subnets and masks, If you go the other way round you have to pay attention to combine the correct ones. E.g. you cannot combine .32 and .64, but .64 and .96.

Whatever, the result would be two /26 networks and four /27. Each one needs a gateway in the same network as the own.
0
 

Author Closing Comment

by:Massimo Scola
ID: 41788542
Thanks a lot for your help!
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question