»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-11-2004, 05:55 PM   #1 (permalink)
Registered User
 
skybolt_1's Avatar
 
Join Date: Jan 2002
Location: Lowell, MA, USA
Posts: 181
skybolt_1 is on a distinguished road
Send a message via AIM to skybolt_1
Subnetting question

OK this is more of a theoretical question... I have this as a question in my TCP/IP class.

If you have a Class B network, and your subnetid is 12 bits, and your hostid is 4 bits, then what would be your subnet mask???

I have looked all over the web for an answer but my poor brain is not good at the binary math... please help!!!

skybolt_1

__________________
skybolt_1
skybolt_1 is offline   Reply With Quote
Old 03-11-2004, 06:53 PM   #2 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
11111111 11111111 11111111 11110000 = 255.255.255.240
DVNT1 is offline   Reply With Quote
Old 03-11-2004, 07:06 PM   #3 (permalink)
Registered User
 
skybolt_1's Avatar
 
Join Date: Jan 2002
Location: Lowell, MA, USA
Posts: 181
skybolt_1 is on a distinguished road
Send a message via AIM to skybolt_1
Tell me if my interpretation of this is right....

The first two octets are equal to 16. You then count off 12 (or one and a half octets) for the subnetid, and whatever remains (4) is your hostid.

that the right explaination?
__________________
skybolt_1
skybolt_1 is offline   Reply With Quote
Old 03-11-2004, 08:34 PM   #4 (permalink)
Registered User
 
darrelld's Avatar
 
Join Date: Oct 2001
Location: Oregon
Posts: 1,150
darrelld is on a distinguished road
Right your standard Class B address uses 16 bit for the network portion and 16 bits for the host portion so the Mask looks like this: 255.255.0.0 or 11111111.11111111.00000000.00000000.
Now you have borrowed 12 bits for the network portion and left 4 bits for the host so your mask now looks like 255.255.255.240 or 11111111.11111111.11111111.11110000 just like DVNT said.
In an 8 bit octet (byte):
1_____1___1____1___1___1__1__1 =
128___64__32___16__8___4__2__1
So 11110000 is the same as 128+64+32+16+0+0+0+0=240
In this configuration you have subnetted a class B into 4096 possible subnets with each subnet containing 16 hosts per subnet. 2 to the 12th=4096 and 2 to the 4th =16.
Let's say your class B is 172.16.0.0 then you're subnets would look like this:
_____Network Address____Host Range_____Broadcast
0)______172.16.0.0_______172.16.0.1-14___172.16..0.15
1)______172.16.0.16 _____172.16.0.17-30___172.16.0.31
2)______172.16.0.32______172.16.0.33-46___172.16.0.47
All would have Masks of 255.255.255.240
This would continue until
4096)_172.16.255.240___172.16.255.241-254__172.16.255.255

As you can see the first and last subnet are not useable because the first contains the network address of 172.16.0.0 and the last contains the broadcast address of 172.16.255.255. The same is true for each subnet, of the 16 host addresses only 14 are useable because the first host address is the network address for that subnet and the last host address is the broadcast address of that subnet. (these can become useable with some other networking techniques, but that is another lesson)

Clear as mud?
__________________
Will work for food!

Last edited by darrelld; 03-11-2004 at 08:47 PM.
darrelld is offline   Reply With Quote
Old 03-11-2004, 09:14 PM   #5 (permalink)
Registered User
 
skybolt_1's Avatar
 
Join Date: Jan 2002
Location: Lowell, MA, USA
Posts: 181
skybolt_1 is on a distinguished road
Send a message via AIM to skybolt_1
YES!!! Thanks a TON! you have no idea how confusing this stuff is to me.

Thanks to the both of you.

skybolt_1
__________________
skybolt_1
skybolt_1 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:02 PM.