> For the complete documentation index, see [llms.txt](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gchandra.gitbook.io/big-data-and-tools-with-nosql/industry-trends/good-reads/ip-and-subnet.md).

# IP & SUBNET

**Octet:** An octet in networking typically refers to a group of eight bits.

Each octet ranges from 0 to 255, representing a possible 256 values.

In the context of IP addresses, which are commonly represented in dotted-decimal notation&#x20;

(like 192.168.1.1), each number between the dots is an octet.

For example, in the IP address `192.168.1.1`:

* `192` is the first octet
* `168` is the second octet
* `1` is the third octet
* `1` is the fourth octet

<figure><img src="/files/O4a7trNrA0se3wmca1Q2" alt=""><figcaption></figcaption></figure>

**Network IP:** A Network IP (Internet Protocol) address is a logical address assigned to a network or subnet, rather than an individual device or host.

**Broadcast IP**: The broadcast IP address is a special IP address that is used to send data to all devices on a network subnet simultaneously. When a packet is sent to the broadcast IP address, it is received by every device on the subnet, regardless of their individual IP addresses.

Task: You need to configure a network with 100 IP addresses and split it into 4 smaller networks for 4 differnet projects your company is working on.

* Network: `192.168.1.0/24`
* Usable IP Range: `192.168.1.1` to `192.168.1.254`
* Broadcast: `192.168.1.255`

**Subnet Details:**

* **Subnet 1:**
  * Network ID: `192.168.1.0/26`
  * Usable IP Range: `192.168.1.1` to `192.168.1.62`
  * Broadcast Address: `192.168.1.63`
* **Subnet 2:**
  * Network ID: `192.168.1.64/26`
  * Usable IP Range: `192.168.1.65` to `192.168.1.126`
  * Broadcast Address: `192.168.1.127`
* **Subnet 3:**
  * Network ID: `192.168.1.128/26`
  * Usable IP Range: `192.168.1.129` to `192.168.1.190`
  * Broadcast Address: `192.168.1.191`
* **Subnet 4:**
  * Network ID: `192.168.1.192/26`
  * Usable IP Range: `192.168.1.193` to `192.168.1.254`
  * Broadcast Address: `192.168.1.255`

**CIDR** stands for **Classlesss Inter-Domain Routing**.&#x20;

It enables network administrators to group blocks of IP addresses into single routing networks. CIDR accomplishes the same task as traditional subnet masking.

\
CIDR Converstion Table

<figure><img src="/files/4Wmpidp2oNz3Tvtp2UOn" alt=""><figcaption><p>Src: <a href="https://salepeaket.live/product_details/50919977.html">https://salepeaket.live/product_details/50919977.html</a></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://gchandra.gitbook.io/big-data-and-tools-with-nosql/industry-trends/good-reads/ip-and-subnet.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.
