BASTIX1 NET · IP REFERENCE
00 Interaktive Rechner Interactive Calculators client-side · offline

IPv4 · CIDR

IP-Adresse und Präfix eingeben — alle Netz-Eckdaten werden berechnet.

Enter an IP address and prefix — all network parameters are computed.

IPv6 · NormalisiererNormalizer

Adresse komprimieren (RFC 5952), vollständig expandieren und Typ bestimmen.

Compress (RFC 5952), fully expand and classify any address.

IPv4 · Subnetz-AufteilungSubnet split

Ein Netz in mehrere gleich große Subnetze aufteilen — alle Teilnetze werden aufgelistet.

Split a network into equal-sized subnets — every subnet is listed.

IPv4 · IP-im-Netz-CheckIP-in-subnet check

Prüfen, ob eine IP-Adresse zu einem Netz gehört (Netz im CIDR-Format, z. B. 192.168.1.0/24).

Check whether an IP address belongs to a network (CIDR notation, e.g. 192.168.1.0/24).

IPv6 · Präfix & SubnetzePrefix & subnets

Netzpräfix bestimmen und zählen, wie viele /64-Netze ein Präfix enthält.

Derive the network prefix and count how many /64 networks a prefix contains.

IPv6 · EUI-64 aus MACEUI-64 from MAC

Aus einer MAC-Adresse die Interface-ID und die Link-Local-Adresse (fe80::) erzeugen.

Build the interface ID and link-local address (fe80::) from a MAC address.

01 Grundlagen Fundamentals basics

Eine IP-Adresse identifiziert eine Netzwerkschnittstelle eindeutig und ermöglicht die Zustellung von Paketen über das Internet Protocol. Jede Adresse besteht aus einem Netzanteil (welches Netz) und einem Hostanteil (welches Gerät im Netz). Die Grenze zwischen beiden legt die Subnetzmaske bzw. das CIDR-Präfix fest.

An IP address uniquely identifies a network interface and enables packet delivery over the Internet Protocol. Every address consists of a network part (which network) and a host part (which device on the network). The boundary between the two is defined by the subnet mask or CIDR prefix.

MerkmalProperty IPv4 IPv6
LängeLength32 Bit128 Bit
SchreibweiseNotationDezimal, punktgetrenntDotted decimalHexadezimal, doppelpunktgetrenntColon-separated hex
BeispielExample192.168.1.102001:db8::1
AdressraumAddress space~4,3 × 10⁹ (2³²)~3,4 × 10³⁸ (2¹²⁸)
Broadcastjayesnein (nur Multicast)no (multicast only)
AdresszuweisungConfigurationmanuell / DHCPmanual / DHCPmanuell / DHCPv6 / SLAACmanual / DHCPv6 / SLAAC
Standard-RFCCore RFCRFC 791RFC 8200
Kernidee: Adresse AND Maske = Netzadresse. Zwei Hosts sind genau dann „direkt erreichbar" (gleiches Subnetz), wenn ihre Netzadressen identisch sind — sonst muss über das Default-Gateway geroutet werden. Core idea: address AND mask = network address. Two hosts are "directly reachable" (same subnet) exactly when their network addresses match — otherwise traffic is routed via the default gateway.
02 IPv4 RFC 791

Eine IPv4-Adresse besteht aus 32 Bit, gegliedert in vier Oktette zu je 8 Bit, dezimal geschrieben und durch Punkte getrennt — jedes Oktett liegt im Bereich 0–255. Beispiel: 192.168.1.10 entspricht binär 11000000.10101000.00000001.00001010.

An IPv4 address is 32 bits, split into four 8-bit octets written in decimal and separated by dots — each octet ranges 0–255. Example: 192.168.1.10 equals binary 11000000.10101000.00000001.00001010.

Historische Adressklassen

Historical address classes

Vor CIDR wurde der Adressraum in feste Klassen unterteilt. Heute nur noch von historischer/begrifflicher Bedeutung — moderne Netze sind klassenlos.

Before CIDR the address space was divided into fixed classes. Today this is only of historical/terminological relevance — modern networks are classless.

KlasseClass 1. Oktett Standardmaske ZweckPurpose
A0–127/8 · 255.0.0.0große Netzelarge networks
B128–191/16 · 255.255.0.0mittlere Netzemedium networks
C192–223/24 · 255.255.255.0kleine Netzesmall networks
D224–239Multicast
E240–255reserviertreserved
Netz- & Broadcast-Adresse: In jedem IPv4-Subnetz sind zwei Adressen reserviert — die Netzadresse (alle Host-Bits 0) und die Broadcast-Adresse (alle Host-Bits 1). Sie sind nicht an Hosts vergeben. Daher: nutzbare Hosts = 2^(Host-Bits) − 2. Network & broadcast address: Every IPv4 subnet reserves two addresses — the network address (all host bits 0) and the broadcast address (all host bits 1). They are not assigned to hosts. Hence: usable hosts = 2^(host bits) − 2.
03 IPv6 RFC 8200 · 4291

Eine IPv6-Adresse besteht aus 128 Bit, geschrieben als acht Gruppen zu je 16 Bit (4 Hex-Ziffern), getrennt durch Doppelpunkte. Zwei Kürzungsregeln (RFC 5952):

An IPv6 address is 128 bits, written as eight 16-bit groups (4 hex digits each) separated by colons. Two shortening rules (RFC 5952):

  • Führende Nullen je Gruppe werden weggelassen: 0db8db8.Leading zeros in each group are dropped: 0db8db8.
  • Eine einzige zusammenhängende Folge von Null-Gruppen wird durch :: ersetzt (nur einmal pro Adresse).One single run of consecutive zero groups is replaced by :: (only once per address).

Beispiel: 2001:0db8:0000:0000:0000:ff00:0042:83292001:db8::ff00:42:8329.

Example: 2001:0db8:0000:0000:0000:ff00:0042:83292001:db8::ff00:42:8329.

Aufbau & Adresstypen

Structure & address types

Üblich ist ein /64-Präfix: die ersten 64 Bit bilden das Netz-Präfix, die letzten 64 Bit die Interface-ID (z. B. via SLAAC/EUI-64, RFC 4862). IPv6 kennt keinen Broadcast — seine Funktion übernimmt Multicast.

A /64 prefix is standard: the first 64 bits form the network prefix, the last 64 bits the interface ID (e.g. via SLAAC/EUI-64, RFC 4862). IPv6 has no broadcast — multicast takes over its role.

BereichRange TypType BeschreibungDescription
::1/128Loopbackeigener Host (= 127.0.0.1)local host (= 127.0.0.1)
::/128unspez.unspecified„keine Adresse""no address"
fe80::/10Link-Localnur im lokalen Link gültigvalid only on the local link
fc00::/7ULAprivat (in der Praxis fd00::/8) — RFC 4193private (in practice fd00::/8) — RFC 4193
2000::/3Global Unicastglobal routbarglobally routable
ff00::/8Multicasteine Gruppe von Empfängerna group of receivers
2001:db8::/32DokuDocsBeispiele/Doku — RFC 3849examples/docs — RFC 3849
04 Subnetzmaske Subnet Mask netmask

Die Subnetzmaske trennt Netz- von Hostanteil. In Binärdarstellung ist sie eine ununterbrochene Folge von 1-Bits (Netz), gefolgt von 0-Bits (Host). Die Anzahl der 1-Bits ist die Präfixlänge (CIDR), z. B. /24 = 255.255.255.0.

The subnet mask separates the network part from the host part. In binary it is an unbroken run of 1 bits (network) followed by 0 bits (host). The number of 1 bits is the prefix length (CIDR), e.g. /24 = 255.255.255.0.

Berechnung der Netzadresse

Computing the network address

Bitweises UND zwischen Adresse und Maske:

Bitwise AND between address and mask:

AdresseAddress192.168.1.1011000000.10101000.00000001.00001010
Maske /24Mask /24255.255.255.011111111.11111111.11111111.00000000
Netz (AND)192.168.1.011000000.10101000.00000001.00000000
Broadcast192.168.1.25511000000.10101000.00000001.11111111
Wildcard-Maske: das bitweise Komplement der Subnetzmaske (z. B. /240.0.0.255). Wird in ACLs und im OSPF-Routing zur Angabe von Adressbereichen verwendet. Wildcard mask: the bitwise complement of the subnet mask (e.g. /240.0.0.255). Used in ACLs and OSPF routing to express address ranges.
05 CIDR RFC 4632

CIDR (Classless Inter-Domain Routing) ersetzt das starre Klassen-Schema durch eine variable Präfixlänge in der Notation Adresse/Präfix, z. B. 10.0.0.0/12. Vorteile:

CIDR (Classless Inter-Domain Routing) replaces the rigid class scheme with a variable prefix length using the notation address/prefix, e.g. 10.0.0.0/12. Benefits:

  • Effizienz: Netze werden exakt nach Bedarf zugeschnitten — kein Verschwenden ganzer Klassen.Efficiency: networks are sized exactly to demand — no wasting entire classes.
  • Aggregation: viele Routen lassen sich zu einer zusammenfassen (Supernetting) → kleinere Routing-Tabellen.Aggregation: many routes can be summarized into one (supernetting) → smaller routing tables.
  • VLSM (Variable Length Subnet Masking): innerhalb eines Netzes dürfen unterschiedlich große Subnetze nebeneinander bestehen.VLSM (Variable Length Subnet Masking): differently sized subnets may coexist within one network.
Merkregel: Jedes zusätzliche Präfix-Bit halbiert die Netzgröße und verdoppelt die Anzahl der Subnetze. /24 → zwei /25 → vier /26 Rule of thumb: each extra prefix bit halves the network size and doubles the number of subnets. /24 → two /25 → four /26
06 Subnetting RFC 950

Subnetting teilt ein Netz in mehrere kleinere Subnetze auf, indem Bits aus dem Hostanteil zum Netzanteil verschoben werden (Präfix wird länger). Das verbessert Segmentierung, Sicherheit und Broadcast-Eindämmung.

Subnetting divides a network into several smaller subnets by borrowing bits from the host part into the network part (longer prefix). This improves segmentation, security and broadcast containment.

Formeln

Formulas

  • Subnetze aus n geliehenen Bits: 2ⁿSubnets from n borrowed bits: 2ⁿ
  • Adressen je Subnetz: 2^(32 − Präfix)Addresses per subnet: 2^(32 − prefix)
  • Nutzbare Hosts: 2^(32 − Präfix) − 2Usable hosts: 2^(32 − prefix) − 2

Beispiel: 192.168.1.0/24 in vier /26 aufteilen

Example: split 192.168.1.0/24 into four /26

Zwei zusätzliche Bits (2² = 4 Subnetze), je 64 Adressen / 62 nutzbare Hosts:

Two extra bits (2² = 4 subnets), each 64 addresses / 62 usable hosts:

Subnetz Netzadresse Erster Host Letzter Host Broadcast
1192.168.1.0/26.1.62.63
2192.168.1.64/26.65.126.127
3192.168.1.128/26.129.190.191
4192.168.1.192/26.193.254.255
Tipp: Die Schrittweite zwischen Subnetzen heißt Blockgröße = 256 − Maskenoktett. Bei /26 (Maske 192) also 256 − 192 = 64 → Netze bei .0, .64, .128, .192. Tip: The step between subnets is the block size = 256 − mask octet. For /26 (mask 192) that is 256 − 192 = 64 → networks at .0, .64, .128, .192.
07 Supernetting route aggregation

Supernetting (Route Aggregation / Summarization) ist die Umkehrung des Subnettings: mehrere kleinere Netze werden zu einem größeren zusammengefasst, indem das Präfix verkürzt wird. Ergebnis: kürzere Routing-Tabellen und weniger Routing-Updates.

Supernetting (route aggregation / summarization) is the inverse of subnetting: several smaller networks are merged into one larger network by shortening the prefix. Result: shorter routing tables and fewer routing updates.

Voraussetzungen für die Zusammenfassung

Requirements for aggregation

  • Zusammenhängend: die Netze müssen lückenlos aufeinanderfolgen.Contiguous: the networks must follow each other without gaps.
  • Ausgerichtet: das erste Netz muss auf der Grenze des neuen, größeren Präfixes beginnen (Potenz von 2).Aligned: the first network must start on the boundary of the new, larger prefix (power of 2).

Beispiel: vier /24 zu einem /22

Example: four /24 into one /22

EinzelnetzeIndividual networksBinär (3. Oktett)
192.168.4.0/2400000100
192.168.5.0/2400000101
192.168.6.0/2400000110
192.168.7.0/2400000111
→ 192.168.4.0/22000001xx

Die ersten 22 Bit sind bei allen vier Netzen identisch — nur die letzten zwei Bit des dritten Oktetts variieren. Sie werden zu 192.168.4.0/22 zusammengefasst (deckt 192.168.4.0 – 192.168.7.255 ab).

The first 22 bits are identical across all four networks — only the last two bits of the third octet vary. They aggregate to 192.168.4.0/22 (covering 192.168.4.0 – 192.168.7.255).

Gegenbeispiel: 192.168.5.0/24 bis 192.168.6.0/24 lassen sich nicht sauber zu einem /23 zusammenfassen — der Block beginnt nicht auf einer /23-Grenze (gerade Zahl). Gültig wäre 192.168.4.0/23 (4+5) und 192.168.6.0/23 (6+7). Counter-example: 192.168.5.0/24 through 192.168.6.0/24 can not be cleanly aggregated into a /23 — the block does not start on a /23 boundary (even number). Valid would be 192.168.4.0/23 (4+5) and 192.168.6.0/23 (6+7).
08 Private & reservierte Adressen Private & reserved addresses RFC 1918 · 6890

Private Adressen (RFC 1918) sind im öffentlichen Internet nicht routbar und für interne Netze gedacht. Der Übergang ins Internet erfolgt per NAT. Daneben gibt es weitere Sonderbereiche:

Private addresses (RFC 1918) are not routable on the public Internet and are intended for internal networks. The transition to the Internet is done via NAT. There are further special-use ranges:

IPv4

CIDR Bereich ZweckPurpose RFC
10.0.0.0/810.0.0.0 – 10.255.255.255privat (16,7 Mio.)private (16.7 M)1918
172.16.0.0/12172.16.0.0 – 172.31.255.255privat (1 Mio.)private (1 M)1918
192.168.0.0/16192.168.0.0 – 192.168.255.255privat (65 536)private (65,536)1918
100.64.0.0/10100.64.0.0 – 100.127.255.255CGNAT (Carrier-Grade NAT)6598
169.254.0.0/16169.254.0.0 – 169.254.255.255Link-Local (APIPA)link-local (APIPA)3927
127.0.0.0/8127.0.0.0 – 127.255.255.255Loopback1122
192.0.2.0/24TEST-NET-1Dokumentationdocumentation5737
224.0.0.0/4224–239.x.x.xMulticast5771
240.0.0.0/4240–255.x.x.xreserviert (Klasse E)reserved (class E)1112
255.255.255.255Limited Broadcastlimited broadcast919

IPv6

CIDR ZweckPurpose RFC
fc00::/7Unique Local (privat, fd00::/8 in der Praxis)Unique Local (private, fd00::/8 in practice)4193
fe80::/10Link-Local4291
::1/128Loopback4291
2001:db8::/32Dokumentationdocumentation3849
ff00::/8Multicast4291
64:ff9b::/96NAT646052
09 CIDR-Spickzettel CIDR Cheat Sheet IPv4
Präfix Subnetzmaske Wildcard # Adressen # nutzbare Hosts
/8255.0.0.00.255.255.25516 777 21616 777 214
/16255.255.0.00.0.255.25565 53665 534
/22255.255.252.00.0.3.2551 0241 022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122 *
/32255.255.255.2550.0.0.011 *
* Sonderfälle: /31 hat keine Netz-/Broadcast-Reservierung und liefert 2 nutzbare Adressen für Punkt-zu-Punkt-Verbindungen (RFC 3021). /32 bezeichnet eine einzelne Host-Route. * Special cases: /31 has no network/broadcast reservation and yields 2 usable addresses for point-to-point links (RFC 3021). /32 denotes a single host route.
10 Wichtige Fragen (Systemadministration) Key Questions (System Administration) FAQ
Wie viele nutzbare Hosts hat ein /26?How many usable hosts does a /26 have?

2^(32−26) − 2 = 2⁶ − 2 = 64 − 2 = 62. Die zwei abgezogenen Adressen sind Netz- und Broadcast-Adresse.

2^(32−26) − 2 = 2⁶ − 2 = 64 − 2 = 62. The two subtracted addresses are the network and broadcast address.

Was ist der Unterschied zwischen Subnetting und Supernetting?What is the difference between subnetting and supernetting?

Subnetting verlängert das Präfix und teilt ein Netz in kleinere Netze. Supernetting verkürzt das Präfix und fasst mehrere Netze zu einem größeren zusammen (Route Aggregation). Subnetting dient der Segmentierung, Supernetting der Routen-Reduktion.

Subnetting lengthens the prefix and splits a network into smaller ones. Supernetting shortens the prefix and merges several networks into a larger one (route aggregation). Subnetting is for segmentation, supernetting for route reduction.

Warum ist .0 die Netz- und .255 die Broadcast-Adresse?Why is .0 the network and .255 the broadcast address?

In einem /24 bilden die letzten 8 Bit den Hostanteil. Sind alle Host-Bits 0, ergibt das die Netzadresse (z. B. .0); sind alle 1, die Broadcast-Adresse (z. B. .255). Bei anderen Präfixen verschieben sich diese Werte entsprechend der Blockgröße.

In a /24 the last 8 bits form the host part. All host bits 0 gives the network address (e.g. .0); all 1 gives the broadcast address (e.g. .255). For other prefixes these values shift according to the block size.

Wie finde ich heraus, ob zwei Hosts im selben Subnetz sind?How do I tell whether two hosts are in the same subnet?

Beide Adressen mit derselben Maske per UND verknüpfen. Stimmen die resultierenden Netzadressen überein, liegen sie im selben Subnetz und kommunizieren direkt (ohne Router).

AND both addresses with the same mask. If the resulting network addresses match, they are in the same subnet and communicate directly (no router).

Warum /30 oder /31 für Punkt-zu-Punkt-Links?Why /30 or /31 for point-to-point links?

Ein Link zwischen zwei Routern braucht nur zwei Adressen. /30 liefert 2 nutzbare Hosts (plus Netz/Broadcast) — der klassische Ansatz. /31 (RFC 3021) verzichtet auf Netz/Broadcast und vergibt beide Adressen an die Endpunkte → spart Adressraum.

A link between two routers needs only two addresses. /30 yields 2 usable hosts (plus network/broadcast) — the classic approach. /31 (RFC 3021) drops network/broadcast and assigns both addresses to the endpoints → saves address space.

Was ist eine Wildcard-Maske?What is a wildcard mask?

Das bitweise Komplement der Subnetzmaske. 0-Bits bedeuten „muss übereinstimmen", 1-Bits „beliebig". Verwendet in Cisco-ACLs und OSPF-network-Anweisungen.

The bitwise complement of the subnet mask. 0 bits mean "must match", 1 bits "don't care". Used in Cisco ACLs and OSPF network statements.

Warum nutzt IPv6 meist /64 — und subnettet man da überhaupt noch?Why does IPv6 usually use /64 — and is subnetting still a thing?

SLAAC/EUI-64 erwartet 64 Bit Interface-ID, daher ist /64 das Standard-LAN-Präfix. Subnettet wird oberhalb davon: Ein Provider weist z. B. ein /48 oder /56 zu, das in viele /64 aufgeteilt wird. Adressknappheit ist hier kein Thema.

SLAAC/EUI-64 expects a 64-bit interface ID, so /64 is the standard LAN prefix. Subnetting happens above it: a provider assigns e.g. a /48 or /56, which is split into many /64. Address scarcity is a non-issue here.

Wofür braucht es private Adressen und NAT?Why do we need private addresses and NAT?

Der IPv4-Adressraum ist erschöpft. Private Bereiche (RFC 1918) erlauben beliebig viele interne Geräte; NAT übersetzt sie auf wenige (oder eine) öffentliche Adresse(n). IPv6 macht NAT durch seinen riesigen Adressraum weitgehend überflüssig.

The IPv4 address space is exhausted. Private ranges (RFC 1918) allow arbitrarily many internal devices; NAT translates them onto a few (or one) public address(es). IPv6 largely removes the need for NAT thanks to its vast address space.

Was bedeutet 0.0.0.0/0 in einer Routing-Tabelle?What does 0.0.0.0/0 mean in a routing table?

Das ist die Default-Route — sie passt auf jedes Ziel (Präfixlänge 0). Pakete ohne spezifischere Route gehen dorthin (typischerweise zum Default-Gateway). IPv6-Pendant: ::/0.

It is the default route — it matches any destination (prefix length 0). Packets without a more specific route go there (typically the default gateway). IPv6 equivalent: ::/0.

11 RFCs, Referenzen & Links RFCs, References & Links sysadmin