networking, updated

IPv6

Internet Protocol version 6 replaces IPv4 with 128-bit addresses, a fixed 40-byte header and extension headers. It is often enabled and unmonitored on networks that think they run IPv4 only.

OSI layer
3 Network
Carried in
Ethernet / any link layer
Identified by
EtherType 0x86DD (IP protocol 41 when tunnelled in IPv4)
Specs
RFC 8200, RFC 4291, RFC 4861, RFC 4862
Wireshark filter
ipv6
Encrypted
no

Packet structure

IPv6 header40 bytes + variable

Select a field to see what it does.

RFC 8200. Always 40 bytes; options live in extension headers chained through Next Header.

Compared with IPv4: no header checksum, no fragmentation fields (moved to an extension header, and only the sender may fragment), no options (extension headers instead), and a header that is always 40 bytes.

How it works

Addresses are 128 bits, written in 8 groups of hex, with one run of zero groups shortened to :: (2001:db8::1).

PrefixMeaning
::1/128Loopback
::/128Unspecified (source during address setup)
fe80::/10Link-local, on every interface, never routed
fc00::/7 (in practice fd00::/8)Unique local addresses, the private ranges of IPv6
2000::/3Global unicast
ff00::/8Multicast; ff02::1 all nodes, ff02::2 all routers, ff02::1:ffXX:XXXX solicited-node
::ffff:0:0/96IPv4-mapped addresses
64:ff9b::/96NAT64
2001:db8::/32Documentation only

Address configuration: routers send Router Advertisements (ICMPv6 134). Hosts build an address from the advertised prefix themselves (SLAAC) and/or ask DHCPv6. Neighbor Discovery (ICMPv6 135/136) replaces ARP, and Duplicate Address Detection checks that the address is free.

Extension headers form a chain, each one naming the next with its Next Header field: IPv6 → Hop-by-Hop → Routing → Fragment → ESP → TCP. Routers only have to look at Hop-by-Hop.

In Wireshark

FilterShows
ipv6All IPv6
ipv6.addr == 2001:db8::10Traffic from or to an address
ipv6.src == fe80::/10Link-local senders
icmpv6.type == 134Router Advertisements (who is acting as router?)
icmpv6.type == 135 || icmpv6.type == 136Neighbor Discovery
ipv6.nxt == 44 or ipv6.fragmentFragmented packets
ipv6.routingRouting headers (type 0 is deprecated and dangerous)
dhcpv6DHCPv6
ip.proto == 41IPv6 tunnelled in IPv4 (6in4, 6to4)
udp.port == 3544Teredo tunnels

What normal looks like: link-local Neighbor Discovery and multicast chatter (mDNS, LLMNR, DHCPv6 solicits from Windows) even on “IPv4-only” networks. Router Advertisements should come from your routers only.

Security notes

References

§ home
~/knubertus/home/
1,1 Top