# Lab 5.1: IP/Subnet Mask

### Summary

During this lab, I learned how to turn IP's and Subnet Masks into binary and understand the slash notation. As well as Idenity the Network ID and the host ID. To convert a single octet within an IP address you binary you first get the binary of the number you want then add 0's till you get to an 8-bit number. The network ID is the first 24-bits of the IP then the last 8-bits are the host ID. You can create a subnet ID by taking the host ID bits and turning it into the subnet ID by adding it to the network ID.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://paul-gleason.gitbook.io/net-150-network-fundamentals/labs/lab-5.1-ip-subnet-mask.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
