| Author |
subnet/host question
|
|
| Matt1999 2002-01-17, 3:23 pm |
| Ok, here is one that I don't quiet get yet:
You have a Class-C network with a 6-bit subnet mask, how many subnets and hosts do you have?
OK, I understand that this is: 255.255.255.252
And the answer is 62 subnets and 2 hosts per subnet.
How do you calculate that from the 255.255.255.252 ?
Thanks! | |
| wandie 2002-01-17, 3:37 pm |
| 6 bit subnet mask - okay, you take 6 bits from this octet (of 8) to make your subnets = 6 to the power of 2 (binary) = 64 - take two away (1 for subnet address and 1 for broadcast address) - with the remaining 2 bits from octet (of 8) you get 2 to the power of 2 = 4 hosts - take two away (1 for subnet, 1 for broadcast). | |
| dmaftei 2002-01-17, 8:42 pm |
| quote: Originally posted by wandie
6 bit subnet mask - okay, you take 6 bits from this octet (of 8) to make your subnets = 6 to the power of 2 (binary) = ...
You mean 2 to the power of 6 (6 to the power of 2 is 36 )
quote: ...- take two away (1 for subnet address and 1 for broadcast address)...
When you subnet for CCNA you ignore the first and last subnets (for reasons I'm not going to discuss now). The "1 for subnet/1 for broadcast" applies to host addresses within a subnet. | |
| Clangashe 2002-01-19, 5:35 pm |
| OK you know the subnet mask which is 252.
Therefore you take it away from 256.
ie:
256 - 252 = 4
Now you have to take away 2. One for the network and one for the broadcast.
ie:
4 - 2 = 2
Therefore there are 2 host per subnet.
Also have a look at this link
http://www.examnotes.net/forums/sho...&threadid=26339 | |
|
|
|
|
| kevinvasoft 2002-01-22, 3:40 am |
| I'm new to the Cisco thing but i thought that a subnet mask of 6 bits was actually 252.0.0.0 = 11111100.00000000.00000000.00000000
Am I right or have i got it totally wrong??? | |
| Yankee 2002-01-22, 4:06 am |
| When these guys talk of a 6 bit mask they are talking "classful" six bits. Guess it's something they are taught in school because it ain't the way we talk in the real world. His example of a 255.255.255.252 is really refered to as a /30 network. A 255.255.255.0 would be called a /24 network.
I don't want to confuse anyone....
Yankee |
|
|
|