Subnetting Made Easy
Comments
-
nimrod.sixty9 Banned Posts: 125 ■□□□□□□□□□That cleared it up very well, thank you all. I didnt realize subtract from class for subnet bits. I can do the math and the numbers, but this one confused me:
Question: What valid host range is the IP address 172.17.247.48/23 a part of?
Answer: 172.17.246.1 through to 172.17.247.254
I got 2 Subnets and 510 Hosts...
With that how do I figure out the above .246 and .247?
Also, how heavy in subnetting in the Net+ exam? -
Jas21 Member Posts: 51 ■■□□□□□□□□There isn't any subnetting in the Network + exam (certainly wasn't when I took it a few years back!)
-
jdfriesen Member Posts: 45 ■■□□□□□□□□nimrod.sixty9 wrote: »I can do the math and the numbers, but this one confused me:
Question: What valid host range is the IP address 172.17.247.48/23 a part of?
Answer: 172.17.246.1 through to 172.17.247.254
I got 2 Subnets and 510 Hosts...
With that how do I figure out the above .246 and .247?
In this question you've got to figure out the block size. There are a couple ways to do that. The way I do it is 256 - the mask of the last non-zero octet. In that case, /23 = 255.255.254.0, so they last non zero octet is 254, so 256-254=2 as the block size.
With the block size known, you've got to then find the start of the current subnet. With a block size of 2, it's pretty easy, it's going to be 246, so the first valid address is 172.17.246.1 (.0 isn't allowed as that's the network address). The next valid subnet given a block size of 2 would be 172.17.248.0/23, so that means the last allowable address is going to be 172.17.248.254 (.255 is the broadcast address).
To subnet quickly, you've got to be able to quickly count in multiples of 2, 4, 8, 16, 32, 64 and 128, which enables you to find the start of each subnet quickly. -
j-man Member Posts: 143In this question you've got to figure out the block size. There are a couple ways to do that. The way I do it is 256 - the mask of the last non-zero octet. In that case, /23 = 255.255.254.0, so they last non zero octet is 254, so 256-254=2 as the block size.
Forget the subtraction stuff.
128 192 224 240 248 252 254 255 - last non-zero of SM
128 64 32 16 8 4 2 1 - block size
That's the block size based on the final non zero octet of the subnet mask.
While it's important to be able to come up with the numbers quickly, it's also extremely important to know why and how those numbers are found.
Learn both the binary and decimal ways to manually calculate the subnet, first host, last host and broadcast and it will start to make sense.
*edit* jdfriesen - the last bit wasn't directed at you. It's a general statement to anyone that wants to learn to subnet. -
binaryhat Member Posts: 129I have been doing subnetting in class and I don't understand how you get this answer:
- [FONT=Arial, sans-serif]Which network prefix will implement the IP addressing scheme for 2 LANs one with hosts 172.22.0.62 and 172.22.0.37 and the other with hosts 172.22.0.94 and 172.22.0.75. [/FONT]
/27 is the answer but I don't see y
Currently working on:
ICND1 - TBD
Book: CCENT/CCNA ICND1 100-101 Official Cert Guide
Equipment: Packet Tracer, GNS3
Supplement Material: Youtube, Google, Boson ExamSim-Max, CBTNuggets -
Futura Member Posts: 191I have been doing subnetting in class and I don't understand how you get this answer:
- [FONT=Arial, sans-serif]Which network prefix will implement the IP addressing scheme for 2 LANs one with hosts 172.22.0.62 and 172.22.0.37 and the other with hosts 172.22.0.94 and 172.22.0.75. [/FONT]
/27 is the answer but I don't see y
27 bit mask is 255.255.255.224, so interesting octet is the last one.
224 looks like this
11100000
3 subnet bits and 5 host bits.
block size is 32, therefore the ranges are
172.22.0.0 - 31
172.22.0.32 - 63
172.22.0.64 - 95
172.22.0.96 - 127
and so on
This means that the addresses above fall in two subnets.
Hope this make sense, please speak up if i have got this wrong? I'm learning too. -
okplaya Member Posts: 199I have been doing subnetting in class and I don't understand how you get this answer:
- [FONT=Arial, sans-serif]Which network prefix will implement the IP addressing scheme for 2 LANs one with hosts 172.22.0.62 and 172.22.0.37 and the other with hosts 172.22.0.94 and 172.22.0.75. [/FONT]
/27 is the answer but I don't see y
I can see why they chose a /27, but a /26 could be used as well based off of that information. -
Priston Member Posts: 999 ■■■■□□□□□□IPv6 subnetting
I have a /8 address
FD00::0
I want 987954853651556842951 subnets
70 bits gives me 1180591620717411303424 subnets
so I use /78
which leaves me 50 bits for host 1125899906842624
FD00::0 - FD00::3:FFFF:FFFF:FFFF
FD00::4:0:0 - FD00::7:FFFF:FFFF:FFFF
FD00::8:0:0 - FD00::B:FFFF:FFFF:FFFF
Is this right?A.A.S. in Networking Technologies
A+, Network+, CCNA -
Radiant9 Member Posts: 28 ■□□□□□□□□□This has really made subnetting SO much easier. I have had charts and formulas and such all jumbled up in my brain. This makes it SO much easier. Im gonna practice this until I can answer questions practically instantly.
Again, Thank you for sharing this! -
518 Member Posts: 165 ■■■□□□□□□□I did a few questions from subnettingquestions website. One of them:
What valid host range is the IP address 10.180.194.157 255.255.240.0 a part of?
Answer: 10.180.192.1 through to 10.180.207.254
I did this to get the answer:
32-28=4
2^4 = 16 – 31
32 - 47
48 - 63
64 - 79
80 - 95
96 - 111
112 - 127
128 - 143
144 - 159
160 - 175
176 – 191
192 – 207
208 - 254
Given that on CCENT exam, a candidate should only spend 1min or < for each question. And most books suggested that a candidate must be able to answer subnetting questions within 15-30secs. Was it possible for the question above to get it in 30secs or less? I mean, I can probably remember the numbers for the first 5 range, but not all the way down to 192-207 range Am I that really slow??? I understand that I need to keep practicing, and that's what I'm doing.
Thanks. -
chmorin Member Posts: 1,446 ■■■■■□□□□□I did a few questions from subnettingquestions website. One of them:
What valid host range is the IP address 10.180.194.157 255.255.240.0 a part of?
Answer: 10.180.192.1 through to 10.180.207.254
I did this to get the answer:
32-28=4
2^4 = 16 – 31
32 - 47
48 - 63
64 - 79
80 - 95
96 - 111
112 - 127
128 - 143
144 - 159
160 - 175
176 – 191
192 – 207
208 - 254
Given that on CCENT exam, a candidate should only spend 1min or < for each question. And most books suggested that a candidate must be able to answer subnetting questions within 15-30secs. Was it possible for the question above to get it in 30secs or less? I mean, I can probably remember the numbers for the first 5 range, but not all the way down to 192-207 range Am I that really slow??? I understand that I need to keep practicing, and that's what I'm doing.
Thanks.
You are doing it the hard way. You want to do Binary ANDing.
10.180.194.157 = 00001010.10110100.11000010.10011101
255.255.240.0 = 11111111.11111111.11110000.00000000
AND=======================================
00001010.10110100.11000000.00000000
This give you the network address:10.180.192.0. Then use the information you already know how to gather to finish up the rest of the range.
There may be an even faster way, but I can't remember.Currently PursuingWGU (BS in IT Network Administration) - 52%| CCIE:Voice Written - 0% (0/200 Hours)mikej412 wrote:Cisco Networking isn't just a job, it's a Lifestyle. -
518 Member Posts: 165 ■■■□□□□□□□You are doing it the hard way. You want to do Binary ANDing.
10.180.194.157 = 00001010.10110100.11000010.10011101
255.255.240.0 = 11111111.11111111.11110000.00000000
AND=======================================
00001010.10110100.11000000.00000000
This give you the network address:10.180.192.0. Then use the information you already know how to gather to finish up the rest of the range.
There may be an even faster way, but I can't remember.
Thanks. But, it took me 1+ minute just writing those binary numbers. My main concern was HOW to quickly get the answer. Yes, ANDing is easier. But, it still took longer than 1-min to get the answer.
Unless, subnettingquestions website was only concerned whether a person learned the concept, or not. -
chopsticks Member Posts: 389I can see why they chose a /27, but a /26 could be used as well based off of that information.
Agree with your opinion. -
MickQ Member Posts: 628 ■■■■□□□□□□
Originally Posted by binaryhat
I have been doing subnetting in class and I don't understand how you get this answer:
[FONT=Arial, sans-serif]
Which network prefix will implement the IP addressing scheme for 2 LANs one with hosts 172.22.0.62 and 172.22.0.37 and the other with hosts 172.22.0.94 and 172.22.0.75. [/FONT]/27 is the answer but I don't see y
I can see why they chose a /27, but a /26 could be used as well based off of that information.
It could be, but consider that you're looking for an address range which holds the hosts 172.22.0.37 and 172.22.0.62
/26 gives you 62 usable host addresses (.1 to .62).
Shame to be wasting half of that when you can use a /27 for 30 usable host addresses, instead (.33 to .62).
Don't forget the old subnet zero rule. It basically says that when you're subnetting into classless subnets that you're not able to use the first subnet (and also last subnet - "all ones subnet").
What does that mean for us here? Well, if you're subnetting with /27, you won't be able to use address ranges .0 - .31, and .224 - .255
As far as I know (someone correct me if I'm wrong), you should consider the subnet zero rule to be in place unless specifically told that you can use the first and last subnets, or it shows the "ip subnet-zero" command.
Of course, we could also make it a /24, but that would include the other addresses (.75 and .94) in the same range as the first couple. -
miller811 Member Posts: 897I did a few questions from subnettingquestions website. One of them:
What valid host range is the IP address 10.180.194.157 255.255.240.0 a part of?
Answer: 10.180.192.1 through to 10.180.207.254
I did this to get the answer:
32-28=4
2^4 = 16 – 31
32 - 47
48 - 63
64 - 79
80 - 95
96 - 111
112 - 127
128 - 143
144 - 159
160 - 175
176 – 191
192 – 207
208 - 254
Given that on CCENT exam, a candidate should only spend 1min or < for each question. And most books suggested that a candidate must be able to answer subnetting questions within 15-30secs. Was it possible for the question above to get it in 30secs or less? I mean, I can probably remember the numbers for the first 5 range, but not all the way down to 192-207 range Am I that really slow??? I understand that I need to keep practicing, and that's what I'm doing.
Thanks.
when I see this 255.255.240.0
I immediately notice the third octect is the interesting octet, (first non 255)
I then take 256 - the interesting octect
256-240 = 16
sixteen is the block size
now you need to find the one it fits in.
just randomly, I multiply be 10
160.... nope to small
add 16 = 176... nope still to small
192.... thats the one
so subnet is 10.180.192.0
one address above that is 10.180.192.1 = first valid host
go to the next subnet 192 + 16 = 208.
10.180.208.0
one address below that is the broadcast address 10.180.207.255
one address below that is the last valid host 10.180.207.254
hope that helps.I don't claim to be an expert, but I sure would like to become one someday.
Quest for 11K pages read in 2011
Page Count total to date - 1283 -
518 Member Posts: 165 ■■■□□□□□□□when I see this 255.255.240.0
I immediately notice the third octect is the interesting octet, (first non 255)
I then take 256 - the interesting octect
256-240 = 16
sixteen is the block size
now you need to find the one it fits in.
just randomly, I multiply be 10
160.... nope to small
add 16 = 176... nope still to small
192.... thats the one
so subnet is 10.180.192.0
one address above that is 10.180.192.1 = first valid host
go to the next subnet 192 + 16 = 208.
10.180.208.0
one address below that is the broadcast address 10.180.207.255
one address below that is the last valid host 10.180.207.254
hope that helps.
That's it! I could have jumped to x10 of the block size!
Thank you kindly! -
gustavQ Registered Users Posts: 5 ■□□□□□□□□□Hi everyone.
I have a homework question that i don't know how to solve. I'm not asking to solve me the question, but some one to explain me how can I solve it.
I have this ip address space: 10.123.10.0/24
I want to segment this address space into the following segments:
1. Web servers,
2. Transactional systems,
3. Desktop computers.
The point is to divide this address space into these 3 segments. Provide the network address and the appropriate network mask for each of the segments.
Can anyone help me solve this? -
ccnaomkar Member Posts: 187 ■■□□□□□□□□VLSM is basically subnetting a subnet. You have to be able to subnet first. Once you have mastered subnetting then working out VLSM issues will be a lot easier.
Right. First master subnetting -
hackmer Users Awaiting Email Confirmation Posts: 44 ■■□□□□□□□□Hi everyone.
I have a homework question that i don't know how to solve. I'm not asking to solve me the question, but some one to explain me how can I solve it.
I have this ip address space: 10.123.10.0/24
I want to segment this address space into the following segments:
1. Web servers,
2. Transactional systems,
3. Desktop computers.
The point is to divide this address space into these 3 segments. Provide the network address and the appropriate network mask for each of the segments.
Can anyone help me solve this? -
gustavQ Registered Users Posts: 5 ■□□□□□□□□□How many IP addresses on each of your three segment you need ?
-
hackmer Users Awaiting Email Confirmation Posts: 44 ■■□□□□□□□□First you must decide, how many IPs you want to have on each segment (for example, 10 web servers, 20 transactional systems, 500 desktop PCs etc.).
After that you can divide /24 into smaller subnets (/25 for 126 IPs, /28 for 14, etc.). -
gustavQ Registered Users Posts: 5 ■□□□□□□□□□First you must decide, how many IPs you want to have on each segment (for example, 10 web servers, 20 transactional systems, 500 desktop PCs etc.).
After that you can divide /24 into smaller subnets (/25 for 126 IPs, /28 for 14, etc.).
But why the network mask has to be different? I'm new in this kind of theme. -
chopsticks Member Posts: 389But why the network mask has to be different? I'm new in this kind of theme.
This is to satisfy the different networks and hosts requirement, and to be more effectively managing the given IP address spaces so as to cut down wasteful assignments. -
gustavQ Registered Users Posts: 5 ■□□□□□□□□□chopsticks wrote: »This is to satisfy the different networks and hosts requirement, and to be more effectively managing the given IP address spaces so as to cut down wasteful assignments.
Are you talking about VLSM?
So if I want 500 Desktop Computers, 10 Transaction systems and 20 Web Servers. What is the answer?
I'm not understanding nothing... -
hackmer Users Awaiting Email Confirmation Posts: 44 ■■□□□□□□□□Are you talking about VLSM?
So if I want 500 Desktop Computers, 10 Transaction systems and 20 Web Servers. What is the answer?
I'm not understanding nothing...
We want 10 web servers, 15 transactional servers and 56 desktops PCs.
With your 10.123.10.0 /24 you can do something like this:
For 10 host addresses use - "/28" (14 host addrs) - 255.255.255.240
for 15 addr - "/27" (30 host addr) - 255.255.255.224
for 56 addr - "/26" ( 62 host addr) - 255.255.255.192
-
/26 (255.255.255.192): 10.123.10.1 - 10.123.10.56
/27 (255.255.255.224): 10.123.10.65 - 10.123.10.94
/28 (255.255.255.240): 10.123.10.97 - 10.123.10.110
-
Am I right, guys? -
chopsticks Member Posts: 389Are you talking about VLSM?
So if I want 500 Desktop Computers, 10 Transaction systems and 20 Web Servers. What is the answer?
I'm not understanding nothing...
Very sorry for the late reply as I am quite tired in the past few days (I am working full time and attending my IT evening classes for 5 days per week + 1 full-day class on weekend).
Yes Sir, you are right, I am talking about VLSM
If basing on your given requirements:
IP Address: 10.123.10.0/24
Desktop PC: 500
Transaction Systems: 10
Web servers: 20
Total host address needed: 530
Let's work out how many host address for the given IP Address and subnet mask:
10.123.10.0 (IP address)
255.255.255.0 (Subnet mask)
The ones in blue belong to the network portion, while the green one belongs to the host part.
Since the whole of the last octet belongs to the hosts and we know that it can be represented by eight bits, we can calculate the maximum hosts addresses that it can give:
( 2^8 ) - 2 = 256 - 2 = 254 valid host addresses
Obviously, with only 254 host addresses, this subnet mask does not cater enough addresses for your 530 hosts.
So, in this senario, you will need a subnet mask of at least 10 host bits to cater for 530 hosts ---> (2^10) - 2 = 1022 host addresses). Therefore, your subnet mask should be at least be a /22, or 255.255.252.0
Hope the above helps. -
djyox Member Posts: 21 ■□□□□□□□□□This is great. I printed it out and handed it out to everyone in my S6 shop.
Thanks very very much. Very helpful.Taking:
Network+ - 6May2011
2011/2012 Goals:
CCNA / CISSP
Books & Videos:
CBT Network+ -
gustavQ Registered Users Posts: 5 ■□□□□□□□□□hackmer and chopsticks thank you very much for your help.
So if i want 100 Desktop computers, 20 Web servers and 10 transactional systems, the Network address and the network mask for each segment are:
For 100 Desktop Computers - /25, 124 hosts, that is, 255.255.255.128 Network Mask and 10.123.10.0 Network address.
For 20 web servers - /27, 30 hosts , that is, 255.255.255.224 Network mask and 10.123.10.0 Network address.
For 10 transaction systems /28, 14 hosts, that is, 255.255.255.240 Network mask and 10.123.10.0 Network address.
This is right? -
miller811 Member Posts: 897hackmer and chopsticks thank you very much for your help.
So if i want 100 Desktop computers, 20 Web servers and 10 transactional systems, the Network address and the network mask for each segment are:
For 100 Desktop Computers - /25, 124 hosts, that is, 255.255.255.128 Network Mask and 10.123.10.0 Network address.
For 20 web servers - /27, 30 hosts , that is, 255.255.255.224 Network mask and 10.123.10.0 Network address.
For 10 transaction systems /28, 14 hosts, that is, 255.255.255.240 Network mask and 10.123.10.0 Network address.
This is right?
right idea, but not applied correctly. You must apply the range after each segment. You always start with the largest to smallest, which you did correctly, but then come to the end of that defined range before you start the next subnet.
For 100 Desktop Computers - /25, 124 hosts, that is, 255.255.255.128 Network Mask and 10.123.10.0 Network address.
10.23.10.0 - 10.23.10.127
So for the next group you start at the next boundary
10.23.10.128 is the subnet, now assign the new mask to this portion.
" For 20 web servers - /27, 30 hosts , that is, 255.255.255.224 Network mask and 10.123.10.0 Network address".
so the /27 is 2 to the 5th which equals a 32 bit subnet so your next subnet is
10.23.10.128 -10.23.10.159
and the final subnet you start one above the last end point
10.23.10.160
"For 10 transaction systems /28, 14 hosts, that is, 255.255.255.240 Network mask and 10.123.10.0 Network address".
since this a 28 bit mask 2 to the 4th is 16 = your block size
so the range is 10.23.10.160 - 10.23.10.175
in this case each ip address gets used once and only once.
And you still have
10.23.10.176 - 10.23.10.255 available.I don't claim to be an expert, but I sure would like to become one someday.
Quest for 11K pages read in 2011
Page Count total to date - 1283