Table of Contents


Note

This is not a complete note about all concepts related to IPs, just note of things that I struggle to remember all the time.

Concepts

IP ranges

IPv4 private: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
IPv6 ULA: fc00::/7; link-local: fe80::/10.

ULA (Unique Local Address) is an IPv6 address intended for private/internal networks. It is similar to IPv4 private addresses like 192.168.1.10. ULAs are routable inside your organization/network, but routers on the public Internet don’t route them. They use fc00::/7 (commonly fd00::/8).
Link-local addresses are for communication on the same local network link. They use fe80::/10. A router does not forward link-local traffic to another network.

Think:
ULA = private network-wide
Link-local = immediate local network segment

A device can have both simultaneously. For example, fd12:3456::10 could communicate across your internal routed network, while fe80::1234 can communicate only with devices on the same link.

Localhost & loopback

A loopback address means “this computer itself.” Traffic sent to it never leaves the machine or reaches the network. It’s useful for testing services locally.
Localhost is simply a hostname that conventionally points to loopback addresses.

IPv4 loopback is 127.0.0.0/8, commonly 127.0.0.1. IPv6 loopback is ::1.

CIDR

CIDR (Classless Inter-Domain Routing) is a notation that tells you how large an IP network is by specifying how many bits belong to the network portion of the address.
Example: 192.168.1.0/24

Broadcast

Broadcast means sending a packet to every device on the local network rather than one specific device.
A server listening on 0.0.0.0:80 means “accept connections on port 80 through any network interface this computer has.”

255.255.255.255 is different: it is a destination address meaning “send this packet to every IPv4 device on my local network.” Routers don’t forward it.
For example, when a computer first connects to an IPv4 network, it may not know the DHCP server’s IP address yet. It sends a DHCP Discover packet to 255.255.255.255, essentially saying: “Is there any DHCP server on this local network?” Every device receives the broadcast, but only DHCP servers respond.

IPv6 has no broadcast address. Instead, IPv6 uses multicast: sending traffic to a specific group of devices.
Multicast means sending one packet to a specific group of devices that have joined that group

IPv6 structure

Typically /64: first 64 bits are the network prefix, last 64 bits identify the interface. Providers generally receive larger prefixes and subdivide them.
Example - 2001:db8:1234:5678:abcd:ef01:2345:6789.

IPv6 lets you shorten addresses in two main ways. First, you can remove leading zeros from each group: 2001:0db8:0000:0000:0000:0000:0000:0001 becomes 2001:db8:0:0:0:0:0:1. Second, consecutive groups containing only zeros can be replaced with ::: 2001:db8:0:0:0:0:0:1 becomes 2001:db8::1. Importantly, :: can only be used once in an address, because otherwise you couldn’t determine how many 0 groups were removed. For example, 2001:db8:0:0:abcd:0:0:1 becomes 2001:db8::abcd:0:0:1.

Additional abbreviations:

  • [::] = Local address: all IPv6 network interfaces, equivalent to 0.0.0.0 for IPv4.
  • *:* = Remote address: any address and any port; no specific remote endpoint.
  • [::1] = Local IPv6 loopback address, equivalent to IPv4 127.0.0.1.

ESTAB

ESTAB means established, usually indicating an active TCP connection.

dead:beef

dead:beef is mostly used as a memorable placeholder/example in IPv6 addresses, similar to foo or 1234 in documentation. It has no special networking function. You might see something like 2001:db8:dead:beef::1 in examples, labs, or software testing.


  • [::] = Means all IPv6 network interfaces, equivalent to 0.0.0.0 for IPv4.
  • *:* = any remote address and port.
  • [::1] = the IPv6 loopback address, equivalent to IPv4 127.0.0.1.