Subnet ID | Range | Description |
---|---|---|
192.168.1.0/26 |
192.168.1.0 - 192.168.1.63 |
First subnet |
192.168.1.64/26 |
192.168.1.64 - 192.168.1.127 |
Second subnet |
192.168.1.128/26 |
192.168.1.128 - 192.168.1.191 |
Third subnet |
192.168.1.192/26 |
192.168.1.192 - 192.168.1.255 |
Fourth subnet |
IPv4 Address Exhaustion
IPv4: 32-bit address space (~4.3 billion addresses).
Increasing number of internet-connected devices.
IPv6: 128-bit address space
~340 undecillion addresses (enough for future needs).
Enhanced features:
Auto-configuration.
Improved security (IPSec).
Simplified header format.
Length: 128 bits (8 groups of 16 bits each).
Hexadecimal notation.
Groups separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
Simplification Rules:
Remove leading zeros (e.g., 0010 -> 10).
Replace consecutive zero groups with :: (only once per address).
Dual Stack
Devices run both IPv4 and IPv6 simultaneously.
Allows gradual transition.
Tunneling
Encapsulates IPv6 packets within IPv4 headers.
Examples:
6to4: Automatically assigns an IPv6 prefix to IPv4.
Teredo: Tunnels IPv6 over IPv4 using NAT.
Translation
NAT64:
Maps IPv6 addresses to IPv4 and vice versa.
Enables IPv6-only devices to communicate with IPv4 devices.
192.168.0.1
11000000
10101000
00000000
00000001
11000000.10101000.00000000.00000001
::ffff:0:0/96
::ffff:
prefix.11000000.10101000.00000000.00000001
1100 0000 1010 1000 0000 0000 0000 0001
1100
-> C
0000
-> 0
1010
-> A
1000
-> 8
0000
-> 0
0000
-> 0
0000
-> 0
0001
-> 1
C0:A8:00:01
::ffff:
C0:A8:00:01
::ffff:C0A8:01
Convert the IPv4 address 10.0.0.1
to IPv6.
00001010
, 0 -> 00000000
, 0 -> 00000000
, 1 -> 00000001
00001010.00000000.00000000.00000001
0000 1010 0000 0000 0000 0000 0000 0001
A:0:0:1
::ffff:A:0:0:1
Convert the IPv4 address 172.16.254.1
to IPv6.
10101100
, 16 -> 00010000
, - 254 -> 11111110
, 1 -> 00000001
10101100.00010000.11111110.00000001
1010 1100 0001 0000 1111 1110 0000 0001
AC:10:FE:01
::ffff:AC10:FE01
Internet Assigned Numbers Authority