Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

ICND1 subnet question

i am a bit confused about this. how do i go about this type of questions.

"network is assigned 140.10.0.0. network manager requires 250 subnets. each subnet should support atleast 250 hosts.

what would be the subnet to use."

so in this type of questions how do i go about calculating the subnet? do i start by the required subnets or the hosts?

is there a simple calculation to do this?

Everyone's tags (3)
3 REPLIES
Hall of Fame Super Gold

Re: ICND1 subnet question

The question that you pose has 2 constraints (the solution must have at least 250 subnets and each subnet must support at least 250 hosts) and the successful solution must satisfy both of them. I would suggest that you start with one constraint, find a solution that satisfies that constraint and then check to see if that solution also satisfies the other constraint.

I would probably start with the constraint about how many hosts are supported in various subnets. There is an easy chart that you can work out to provide this:

CIDR notation         subnet               usable

(/ notation)              mask                 hosts

    /30                  255.255.255.252   2

    /29                  255.255.255.248   6

    /28                  255.255.255.240   14

    /27                  255.255.255.224   30

    /26                  255.255.255.192   62

    /25                  255.255.255.128   126

    /24                  255.255.255.0       254

From this chart it is evident that you need a subnet with mask 255.255.255.0 (/24) to get the right number of hosts.

So then check to see if this solution also satisfies the other constraint. Since you were given a class B address, which uses 16 bits for the network part of the address, and you need to use 8 bits for the host part of the address,then it leaves you with 8 bits for the subnet part of the address. So how many subnets can you have with 8 bits for the subnet part of the address? The answer is just slightly more than 250.

So the answer to the question is that if you have network 140.10.0.0 you need to create subnets with /24 (255.255.255.0) to get the required number of hosts and required number of subnets.

I started by solving the constraint for number of hosts. You could just as easily start by solving for the number of subnets. And you should come out with the same answer either way.

HTH

Rick

Community Member

Re: ICND1 subnet question

You are given a network 140.10.0.0

And you have the requirement

    Size of Subnets: 250

    Size of Hosts: 250

Now calculate the size of each portion

NETWORK PORTION : 16 bits (as given 140.10)

SUBNET PORTION:    ?

HOST PORTION: ?

It is always recommended to calculate the host portion first so that the remaining bits can be used for subnetting

HOST CALCULATION:->

SO we will calcuate the number of host bits required for 250 hosts-

(2^N)-2 =: 250

So for N=8 there will be valid 254 hosts

So the Host Portion: Last octet 8 bits

SUBNET CALCULATION:->

(2^N)-2 =: 250

So for N=8 there will be valid 254 subnets

So Subnet Poriton : 3rd OCTET 8 bits

Thus,

For     N: Network Bits, S: Subnet Bits, H: Host Bits

Our Notation will be:

NNNNNNNN.NNNNNNNN.SSSSSSSS.HHHHHHHH

Network: 140.10.0.0/16

Subnet: 140.10.1.0 to 140.10.250.0 (having 250 subnets)

Host in each subnets will be:

    For Subnet 140.10.1.0 ,

        140.10.1.1/24 to 140.10.1.250/24 (250 hosts)

    For Subnet 140.10.250.0

        140.10.250.1/24 to 140.10.250.250/24 (250 hosts)

and so on.

Community Member

Re: ICND1 subnet question

Hello, Bhavesh!

A good explanation to this question along with other questions related to subnetting you can find in this book:

Chris Bryant (CCIE#12933). Mastering Binary Math And Subnetting. (www.thebryantadvantage.com)

It's not an advertisment, It really helped me

DAO21-RIPE
2275
Views
5
Helpful
3
Replies
CreatePlease to create content