IPv4-IPv6-Vergleich
| Wert | IPv4 | IPv6 |
|---|---|---|
| Adressen | 4 Byte = 2³² | 16 Byte = 2¹²⁸ |
| Aufbau | Netzid + Hostid | 64 Bit Präfix + 64 Bit + Interface-Identifier |
| Schreibweise | 127.0.0.1 | 2001::a2e4:cc:aa:13c |
| ::ffff:127.0.0.1 (IPv4-mapped IPv6) | ||
| URL | http://127.0.0.1/ | http://[::1]/ |
| Loopback-Adr. | 127.0.0.1/8 | ::1/128 |
| unspezifiziert | 0.0.0.0 | ::/128 |
| Standard-Route | 0.0.0.0/0 | ::/0 |
| Private Adressen | 10.0.0.0/8 u.a. | Unique Local Unicast fc00::/7 |
| Link-Local Adr. | 169.254.0.0/16 Zconf. | fe80::/64 |
| Global Unicast | 2000::/3 | |
| Multicast Adr. | 224.0.0.0/4 | ff0X::/8, ff0X::1, ff0X::2, ff0X::f -> all (Nodes/Routers/UPnP) |
| Multicast Scope | X=1: interf. local scope, X=2: link-local, X=5: site, X=e:global | |
| Header | 20 Byte + x | 40 Byte |
| min. MTU | 576 | 1280 |
| Fragmentierung | ja, aber mögl. vermeiden | nein -> Path MTU Discovery (PMTUD) |
| Broadcast | ja | nein |
| MAC-Suche | ARP | NDP / ICMPv6 |
| MAC-Adresse | MAC-Broadcast | aus IPv6-Solicited-Adresse: (FF02::1:FF: + 24 Bit IPv6) |
| Protokoll | ICMP | ICMPv6 |
| Adressvergabe | manuell/DHCP/Zeroconf | Stateless oder Statefull (SLAAC / DHCPv6) |
| Konfiguration | manuell/DHCP | NDP: Router Solicitation/Advertisement |
| Ping | ping -4 | ping -6 |
| Anzeige IPs | ip -4 addr | ip -6 addr bzw. neigh |
| Anzeige Verbindungen | ss -4 | ss -6 |
| Anzeige MAC | ip -brief link show | ip -br l |
| Routingtabelle | ip route | ip -6 route |
Aufgaben Internetprotokoll Version 6
- Worin besteht die Notwendigkeit für IPv6?
- Würden die IPv6-Adressen ausreichen, wenn man jedem Stern im sichtbaren Universum eine Adresse vergibt?
- Wie ist das IPv6-Adressformat definiert?
- Wie wird eine URL mit IPv6 gebildet mit dedizierter Portnummer?
- Welche Adresstypen gibt es in IPv6?
- Was ist eine Link-Lokale Adresse (FE80::)?
- Wie kann man lange Adressen kürzer schreiben? z.B: 2001:0db8:2000:0000:02a0:c8ff:fef0:58ac
- Wie wird der Interface Identifier ermittelt (EUI-64) ?
- Was sind Privacy Extensions?
- Wie finde ich auf meinem Linux-Server heraus, welche Dienste auf IPv6-Verbindungen lauschen?
Wiederholung
- Wie groß ist der Header bei IPv4 und bei IPv6?
- Was sagt das Längenfeld in IPv4 und IPv6 aus?
- Welche minimale Paketgröße muss ein Router/Endknoten im Internet (IPv4/IPv6) unterstützen?
- Welche Unterschiede gibt es bezüglich Fragmentierung bei IPv4 und IPv6?
Multicast
- Adresspräfix für IPv4 / IPv6
- Multicast Scope in IPv6?
- Zutritt in Multicastgruppe: IGMP
- Test mit VLC und Wireshark mittels udp://239.0.0.1:1234
- Anzeige der Multicastadressen: netstat -g
Fakultativ
- Ermitteln Sie die freien IPv4-Blöcke in Europa Link
- Wo kommen die IPv6-Adressen her? Link IANA
- Grad der Nutzung von IPv6 bei Google IPv6-Nutzung
Stateless Auto Address Configuration (SLAAC)
ICMPv6
Neighbor Discovery Protocol (NDP)
- ersetzt ARP, RARP, IGMP
- Hauptaufgaben: Routererkennung, Netzwerkkonfiguration, Link-Layer-Adressen finden
- nutzt ICMPv6 Nachrichten (Anzeige und Aufforderung)
- Router Advertisement (RA)
- Router Solicitation (RS)
- Neighbor Advertisement (NA)
- Neighbor Solicitation (NS)
- Redirect
- Nutzung von Multicast-Adressen
- ff02::1 (all nodes)
- ff02::2 (all routers)
- Inhalt der RA
- Link prefixes
- Specific routes
- MTU
- Use SLAAC?
- mittels Erweiterung RDNSS können auch DNS-Informationen übergeben werden
Lösung
Autokonfiguration (Stateless)
- Host konfiguriert Link-Local Adresse mittels EUI-64-Identifier (aus MAC-Adr.)
- Duplicate Address Detection (DAD)
- Host macht NDP-Anfrage: Multicast ff02::2 (Router Solicitation)
- Router antwortet mit verfügbaren Präfixen/Lifetime/MTU (Router Advertisement)
- DNS-Konfiguration
- RDNSS-Option in Router Advertisement
- Infos zu DNS, NTP, Host- und Domainnamen mittels zusätzlichem stateless DHCPv6
IPv6 Solicited Node - Multicast-Adresse (RFC 4291): Layer 3: Präfix (104 Bit): FF02:0:0:0:0:1:FF + 24 Bit der Ziel-IPv6 Layer 2: Multicast-MAC = 33:33: + 32 Bit des Endes der Ziel-IPv6
Privacy Extensions (PEX, RFC 4941)
sysctl net.ipv6.conf.enp0s25.use_tempaddr (sollte 2 sein)
$ ip -6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 2003:f6:af26:8200:eb6b:123b:7f62:ede1/64 scope global temporary dynamic
valid_lft 7148sec preferred_lft 1183sec
inet6 2003:f6:af26:8200:df20:d06f:d7a3:a471/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 7148sec preferred_lft 1183sec
inet6 fe80::c0ef:3b31:208:5d44/64 scope link noprefixroute
valid_lft forever preferred_lft forever
noprefixroute Do not automatically create a route for the network prefix of the added address, and don’t search for one to delete when removing the ad‐ dress. Changing an address to add this flag will remove the automatically added prefix route, changing it to remove this flag will create the prefix route automatically.
mngtmpaddr (IPv6 only) make the kernel manage temporary addresses created from this one as template on behalf of Privacy Extensions (RFC3041). For this to become active, the use_tempaddr sysctl setting has to be set to a value greater than zero. The given address needs to have a prefix length of 64. This flag allows to use privacy extensions in a manually configured network, just like if stateless auto-configuration was active.
Stable privacy addresses RFC 7217
Mobilfunk (häufig nur IPv6 + eventuelle Umsetzung IPv6 zu IPv4 am Übergang zum Internet)
- DNS64+NAT64:
- 464-XLAT
DHCPv6 (Statefull)
Letzte Änderung: 20. January 2025 15:45