[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# Subnetting: Network with six subnets

Posted on 2016-09-04
Medium Priority
204 Views
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
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
• 3
• 3
• 2

LVL 71

Accepted Solution

Qlemo earned 1000 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

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

ID: 41783920
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
ID:                11000000  10101000  00110010  00000000

I get 192.168.50.0 as the network ID.  Is that correct?
0

LVL 37

Assisted Solution

bbao earned 1000 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 71

Expert Comment

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

Author Comment

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 71

Assisted Solution

Qlemo earned 1000 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

ID: 41788542
Thanks a lot for your help!
0

## Featured Post

Question has a verified solution.

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

On Feb. 28, Amazon’s Simple Storage Service (S3) went down after an employee issued the wrong command during a debugging exercise. Among those affected were big names like Netflix, Spotify and Expedia.
Powerful tools can do wonders, but only in the right hands.  Nowhere is this more obvious than with the cloud.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
###### Suggested Courses
Course of the Month13 days, 11 hours left to enroll