Tip & How-To about Computers & Internet
An IP address is a specific address assigned to a computer across a network, allowing computers to communicate with one another. When IP Version 4 debuted, there were far less computers on the web. IP v4 only contains 4,294,967,296 possible addresses, including subnet number and broadcast addresses. Now, there are many more devices on the web and because of this, subnetting (as well as NAT) was developed as a way of maximizing usable addresses.
The Parts of an IP Address:
IP addresses contain 4 octets, 8 bits each. For example,
192.168.1.1 in binary is
A Subnet Mask tells a computer what part of the address declares a subnet so it knows when the destination address is on the same network or needs to be routed to a different one. For example,
The subnet mask 255.255.255.0 in binary is
when applied to 192.168.1.1 or
The first 24 bits are the subnet. So, all addresses in 192.168.1.xxx are part of the same subnet. When a computer with address 192.168.1.2 wants to communicate with a computer with address 192.168.1.3 The information does not need to be routed because the computers are on the same network. However when a computer with address 192.168.1.2 wants to communicate with microsoft.com or 184.108.40.206, the data must be sent to the default gateway to be routed.
The area that is not covered by the mask (in this case, the last octet) are used by the network. The lowest possible number of .00000000 or 192.168.1.0 is the subnet number and the highest possible number of .11111111 or 192.168.1.255 is the broadcast address. These particular addresses cannot be issued to devices on a network. This leaves 254 addresses on 192.168.1.0 that can be assigned to devices on that network. The default gateway (the router) can be assigned any address in that space. However, it is typically assigned the first address (192.168.1.1 in this case)
One more example:
Ip address of 10.101.75.150 with subnet mask of 255.255.252.0 or,
00001010.01100101.010010 00.00000000 or 10.101.72.0 is the lowest address (aka subnet number) and
00001010.01100101.010010 11.11111111 or 10.101.75.255 is the highest number (aka broadcast address)
Any number in between is assignable to a device on the network.
The Easy Way (without binary):
Always look or the odd octet (the one that isn't 255 or 0) in the subnet mask.
in this case is 252. Subtract that number from 255 and you have 3 (or as I like to call it the magic number)
find the same octet from the IP address:
in this case is 75. Find the multiples of the magic number that this octet is between. In this case, 75 is a multiple of 3, so the numbers we are looking for would be 75 and the previous multiple 73.
So far we have,
fill the X's for the low number with 0 and
fill the X's for the high number with 255 and you have,
10.101.73.0 (subnet number) and
10.101.75.255 (broadcast address)
All addresses in between are usable. As confusing as it all may sound, all takes is practice. "Practice makes perfect." Try making up your own IP address and Subnet mask and calculate the range to find the subnet number and broadcast address. In time you will have it down to a science.
Posted by Jonathan... on
Oct 26, 2013 | Computers & Internet
Jul 31, 2013 | Logitech QuickCam Computers & Internet
Feb 04, 2013 | Computers & Internet
Apr 01, 2011 | Sony Playstation 3 (PS3) Console
584 people viewed this tip
Usually answered in minutes!