> For the complete documentation index, see [llms.txt](https://book.ferro.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.ferro.pro/nw/l3_ipv6.md).

# 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/>
