|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
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. |
|
|
|
|
|
#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. |
|
|
|
|
|
#3 |
|
Member (10 bit)
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|