ok, I get how 192=bits, but how does 24=8bits ? do you just add enough zeros to make it happen because an ip address must have 32 bits?
An octet must have 8 bits, and an IP address must have 32 (or 4 groups of octets, or 8-bit groups.)
00011000 binary = 0 (128's) + 0 (64's) + 0 (32's) + 1(16's) + 1 (8's) + 0 (4's) + 0 (2's) + 0 (1's)
So, 00011000 binary = 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 (binary) = 24 decimal. "24" is the value in decimal, in the binary octet "00011000". But there must be 32 bits in an IP address.
So the IP address 192.168.1.24 would look like:
11000000.10101000.00000001.00011000
You are starting to get it ! Yes, you add zeros in to make up the 8-bit octet. And remember, you need 4 octets to make a 32-bit IP address.
Keep at it, you are getting it I think.
I aprreciate your help man, I am just wondering how 24 = 8 bits? do you just add zeros to make it 8 bits because each ip address must be 32 bits long? Hey do you know much about subnetting because I am also lost on that.
Subnetting means to take a network, and break it down to more manageable smaller networks, or "subnets". Example:
A "Class C" address of 192.168.1.x (the "x" here represents a number between 1 and 254). *NOTE : I will explain the range of 1 through 254 in a moment...
Take the address above, 192.168.1.x You can assign a group of computers an address between 192.168.1.1 and 192.168.1.254, and anywhere in between, such as 192.168.1.128. To "subnet" it means to give each of your 4 computers in my example an address an address that is in that range. A "subnet mask" means something a little more advanced, but I will let you digest this part for now, I don't want you to get too confused right away.
Simply put, a subnet mask is a special series of 1's and 0's, when combined with an IP address, tells other computers on a newtork or across the Internet what kind of network that a particular computer belongs to. This is how routers, gateways, etc. pass IP addresses back and forth. They need to know how the network is designed to pass information on.
I will help you out all I can, and I will check back to see how you are doing.
Keep up the good work !
A "Class C" address of 192.168.1.x (the "x" here represents a number between 1 and 254). *NOTE : I will explain the range of 1 through 254 in a moment...
*Note: You can't assign an address of 192.168.1.0 or 192.168.1.255 to a class C subnet because they are reserved for computers to broadcast. And routers or other devices such as a gateway will usually be set for an IP address containing a zero in the last octet, for example :
192.168.1.0 is usually a router, or it could be 192.168.0.0. Point is, the "0" in the last octet is usually seen by people and computers as a router, or a gateway. If a computer on a network needed to broadcast something, such as an ARP broadcast, it would send packets (groups of data that a computer sends out and receives) with the destination IP address of 192.168.1.255, which tells all the computers on that network that it is broadcasting to
all the computers on that network, as if to say "listen up all you computers, I got somethin' to say !" That's why it is a reserved address, and that is why you can't use it. It is to remain unused except by computers that broadcast from time to time.