Go Back   PCMech Forums > Help & Discussion > Networking & Online Security

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-09-2003, 03:15 PM   #1
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
subnet question...

You have the IP address of 160.51.21.12. You plan for no more than 126 hosts on the subnet that includes this address. What subnet mask would you use?

A. 255.255.255.254
B. 255.255.255.128
C. 255.255.255.0
D. 255.255.255.248

I know that the answer is B, but dont completely understand. anyone car to explain?

TIA

^dan

Last edited by GSXdan; 08-09-2003 at 03:58 PM.
GSXdan is offline   Reply With Quote
Old 08-09-2003, 11:09 PM   #2
Member (9 bit)
 
Join Date: May 2002
Posts: 298
Assuming that you know your bitwise numbering system, the base of 2.

255.255.255.128 is equal to this in base 2
11111111.11111111.11111111.10000000

Looking at the mask in bitwise form, the 7 zeros on the right will represent the host address, the rest of the digits to the left represent the network address. So starting from 1, the computers can be assigned in bitwise, 00001, 00010, 00011, 00100, 00101, and so on until you finsihed playing with all 7 digits. The computer's address can't be all 0's or all 1's. So, first address will be 0000001, and last address would be 1111110. In base 10, that would be from 1 to 126, giving us 126 addresses assignable to host.
bonzai is offline   Reply With Quote
Old 08-09-2003, 11:17 PM   #3
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
gotcha, for some reason it wasnt clicking eariler. I was thinking, "2 to the what will give me >126" to find out how many bits i had to borrow. i dont know why i was thinking that when it was so obvious 10000000 = 128 - 2 = 126.

thanks
GSXdan is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -5. The time now is 01:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1