All other Cisco networking related discussions.
User avatar
balaji31d
Junior Member
Posts:
60
Joined:
Tue Oct 18, 2011 9:03 am
Certs:
CCNA

Subnetting doubt

Wed Nov 23, 2011 4:22 am

Hi, Below is the question with the explanation. I still dont understand how and why they subtracted 7 from 30 (30 – 7 = 23.). Can somebody help to explain please.

The network administrator is asked to configure 113 point-to-point links. Which IP addressing scheme best defines the address range and subnet mask that meet the requirement and waste the fewest subnet and host addresses?

A. 10.10.0.0/18 subnetted with mask 255.255.255.252
B. 10.10.0.0/25 subnetted with mask 255.255.255.252
C. 10.10.0.0/24 subnetted with mask 255.255.255.252
D. 10.10.0.0/23 subnetted with mask 255.255.255.252
E. 10.10.0.0/16 subnetted with mask 255.255.255.252



Answer: D

Explanation

We need 113 point-to-point links which equal to 113 sub-networks < 128 so we need to borrow 7 bits (because 2^7 = 128).

The network used for point-to-point connection should be /30.
So our initial network should be 30 – 7 = 23.

So 10.10.0.0/23 is the correct answer.

You can understand it more clearly when writing it in binary form:

/23 = 1111 1111.1111 1110.0000 0000
/30 = 1111 1111.1111 1111.1111 1100 (borrow 7 bits)
Regards
Balaji M
CCNA

User avatar
ristau5741
Post Whore
Posts:
10618
Joined:
Tue Aug 21, 2007 2:15 pm
Certs:
Instanity

Re: Subnetting doubt

Wed Nov 23, 2011 9:45 am

32 - 2 ( for the host bits) = 30
30 - 7 ( for the network bits) = 23

it's a round about way to get there.
Tips of the day:
- The human mind is the ultimate creation invention.
- I have so many customers, my customers have customers.
- Sausage time
- POP, stack, and store

User avatar
balaji31d
Junior Member
Posts:
60
Joined:
Tue Oct 18, 2011 9:03 am
Certs:
CCNA

Re: Subnetting doubt

Thu Nov 24, 2011 11:25 am

Sorry for being a noob. I still do not understand. Is it a formula?

* We need 113 point-to-point links which equal to 113 sub-networks < 128 so we need to borrow 7 bits (because 2^7 = 128). - i understand
* The network used for point-to-point connection should be /30 - Also understand.
* So our initial network should be 30 – 7 = 23. (This is the part which i dont understand.)
Regards
Balaji M
CCNA

User avatar
mellowd
CCIE #38070
Posts:
13814
Joined:
Wed Jun 18, 2008 7:49 am
Certs:
CCIE (RS,SP), JNCIE-SP, BC-/SPNE/NP

Re: Subnetting doubt

Thu Nov 24, 2011 5:53 pm

I don't know why people make subnetting more difficult than it needs to be. These point to point links are going to be /30s. How many addresses are there per /30? 4. 2 host addresses, 1 subnet and 1 broadcast. So 4 * 113 = 452. Hence you'll need a /23 as a /23 gives you 512 addresses


If they really wanted to save address space, they could use /31s and only need a single /24 for all of them.

Fred
Post Whore
Posts:
2617
Joined:
Sat Jun 07, 2008 11:06 am
Certs:
CCNP, CCDP

Re: Subnetting doubt

Thu Nov 24, 2011 7:09 pm

mellowd wrote:I don't know why people make subnetting more difficult than it needs to be. These point to point links are going to be /30s. How many addresses are there per /30? 4. 2 host addresses, 1 subnet and 1 broadcast. So 4 * 113 = 452. Hence you'll need a /23 as a /23 gives you 512 addresses

Indeed. This is the math I would have used.

Once you understand that you need /30's, you can restate the problem: "How many /30's are needed to handle 113 links?" The answer should be obvious: You need 113 of them.

So how many IP's does that take? Well, one /30 requires 4 IP's, so that's 113*4=452 IP addresses.

So the hard part is: "What power of 2 will accommodate 452 IP addresses?" At that point, it's important to know your powers of 2. 2, 4, 8, 16, 32, 64, 128, 256, 512... If you can't do that off the top of your head, work on it. So 512 is the first power of 2 that will accommodate your subnets. Which power is it? Count them. It's the 9th power of 2, so 2^9=512. So you need 9 total bits to accommodate your subnets. IPv4 addresses are 32-bits, and you need 9 bits to accommodate your networks: 32-9=23. So you can fit them all in a /23.

User avatar
balaji31d
Junior Member
Posts:
60
Joined:
Tue Oct 18, 2011 9:03 am
Certs:
CCNA

Re: Subnetting doubt

Sat Nov 26, 2011 8:25 pm

mellowd wrote:I don't know why people make subnetting more difficult than it needs to be. These point to point links are going to be /30s. How many addresses are there per /30? 4. 2 host addresses, 1 subnet and 1 broadcast. So 4 * 113 = 452. Hence you'll need a /23 as a /23 gives you 512 addresses.

Fred wrote:So the hard part is: "What power of 2 will accommodate 452 IP addresses?" At that point, it's important to know your powers of 2. 2, 4, 8, 16, 32, 64, 128, 256, 512... If you can't do that off the top of your head, work on it. So 512 is the first power of 2 that will accommodate your subnets. Which power is it? Count them. It's the 9th power of 2, so 2^9=512. So you need 9 total bits to accommodate your subnets. IPv4 addresses are 32-bits, and you need 9 bits to accommodate your networks: 32-9=23. So you can fit them all in a /23.

Perfect!!!!!!! This is the exact way of me understanding the problem. Thank you and god bless you.

Regards
Balaji M
Regards
Balaji M
CCNA

Nawras
New Member
Posts:
1
Joined:
Sun Jul 26, 2015 9:50 pm
Certs:
CISCO

Re: Subnetting doubt

Sun Jul 26, 2015 10:10 pm

hi why make a complex calculation i think and actually i understand it like this and in this simple:

from host perceptive we just need 2 addresses so 2^2=4
two of it for broadcast and native
AND
two of it usable addresses for point to point link ....
that's it ...
so
"xxxxxxxx.xxxxxxxx.xxxxxxxx.xxxxxx|00"
the last two bit for point to point "host ID"

Now for 113 subnet you have to understand just that if you want 113 so you can take it from 2^7

2^1=2
2^2=4
2^3=8
2^4=16
2^5=32
2^6=64
2^7=128 which is cover 113


so we need 7 bit to reach this number "113"

so two bit for host id and 7 bit for net id in total 9 bit

wich is /23

32 all bits - 23 t= 9
so
10.10.0.0/23 subnetted with mask 255.255.255.252

in very and simple detail

SebastianWilliams
Junior Member
Posts:
59
Joined:
Mon Apr 25, 2016 5:58 am

Re: Subnetting doubt

Wed Aug 24, 2016 1:30 am

It is really confusing.

'

Return to Cisco General

Who is online

Users browsing this forum: No registered users and 12 guests