Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Certification Forums > Microsoft Certification Forums > Network Infrastructure
Home Forums Register Search Today's Posts Mark Forums Read

Calculating Subnet Mask

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 27-Nov-2007, 08:40 AM
Nimbus Nimbus is offline
New Member
Posts: 10
Points: 0 Nimbus has no points
Power: 4
None
Join Date: 09 Jan 2007
Calculating Subnet Mask

Question about subnetting, I know the process of borrowing host bits from an octet to create subnets and how to calculate the subnet mask for the desired number of subnets.

I have seen questions in the MSpress book that asks you to calculate the subnet from a given network or host address?? can someone advise me on how this is calculated

For example, say if I had a network destination of 172.16.8.0 - how do I calculate the mask?

Thanks in Advance

 
Reply With Quote
  #2  
Old 27-Nov-2007, 09:15 AM
JonGlory's Avatar
JonGlory JonGlory is offline
Valued Member
Posts: 167
Points: 113 JonGlory has over 100 pointsJonGlory has over 100 points
Power: 5
None
Join Date: 20 Jul 2007
Location: North Ayrshire
Age: 27
Certifications: BSC Network Computing
WIP: A+
You would have to assume the question is asking for the default subnet mask for the ip address stated unless it says otherwise.

The default for a 172 is 255.255.0.0 which is a class B

The defaults are class A = 255.0.0.0 with IP numbers from 1.0.0.0 - 126.0.0.0
Class B 255.255.0.0 IP range 128.0.0.0 - 191.0.0.0
Class C 255.255.255.0 Ip range 192.0.0.0 - 223.0.0.0

No 127.0.0.0 network, this is reserved

Hope this helps


There are only 10 types of people that understand binary, those who do and those who don't.
 
Reply With Quote
  #3  
Old 27-Nov-2007, 11:14 AM
Nimbus Nimbus is offline
New Member
Posts: 10
Points: 0 Nimbus has no points
Power: 4
None
Join Date: 09 Jan 2007
Quote:
Originally Posted by JonGlory View Post
You would have to assume the question is asking for the default subnet mask for the ip address stated unless it says otherwise.

The default for a 172 is 255.255.0.0 which is a class B

The defaults are class A = 255.0.0.0 with IP numbers from 1.0.0.0 - 126.0.0.0
Class B 255.255.0.0 IP range 128.0.0.0 - 191.0.0.0
Class C 255.255.255.0 Ip range 192.0.0.0 - 223.0.0.0

No 127.0.0.0 network, this is reserved

Hope this helps
Sorry for the bad explanation, I am aware of the above. What I am really asking is that if 172.16.8.0 was a network address from a network with a non-default mask. Is it posible to work out what the mask is?


Last edited by Nimbus : 27-Nov-2007 at 11:28 AM.
 
Reply With Quote
  #4  
Old 27-Nov-2007, 11:29 AM
JonGlory's Avatar
JonGlory JonGlory is offline
Valued Member
Posts: 167
Points: 113 JonGlory has over 100 pointsJonGlory has over 100 points
Power: 5
None
Join Date: 20 Jul 2007
Location: North Ayrshire
Age: 27
Certifications: BSC Network Computing
WIP: A+
If all you are given is a network address and a told its a non default subnet mask, then no, I doubt you can figure out the subnet mask. I may be wrong.

IMO you would need to know the number of hosts or networks that the given ip and sn mask can support to work it out.

i.e the following network address "172.16.8.0 " supports 16 hosts, what is the subnet mask.

Answer 255.255.255.240


There are only 10 types of people that understand binary, those who do and those who don't.

Last edited by JonGlory : 27-Nov-2007 at 11:35 AM.
 
Reply With Quote
  #5  
Old 27-Nov-2007, 11:36 AM
r.h.lee r.h.lee is offline
Longterm Member
Posts: 902
Points: 1009 r.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 pointsr.h.lee has over 1000 points
Power: 24
None
Join Date: 18 Mar 2006
Certifications: MCSE, MCP+I, MCP, CCNA, A+
WIP: CCDA
Quote:
Originally Posted by Nimbus View Post
Question about subnetting, I know the process of borrowing host bits from an octet to create subnets and how to calculate the subnet mask for the desired number of subnets.

I have seen questions in the MSpress book that asks you to calculate the subnet from a given network or host address?? can someone advise me on how this is calculated

For example, say if I had a network destination of 172.16.8.0 - how do I calculate the mask?

Thanks in Advance
Nimbus,

Which "MSpress book" are you referring to?


MCSE, MCP+I, MCP, A+, CCNA certified
 
Reply With Quote
  #6  
Old 27-Nov-2007, 11:38 AM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,434
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 28
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
Quote:
Originally Posted by Nimbus View Post
Sorry for the bad explanation, I am aware of the above. Waht I am really asking is that if 172.16.8.0 was a network address from a network with a non-default mask. Is it posible to work out what the mask is?
It could be several. Easiest way is to write down the (in this case) thirth octet in binairy. 00001000
The most right '1' here is the border for the subnetmask, so that would give you 11111000 which is 248.

To be correct, also 252 would be valid for network 8 (the first network would be 4, 8 would be the second), and 254 (here 8 would be the fourth network with 2, 4 and 6 as the first three), 255 (as the eighth network), 255.128, 255.192, 255.224 and so on and so on.

 
Reply With Quote
  #7  
Old 27-Nov-2007, 11:45 AM
JonGlory's Avatar
JonGlory JonGlory is offline
Valued Member
Posts: 167
Points: 113 JonGlory has over 100 pointsJonGlory has over 100 points
Power: 5
None
Join Date: 20 Jul 2007
Location: North Ayrshire
Age: 27
Certifications: BSC Network Computing
WIP: A+
Kinda defeats the purpose of having a subnet mask, if you can determine the network and host part of an ip unless you are using defaults.


There are only 10 types of people that understand binary, those who do and those who don't.
 
Reply With Quote
  #8  
Old 27-Nov-2007, 12:18 PM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,434
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 28
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
Quote:
Originally Posted by JonGlory View Post
Kinda defeats the purpose of having a subnet mask, if you can determine the network and host part of an ip unless you are using defaults.
No it does not. If you read my reaction again, you will see that I start with "Could be several". Just having the network address could give you a clue, but the subnetmask gives you certainty.
What's more, it also tells the computer exactly what the network address is.

 
Reply With Quote
  #9  
Old 27-Nov-2007, 12:20 PM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,434
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 28
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
Quote:
Originally Posted by JonGlory View Post
If all you are given is a network address and a told its a non default subnet mask, then no, I doubt you can figure out the subnet mask. I may be wrong.

IMO you would need to know the number of hosts or networks that the given ip and sn mask can support to work it out.

i.e the following network address "172.16.8.0 " supports 16 hosts, what is the subnet mask.

Answer 255.255.255.240
There is no subnetmask which supports exactly 16 hosts. A network with mask 255.255.255.240 supports a maximum of 14 hosts.

 
Reply With Quote
  #10  
Old 27-Nov-2007, 12:29 PM
JonGlory's Avatar
JonGlory JonGlory is offline
Valued Member
Posts: 167
Points: 113 JonGlory has over 100 pointsJonGlory has over 100 points
Power: 5
None
Join Date: 20 Jul 2007
Location: North Ayrshire
Age: 27
Certifications: BSC Network Computing
WIP: A+
Quote:
Originally Posted by Tinus1959 View Post
No it does not. If you read my reaction again, you will see that I start with "Could be several". Just having the network address could give you a clue, but the subnetmask gives you certainty.
What's more, it also tells the computer exactly what the network address is.
You are guessing though and given that the network address 172.16.8.0 could be subnetted 255.255.248.0 - 255.255.255.254, that would be a very lucky guess if you got the question right.

Only if defaults sub net masks were used, would the router know the network address.

Quote:
Originally Posted by Tinus1959 View Post
There is no subnetmask which supports exactly 16 hosts. A network with mask 255.255.255.240 supports a maximum of 14 hosts.
255.255.255.240 = 16 host, 14 are usable, but if subnet zero is used then 16 are usable.

You could reword the question

i.e the following network address "172.16.8.0 " has to support at least 16 usable hosts, what is the subnet mask.

Answer 255.255.255.224


Any question on an exam will give more information than the question posted by the author of the thread.


There are only 10 types of people that understand binary, those who do and those who don't.

Last edited by JonGlory : 27-Nov-2007 at 12:46 PM.
 
Reply With Quote
  #11  
Old 27-Nov-2007, 02:13 PM
Nimbus Nimbus is offline
New Member
Posts: 10
Points: 0 Nimbus has no points
Power: 4
None
Join Date: 09 Jan 2007
Quote:
Originally Posted by Tinus1959 View Post
It could be several. Easiest way is to write down the (in this case) thirth octet in binairy. 00001000
The most right '1' here is the border for the subnetmask, so that would give you 11111000 which is 248.

To be correct, also 252 would be valid for network 8 (the first network would be 4, 8 would be the second), and 254 (here 8 would be the fourth network with 2, 4 and 6 as the first three), 255 (as the eighth network), 255.128, 255.192, 255.224 and so on and so on.
Thanks Tinus,

Thats is a great explanation, I never thought of looking at the third octet of the network address in that way before when trying to figure out the subnet address

I have dug up the question that confused me originally, I assume the subnet mask is 248 here also. Using the same reasoning - the subnets go in 8 with 248 being the most right bit in 11001000.

This question has an exact answer though as it has an end to the address pool.

Using Calculator, determine which subnet mask you must assign to the
address pool 207.46.200.0–207.46.207.255


255.255.248.0

Thanks to everyone who replied


Last edited by Nimbus : 27-Nov-2007 at 03:36 PM.
 
Reply With Quote
  #12  
Old 27-Nov-2007, 05:02 PM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,434
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 28
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
Quote:
Originally Posted by JonGlory View Post
You are guessing though and given that the network address 172.16.8.0 could be subnetted 255.255.248.0 - 255.255.255.254, that would be a very lucky guess if you got the question right.

Only if defaults sub net masks were used, would the router know the network address.
I suggest you reread the chapter on subnetting.


Quote:
255.255.255.240 = 16 host, 14 are usable, but if subnet zero is used then 16 are usable.
No it has not 16 hosts, it has 16 addresses and only 14 of these can be used for hosts.
Quote:
You could reword the question

i.e the following network address "172.16.8.0 " has to support at least 16 usable hosts, what is the subnet mask.

Answer 255.255.255.224


Any question on an exam will give more information than the question posted by the author of the thread.
You are correct here, but that was not the original question.

 
Reply With Quote
  #13  
Old 27-Nov-2007, 06:48 PM
JonGlory's Avatar
JonGlory JonGlory is offline
Valued Member
Posts: 167
Points: 113 JonGlory has over 100 pointsJonGlory has over 100 points
Power: 5
None
Join Date: 20 Jul 2007
Location: North Ayrshire
Age: 27
Certifications: BSC Network Computing
WIP: A+
Quote:
Originally Posted by Tinus1959 View Post
I suggest you reread the chapter on subnetting.
My subnetting is more than fine tbh, why go reread something i already know?

Quote:
Originally Posted by Tinus1959 View Post
No it has not 16 hosts, it has 16 addresses and only 14 of these can be used for hosts.
I suggest you read this
http://www.cisco.com/en/US/tech/tk64...80093f18.shtml


Quote:
Originally Posted by Tinus1959 View Post
You are correct here, but that was not the original question.
At least Im right here lol, what was the original question again, oh yeah, "how do you correctly guess a subnet mask"


There are only 10 types of people that understand binary, those who do and those who don't.
 
Reply With Quote
  #14  
Old 27-Nov-2007, 07:28 PM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,434
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 28
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
Quote:
Originally Posted by JonGlory View Post
My subnetting is more than fine tbh, why go reread something i already know?
Maybe you did not understand?



Quote:
I suggest you read this
http://www.cisco.com/en/US/tech/tk64...80093f18.shtml
Read it. They are talking about subnets there, not about hosts. And when mentioning host ranges there they specificly leave out the 0 address and the 255 address.



Quote:
At least Im right here lol, what was the original question again, oh yeah, "how do you correctly guess a subnet mask"
Funny. I suggest you reread the original question to.

 
Reply With Quote
  #15  
Old 27-Nov-2007, 08:18 PM
JonGlory's Avatar
JonGlory JonGlory is offline
Valued Member
Posts: 167
Points: 113 JonGlory has over 100 pointsJonGlory has over 100 points
Power: 5
None
Join Date: 20 Jul 2007
Location: North Ayrshire
Age: 27
Certifications: BSC Network Computing
WIP: A+
You're right enough with the host Tinus, got mixed up with address there

But the original question is guessing a subnet mask

I.e network admin needs 256 networks with 256 addresses

Subnets ip 172.16.8.0 with 255.255.255.0


There are only 10 types of people that understand binary, those who do and those who don't.
 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Certification Forums > Microsoft Certification Forums > Network Infrastructure


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off