IP Addresses
Terms
IPv4 Addresses
Special-Purpose IPv4 AddressesIPv6 Addresses
Special-Purpose IPv6 Addresses
Similar to a postal address, the IP address is used to transport data from the sender to the recipient.
An IP address is used for the unique technical addressing of data in a network, such as the Internet or a local area network (LAN). Several IP addresses can be assigned to one computer. Likewise, an IP address can also designate several computers (see broadcast, multicast).
IP addresses in a network are divided into a network part and a host part. The first bits of the binary IP address form the network part and identify the network, such as the address range of an Internet provider, a company network, or your own private LAN. The remaining bits of the binary IP address form the host part and identifies the host (computer, router, printer, etc.) within the network. The separation between network part and host part can be specified e.g. as netmask, as wildcard mask or in the CIDR notation.
For the IP address 198.51.100.0/24, the breakdown is as follows:
1. Octet | 2. Octet | 3. Octet | 4. Octet | |
---|---|---|---|---|
Decimal IP: | 198 | 51 | 100 | 1 |
Binary IP: | 11000110 | 00110011 | 01100100 | 00000001 |
Network Part (= Subnet) | Host Part | |||
Decimal Netmask: | 255 | 255 | 255 | 0 |
Binary Netmask: | 11111111 | 11111111 | 11111111 | 00000000 |
CIDR: | /24 = 24 Bit Network Part | 8 Bit Host Part |
This results in the network address 198.51.100.0, the netmask 255.255.255.0 and the broadcast address 198.51.100.255. The addresses 198.51.100.1 - 198.51.100.254 can be assigned to the hosts.
Did you like my page, one of my freeware applications or online tools?
Then, please donate via PayPal in order to help keeping its content free - each amount is welcome!
The network address is the first address in a network or subnet. Routers use this address to forward traffic to the appropriate network.
The broadcast address allows one computer to send data to all other computers on the same network or subnet simultaneously. The broadcast address is the last address in the subnet. For example, in the network 198.51.100.0/24, the broadcast address is 198.51.100.255.
With IP multicast the data is transmitted to several specific recipients simultaneously. This is done via special multicast addresses. These are 224.0.0.0 - 239.255.255.255 for IPv4 and FF00::/8 for IPv6.
In a network or subnet, the IP addresses between the network address and the broadcast address are available for the hosts. In the network 198.51.100.0/24 these would be the addresses 198.51.100.1 - 198.51.100.254.
Specifying the netmask or subnet-mask is one way of defining the network part of an IP address. All bits belonging to the network part of the address are set to 1 and all bits in the host part are set to 0.
The wildcard mask is the netmask with inverted bits.
The size of a network or subnet can also be specified with the number of bits set to 1 in the network mask instead of with a network mask. This number between 0 and 32 for IPv4 or 128 for IPv6 is given after the IP address, separated by a slash. 198.51.100.0/24 is equivalent to 198.51.100.0/255.255.255.0.
The domain in-addr.arpa is a special domain for reverse DNS lookups (rDNS). This can be used to determine the host name for an IP address. For the request, the bytes/octets of the IP address are inserted in reverse order in front of ".in-addr.arpa". Example for IP address 198.51.100.1: 1.100.51.198.in-arr.arpa
Hybrid dual-stack IPv6/IPv4 implementations (network interfaces that can handle IPv4 and IPv6 data packets) use special IP addresses to map an IPv4 address to an IPv6 address. This is done by prefixing the IPv4 address with a 96-bit prefix consisting of 80 bits of zeros and 16 bits of ones. Example: ::ffff:c633:6401 or also ::ffff:198.51.100.0
IPv6 over IPv4 is used to transport IPv6 data packets to IPv4 networks. A link-local IPv6 address is generated from an IPv4 address. For this purpose, the IPv4 address is prefixed with the string "fe80::". Example for IP address 198.51.100.1: fe80::c633:6401
IPv4 addresses have a length of 32 bits = 4 bytes, also called octets. These are usually represented as decimal numbers from 0-255 separated by dots. This notation is also called dotted decimal notation.
Example: 198.51.100.25
With IPv4, 232 or 4,294,967,296 different addresses can be represented.
Address block | First Address | Last Address | Name / Description |
---|---|---|---|
0.0.0.0/32 | 0.0.0.0 | 0.0.0.0 | This host on this network |
0.0.0.0/8 | 0.0.0.0 | 0.255.255.255 | This network |
10.0.0.0/8 | 10.0.0.0 | 10.255.255.255 | Private-Use |
100.64.0.0/10 | 100.64.0.0 | 100.127.255.255 | Shared Address Space |
127.0.0.0/8 | 127.0.0.0 | 127.255.255.255 | Loopback |
169.254.0.0/16 | 169.254.0.0 | 169.254.255.255 | Link Local |
172.16.0.0/12 | 172.16.0.0 | 172.31.255.255 | Private-Use |
192.0.0.0/24 | 192.0.0.0 | 192.0.0.255 | IETF Protocol Assignments |
192.0.2.0/24 | 192.0.2.0 | 192.0.2.255 | Documentation (TEST-NET-1) |
192.31.196.0/24 | 192.31.196.0 | 192.31.196.255 | AS112-v4 |
192.52.193.0/24 | 192.52.193.0 | 192.52.193.255 | AMT |
192.88.99.0/24 | 192.88.99.0 | 192.88.99.255 | Deprecated (6to4 Relay Anycast) |
192.168.0.0/16 | 192.168.0.0 | 192.168.255.255 | Private-Use |
192.175.48.0/24 | 192.175.48.0 | 192.175.48.255 | Direct Delegation AS112 Service |
198.18.0.0/15 | 198.18.0.0 | 198.19.255.255 | Benchmarking |
198.51.100.0/24 | 198.51.100.0 | 198.51.100.255 | Documentation (TEST-NET-2) |
203.0.113.0/24 | 203.0.113.0 | 203.0.113.255 | Documentation (TEST-NET-3) |
224.0.0.0/4 | 224.0.0.0 | 239.255.255.255 | IP Multicast |
255.255.255.255/32 | 255.255.255.255 | 255.255.255.255 | Limited Broadcast |
240.0.0.0/4 | 240.0.0.0 | 255.255.255.255 | Reserved |
IPv6 addresses have a length of 128 bits = 16 bytes. These are represented in hexadecimal notation, with 2 bytes each separated by a colon. Several consecutive blocks with 0 byte each can be abbreviated with two colons. However, only one abbreviation is allowed in one IP.
Example with the same IP in full and abbreviated notations:
2001:db8:000c:0065:0000:0000:0000:01b3
2001:db8:c:65:0:0:0:1b3
2001:db8:c:65::1b3
With IPv6, 2128 or 340,282,366,920,938,463,463,374,607,431,768,211,456 different addresses can be represented.
Address block | First Address | Last Address | Name / Description |
---|---|---|---|
::/128 | :: | :: | Unspecified Address |
::1/128 | ::1 | ::1 | Loopback Address |
::ffff:0:0/96 | ::ffff:0.0.0.0 | ::ffff:255.255.255.255 | IPv4-mapped Address |
64:ff9b::/96 | 64:ff9b::0.0.0.0 | 64:ff9b::255.255.255.255 | IPv4-IPv6 Translation |
64:ff9b:1::/48 | 64:ff9b:1::0.0.0.0 | 64:ff9b:1:ffff:ffff:ffff:255.255.255.255 | Local-Use IPv4-IPv6 Translation |
100::/64 | 100:: | 100::ffff:ffff:ffff:ffff | Discard-Only Address Block |
2001:0:/32 | 2001:: | 2001::ffff:ffff:ffff:ffff:ffff:ffff | TEREDO (Tunneling IPv6 over UDP through NATs) |
2001:1::1/128 | 2001:1::1 | 2001:1::1 | Port Control Protocol Anycast |
2001:1::2/128 | 2001:1::2 | 2001:1::2 | Traversal Using Relays around NAT Anycast |
2001:2::/48 | 2001:2:: | 2001:2::ffff:ffff:ffff:ffff:ffff | Benchmarking |
2001:3::/32 | 2001:3:: | 2001:3:ffff:ffff:ffff:ffff:ffff:ffff | AMT |
2001:4:112::/48 | 2001:4:112:: | 2001:4:0112:ffff:ffff:ffff:ffff:ffff | AS112-v6 |
2001:10::/28 | 2001:10:: | 2001:1f:ffff:ffff:ffff:ffff:ffff:ffff | Deprecated (previously ORCHID) |
2001:20::/28 | 2001:20:: | 2001:2f:ffff:ffff:ffff:ffff:ffff:ffff | ORCHIDv2 |
2001:30::/28 | 2001:30:: | 2001:3f:ffff:ffff:ffff:ffff:ffff:ffff | Drone Remote ID Protocol Entity Tags (DETs) Prefix |
2001:db8::/32 | 2001:db8:: | 2001:db8:ffff:ffff:ffff:ffff:ffff:ffff | Documentation |
2002::/16 | 2002:: | 2002:ffff:ffff:ffff:ffff:ffff:ffff:ffff | 6to4 (deprecated) |
2620:4f:8000::/48 | 2620:4f:8000:: | 2620:4f:8000:ffff:ffff:ffff:ffff:ffff | Direct Delegation AS112 Service |
fc00::/7 | fc00:: | fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff | Unique-Local |
fe80::/10 | fe80:: | fe80::ffff:ffff:ffff:ffff | Link-Local Unicast |
ff00::/8 | ff00:: | ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff | Multicast Address |
Did you like my page, one of my freeware applications or online tools?
Then, please donate via PayPal in order to help keeping its content free - each amount is welcome!