Solved

Subnetting: Network with six subnets

Posted on 2016-09-04
8
123 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

806 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