
The OR gate produces a 1 if at least one input is 1. Just for the record, here is the OR gate:.


Would you like to fill in the rest using the diagrams for reference? Here is part of a truth table for the AND gate:- x Have a look at the four possible outputs you can have with two inputs. The AND gate produces a 1 only if both inputs are 1. Logic gate are used in the construction of logic circuits and a logic gate accepts two incoming voltages and output a single voltage.įor the purpose of understanding IP address and subnet masks, the only logic operation you need to understand is the AND gate. Operations that can be performed are AND, OR, NOT, NAND, NOR and XOR - exclusive OR.īoolean logic is actually based on logic gates. The value of the output is dependent on which Boolean operation you perform on the two inputs. Imagine two inputs, both of which can be either 0 or 1.The state of the two inputs are compared and an output is produced, the value of which can also be either 0 or 1. Just like when you add two numbers together to make a combined single number. To understand how an IP address can be split into a network part and a host part, you have to understand the concept of Boolean logic and subnet masks.īoolean logic is based on binary logic, where you start with two inputs and end up with one output. While the host part of the address is 113.124 To illustrate this, consider the following IP address. Every network must have an address just like a host on that network must have an address. When an IP address is assigned to a computer, some of the bits on the left are used to designate the network address while the remaining bits on the right designate the actual host on that network. Rewrite the following IP numbers in binary Rewrite the following IP numbers in decimalĢ. There are different groups of public IP addresses too, but that's for another time.ġ. Two examples of private IP addresses within the range given above are shown below:. Public IP addresses are used on the Internet whereas private IP addresses may be used on LANs.Īny IP address within the following two address ranges are classified as private IP addresses. Also there are public and private IP addresses. Without going into too many details, there are different classes of IP addresses available. This can be rewritten in decimal by converting each separate group to its decimal equivalent. This is called the dotted-decimal notation.
#Ip and subnet mask table 32 bit#
IP addresses are 32 bit numbers, arranged in 4 groups of 8 each. On a LAN, it is the responsibility of the network administrators to assign IP addresses to devices on their network. This is the opposite of a dynamic IP address and the same address will always be yours. If it is necessary for you to have the same IP address every time you connect to the internet, you may be assigned a static IP address. This number can be different each time you connect, so the process is called " dynamically allocating" an IP address. If you have a dial-up or similar connection to the Internet, you are automatically assigned an IP address by your ISP. IP addresses are 32 bit numbers assigned to computers, used for communication over the Internet.

These notes guide you through understanding IP addresses and subnet masks.
