Lab 5 1 - morgan-hanrahan/Tech-Journal GitHub Wiki

Summary

In this lab, we worked with converting IP addresses and subnet masks into binary, identified network and host IDs, and translated them using slash notation.

Helpful Info

To convert a single octet within an IP address to binary, take the integer and divide it by 2 and notice whether it has a remainder or not. Continue dividing the quotient by 2 until you get 0. If there's a remainder than it's a 1 and if there's no remainder its a 0. Write it in reverse order when done.

To find the network ID within the IP address, write out the IP address and the subnet mask in binary. Then line them up. If both bits are 1, the resulting bit will be set to 1. If either of the bits are 0, then the resulting bit will be set to 0. Once you have your binary number just convert them back to integers and that's your Network ID.

To find the Host ID, once you've found the network ID it's the only numbers that changed from the IP to the network that are the host ID. For example, if you have an IP address of 153.104.27.5, with a subnet mask of 255.255.255.0, the network ID is 153.104.27.0. Therefore, the Host ID will be 5.

To create a subnet ID within an IP address, bits need to come from the Host ID.