> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/network/ip-addressing-and-nat/ipv4.md).

# IPv4

IPv4 개요

* 4개의 옥텟으로 구성된다. (1옥텟 = 8bit = 256개의 경우의 수)
* 총 32bit로 구성된 데이터
* 표현 가능한 주소 범위: 0.0.0.0 \~ 255.255.255.255
* 가장 앞자리는 IP class를 표현
* 내부 사설망 IP는 관리자가 임의로 IP를 할당해 사용 가능
  * 단, 127.0.0.1은 사용 불가
* 외부 통신을 위해 외부 IP로 변환하는 NAT 서버를 사용

{% hint style="info" %}
"127.0.0.1"은 루프백(loopback) 주소로, 호스트 자체를 가리키므로 사설망 할당용으로 사용할 수 없다.
{% endhint %}

<table data-view="cards"><thead><tr><th>관련 문서</th><th data-card-target data-type="content-ref">링크</th></tr></thead><tbody><tr><td>IP Class</td><td><a href="/pages/57b4bf894f08ca16a7a3fe46f7250369cd21add6">/pages/57b4bf894f08ca16a7a3fe46f7250369cd21add6</a></td></tr><tr><td>공인IP와 사설IP</td><td><a href="/pages/a36c4ac2cd590fd789ef0f2c743416f32cf8908b">/pages/a36c4ac2cd590fd789ef0f2c743416f32cf8908b</a></td></tr><tr><td>네트워크 주소</td><td><a href="/pages/bd2abe4a72696dd52fd8b0bb3e8b5343086885f2">/pages/bd2abe4a72696dd52fd8b0bb3e8b5343086885f2</a></td></tr><tr><td>브로드캐스트 주소</td><td><a href="/pages/a844ee081e0a693acd9e74ef0854ffff9bc3e2a3">/pages/a844ee081e0a693acd9e74ef0854ffff9bc3e2a3</a></td></tr></tbody></table>


---

# 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, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/network/ip-addressing-and-nat/ipv4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
