# L3\_IPv6

* [Basic](#basic)
* [Compare with v4](#compare-with-v4)
  * [Types & Scopes](#types--scopes)
* [LAN](#lan)
* [NPTv6](#nptv6)
* [NAT64](#nat64)
* [Tools](#tools)
  * [Linux](#linux)
* [Firewall](#firewall)
* [Free IPv6 Tunnel Broker](#free-ipv6-tunnel-broker)

## Basic

<https://en.wikipedia.org/wiki/IPv6\\_address#Representation>

* 16 bits \* 8 groups = 128 bits
* prefer lower case letters
* https\://\[IPv6\_addr]:PORT/
* Link Local - fe80::/10.../64 : last 24 bits are MAC address
* [Layer 3](https://github.com/fzinfz/book/blob/master/nw/L3/README.md#ipv6-packet)

## Compare with v4

<https://www.ibm.com/docs/en/i/7.2?topic=6-comparison-ipv4-ipv6>

### Types & Scopes

* unicast: link-local and global
* multicast: 14 scopes
* anycast

## LAN

```
::/128
::1/128
::ffff:0:0:0/96
64:ff9b::/96
100::/64
2001::/32
2001:20::/28
2001:db8::/32
2002::/16
fc00::/7 | IP Range: fc00:: - fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
fe80::/10
ff00::/8
```

## NPTv6

Network Prefix Translation： <https://en.wikipedia.org/wiki/IPv6-to-IPv6\\_Network\\_Prefix\\_Translation>

## NAT64

<https://en.wikipedia.org/wiki/NAT64>

## Tools

### Linux

```
tcpdump -i any ip6
```

<https://www.kali.org/tools/ipv6toolkit/>

```
apt install ipv6toolkit
```

## Firewall

ChinaNet Modem: 安全-防火墙：IPV6 SESSION

## Free IPv6 Tunnel Broker

<https://tunnelbroker.net/>


---

# 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://book.ferro.pro/nw/l3_ipv6.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.
