Question:
ip addresss with hosts, help!!?
longstar2
2011-12-09 19:58:37 UTC
strating with a block of 192.168.1.0/24
1. 60 hosts
2.10 hosts
3.25 hosts
4.7 hosts

can you please show work
Seven answers:
?
2011-12-09 20:19:38 UTC
Remember, the computer sees an IP address in binary. You can quickly convert a number to binary in windows by pulling up a calculator, clicking on 'scientific', entering the number, and clicking on the radio button. 192.168.1.0 looks like this-



11000000.10101000.00000001.00000000



The /24 tells us what our subnet mask looks like. In this case, we have 24 1's followed by 8 0's (for a total of 32 bits); specifically:



11111111.11111111.11111111.00000000

(in decimal, 255.255.255.0)





The subnet mask is used to compare two IP's to find out if they're in the same local area network. Line up the two IP's and the subnet mask. If the IP's are different on any bit where the subnet mask is a 1, they are on different networks. If the IP's are the same for all bits where the subnet mask is a 1, they're on the same network. In this case, with our current subnet mask the host portion (all the network bits are the same, and only the host bits are different) gives us 8 bits of freedom for a total of 2^8 = 256 combinations. In other words, this subnet has all addresses from 192.168.1.0 through 192.168.1.255 as local IP's, which is to say they are different hosts on the same network. The address with all 0's for the host portion is reserved and will always be the network address ( in this case 192.168.1.0) and the address with all 1's for the host portion will always be the broadcast IP (in this case 192.168.1.255 ). I'm not sure how you're supposed to be counting hosts, but I would exclude the network and broadcast (and possibly the gateway IP) from my count of hosts, and say that 192.168.1.0/24 has 253 host (usable for computers or other devices) addresses. I get this number by taking the total combinations available (in this case 256) and subtracting 3 IP's, which represent the network, broadcast, and gateway IP's.



You can move move the subnet mask left or right to get more or less host addresses. If we use 192.168.1.0/25 our subnet mask now looks like

11111111.11111111.11111111.10000000

(in decimal, 255.255.255.128)

Notice that we have 25 1's followed by 7 0's for a total of 32 bits.

That gives us 2^7 or 128 addresses to use on the host side. All the IP's from 192.168.1.0 - 192.168.1.127 are in the host portion. That first address is the network IP, the last one is the broadcast, and everything in between is usable for devices. I personally only deal with networks on the internet so I'll need a gateway IP in there somewhere and that leaves me with 128-3 = 125 possible IP's for hosts.



The next subnet will be a /26 which looks like this-

11111111.11111111.11111111.11000000

or in decimal, 255.255.255.192



Every time our subnet moves to the right, that cuts the host IP space in half.



/26 192.168.1.000 to 192.168.1.63, 64 total IP's, 61 available for devices

/27 192.168.1.000 to 192.168.1.31, 32 total IP's, 29 available for devices

/28 192.168.1.000 to 192.168.1.15, 16 total IP's, 13 available for devices

/29 192.168.1.000 to 192.168.1.7, 8 total IP's, 5 available for devices

/30 192.168.1.000 to 192.168.1.3, 4 total IP's, 1 available for devices



Notice that a /31 would have 2 total IP's, specifically the network IP and the broadcast IP, leaving no IP's available for hosts to use.



This stuff is important to know. If you put in the wrong subnet mask, if your block is too small, your gateway will try to route to some of your local IP's as though they're on the internet. If your block is too large, your gateway will try to route to some public IP's as though they're on the LAN. In either case, the traffic isn't going to get there. Sad days all around.
2014-05-25 15:44:00 UTC
IP Address is a Unique term of Computer Networking System which is very by user Computer Networking System. It helps to us by giving all important data of a specific Computer.
2011-12-09 22:18:17 UTC
M Wiley gave an excellent answer. However,

My networking text for Net + gives slightly different numbers

with the 255.255.255.192 mask you only get 2 subnets of 62 hosts

The formula for calculating is 2^n -2 = Y where n is the number of bits in the mask of the last octet. and Y is the number of subnets that results.

for the explanation he gave

192 gives you 2 subnets of 62 hosts

224 gives 6 subnets of 30

240 gives 14 subnets of 14

248 gives 30 subnets of 6

252 gives 62 subnets of 2

the formula automaticly deducts the 2 for the net Id and brocast
2014-06-05 06:43:34 UTC
you need domin & Hosting?

HostHub has been a world-leading provider of web hosting service. We



offer Shared, Reseller, WHM Reseller and VPS packages for both



beginners and professionals alike. Each of our shared Web Hosting



plans includes 24/7/365 support, a 99.9% uptime guarantee, and a 30-



day money-back guarantee. If you would like to learn more, please



visit our company page -

https://hosthub.biz

https://hosthub.biz/shared.html

https://hosthub.biz/reseller.html
Techno Sabbir
2014-05-08 23:29:04 UTC
Please make me clear what are you asking.
Tebogo
2014-07-29 06:27:34 UTC
how od hosts communicate on a physical ring topology?
Dale Hubbard
2011-12-09 20:05:40 UTC
Please clarify what you're asking. 192.168.xxx.xxx will be the internal address range of your router, but I'm guessing you know that?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...