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
I calculate that with a 255.255.255.192 mask and a /26 count you'd get 64 possible hosts, 62 of which are available.
Depends how the question is worded as to whether it's correct or not. What specifically does it say?
EDIT - Forgot to add... Yeah you're semi correct. With a 255.255.255.128 mask and a /25 count you'd get 128 possible hosts, 126 of which are available.
Qs
Base 8 is just like Base 10, if you are missing two fingers.
I calculate that with a 255.255.255.192 mask and a /26 count you'd get 64 possible hosts, 62 of which are available.
Depends how the question is worded as to whether it's correct or not. What specifically does it say?
EDIT - Forgot to add... Yeah you're semi correct. With a 255.255.255.128 mask and a /25 count you'd get 128 possible hosts, 126 of which are available.
Qs
”
Cool, so in future, when I calculate, I will add +2 to the Host value to make sure that it falls within range.
70-284 January '09
70-293 March '09
70-294 May '09
70-297 July '09
ITIL v3 August '09
CCENT October '09
CCNA December '09
You lose two hosts for the broadcast and the network address.
So you have 1+2+4+8+16+32=63-2 = 61 possible hosts, Not enough !
1+2+4+8+16+32+64=127-2 = 125 possible hosts, Enough !
Leaving last bit 128 for network, 8+8+8+1 = 25 So its /25 or 255.255.255.128.
Each octet is 8 bits or 0-255, 128 64 32 16 8 4 2 1.
You can do it with powers of 2 direct but if you get confused just go back to simple math.
For example you notice that first part came out 63, turns out every summation of the max possible representation in the lower columns is (2 power N) -1. This is like our decimal number system which is (10 power N) -1.
Digits column max representation 9, its one less than next power of ten which is 10 and the value of a unit in the next column !
2 power 6 is 64, minus 1 gives 63, which is the maximum number you can represent in 5 bits or the result of the summation. The only problem was you forgot the -2 part.
You are missing something ! (Check with a calculator if you don't believe me 1+2+4+8+16+32=63) the (base power N) - 1 rule holds for all number systems, binary, octal, decimal, hexidecimal, etc.
Another way to think of it is like this, 32+32 = 64, Well if I could represent 32 in the columns below why do I need a 32 column ? I can only represent 0-31 in the columns below, thats why I need a 32 column ! 31+32=63
There a 32 possible numbers or representations including zero, but zero doesn't count !
Number of combinations of 8 bits is 2 power 8 = 256, but each octet can only contain 255 ! We lose one combination/representation to represent the zero.
I get what you're saying dmarsh but I still believe you're wrong within the context of calculating available hosts.
Admittedly when you're adding numbers together then it follows your concept (I must have been having an off day when I previously calculated this!), for example:-
1+2+4+8+16+32 = 63
But...
2^6 (or 2*2*2*2*2*2) = 64
You don't add the individual components to calculate the available hosts on a subnet. That's the point.
You calculate the power and then minus 2 (for the broadcast and network address of each subnet.)
So in craig's original example:-
Calculating for 63 available hosts...
2^6 = 64 - 2 = 62 available hosts
2^7 = 128 - 2 = 126 available hosts
As the latter has the required 63 hosts and the former doesn't - then the subnet mask MS are looking for is 255.255.255.128/25.
So in this case its (2 power N) -2 for number of hosts, you are correct. Theres no need to minus the zero/network twice ! My Bad, I knew I shouldn't have got involved with a networks thread !