๐ IPv6 (The Easy Version)
IPv6 โ Full Notes
Why Was IPv6 Created?
IPv4 uses 32-bit addresses, which provides about 4.3 billion unique addresses.
As the Internet grew, the number of connected devices exploded:
๐ฑ Smartphones
๐ป Computers
๐ฎ Gaming consoles
๐ท Security cameras
๐ก Smart home devices (IoT)
๐ Connected vehicles
๐ Billions of Internet-connected devices
Because IPv4 addresses were running out, IPv6 was created.
IPv6
128-bit addresses
About 340 undecillion addresses
Designed to support the future growth of the Internet
Memory Trick
IPv4 = Running out of addresses
IPv6 = Practically unlimited addresses
Section Break Down:
IPv4 has 32 bits
IPv6 has 128 bits
IPv6 Address Format
IPv4
192.168.1.10Uses:
Decimal numbers
Periods (.)
IPv6
2001:0db8:85a3:0000:0000:8a2e:0370:7334Uses:
Hexadecimal
Colons (:)
Section Breakdown
IPv4 looks like this 192.168.1.10
IPv6 looks like this 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Hexadecimal
IPv6 uses hexadecimal (base 16) instead of decimal.
Hexadecimal includes:
0 1 2 3 4 5 6 7 8 9 A B C D E FWhere:
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15IPv6 Has 8 Groups
Example:
1 2 3 4 5 6 7 8
2001:0db8:85a3:0000:0000:8a2e:0370:7334
Each address contains:
8 groups
4 hexadecimal digits per group
Shortening IPv6 Addresses
Network+ loves these rules.
Rule #1 โ Remove Leading Zeros
You may remove zeros at the beginning of a group.
Example:
0db8becomes
db8Another:
0007becomes
7โ Don't remove zeros from the end.
Rule #2 โ Replace Consecutive Zero Groups with ::
Example:
Before:
2001:0db8:0000:0000:0000:0000:0000:0001After:
2001:db8::1Important
You may use :: only once in an IPv6 address.
Why?
Because using it twice would make it impossible to know how many groups of zeros were removed.
โญ Network+ Exam Tip
If you see an address using :: twice, it's invalid.
Common IPv6 Address Types
Global Unicast
Global Unicast = Public Internet and starts with 2xxx or 3xxx
Starts with:
2xxxor
3xxxExample:
2001:db8::1Used for:
Public Internet communication
Think:
Global = Public Internet
Starts With | Address Type | Think |
|---|
2xxx or 3xxx | Global Unicast | ๐ Public Internet |
fcxx or fdxx | Unique Local | ๐ Private network |
fe80 | Link-Local | ๐ค Same local network only |
ffxx | Multicast | ๐ข One-to-many communication |
More about Global Unicast
Imagine the Internet is like the postal system.
Your house = your device
Your address = your IP address
The roads = the Internet
Global Unicast Address = Your Home Address ๐
A Global Unicast IPv6 address is a public address that can be reached from anywhere on the Internet (assuming firewalls allow it).
For example:
2001:db8::1It starts with 2 or 3, so you immediately know:
๐ "This is a public IPv6 address."
Real-Life Example
Suppose you open YouTube.
Your computer might have this IPv6 address:
2001:abcd:1234::50The YouTube server has another Global Unicast address.
Because both devices have public IPv6 addresses, they can communicate across the Internet.
๐ป Your PC
2001:abcd:1234::50
โ
โ Internet ๐
โ
๐บ YouTube Server
2001:4860:....Compare It to IPv4
IPv4 has:
Public IP:
8.8.8.8Private IP:
192.168.1.10
IPv6 has:
Global Unicast (Public):
2001:...Unique Local (Private):
fd00:...
So think of it like this:
IPv4 | IPv6 | Can the Internet reach it? |
|---|---|---|
8.8.8.8 | 2001:... | โ Yes |
192.168.1.10 | fd00:... | โ No |
Why do they start with 2 or 3?
IPv6 addresses are grouped into ranges.
If the first hexadecimal digit is:
2 โ Global Unicast
3 โ Global Unicast
Examples:
2001:db8::1 โ
Global Unicast
2607:f8b0::1 โ
Global Unicast
3001:abcd::5 โ
Global UnicastAs soon as you see an address starting with 2 or 3, you should think:
๐ "This is a public IPv6 address that can communicate over the Internet."
Easy Memory Trick ๐ง
2 or 3
โ
๐ Global
โ
๐ Public InternetSo whenever you see:
2001:db8::1Don't worry about the rest of the address yet. Just recognize the first digit (2) and think:
"This is a Global Unicast addressโa public IPv6 address, like a public IPv4 address."
Link-Local
Link-local is IPV6 and means used for communication of devices within the same local network only. Starts with FE80::
Brief Description
Link-Local: An IPv6 address used for communication with devices on the same local network only.
Easy Memory Trick ๐ง
Link = the network you're directly connected to.
Local = doesn't leave that network.
Think:
๐ป Your PC ยซ- ยป ๐จ Printer
(Same network)
Starts with:
FE80::Automatically assigned to every IPv6 device.
Used only on the local network.
Routers do not forward link-local addresses.
You'll commonly see them when using:
ipconfig
ip a
ifconfig
Think:
Link-local = Only talks to nearby devices
Unique Local Address (ULA)
Starts with:
FCor
FDPrivate IPv6 addresses.
Similar to:
192.168.x.xin IPv4.
Think:
Unique Local = Private Network
Loopback
::1Equivalent to:
127.0.0.1Represents:
"This computer."
IPv4 vs IPv6
IPv4 | IPv6 |
|---|---|
32 bits | 128 bits |
Decimal | Hexadecimal |
Periods (.) | Colons (:) |
4 octets | 8 groups |
Limited addresses | Massive address space |
Broadcast supported | No broadcast |
NAT commonly used | NAT generally unnecessary |
Broadcast, Multicast, and Anycast
Broadcast (IPv4)
Broadcast sends a packet to every device on the local network.
Think:
"Everyone listen!"
Multicast (IPv6)
Multicast sends traffic only to devices that joined a specific group.
Think:
"Only this group listen."
Examples:
Routers
Printers
Servers
Anycast (IPv6)
Multiple devices share the same address.
Traffic is automatically delivered to the closest or best destination.
Think:
"Take me to the nearest server."
Easy Memory Tricks
IPv4
32 bits
4 octets
Dots
Think:
4 โ 32 โ Dots
IPv6
128 bits
8 groups
Colons
Think:
128 โ 8 โ Colons
โญ Network+ Summary
Remember these:
โ IPv4 = 32 bits
โ IPv6 = 128 bits
โ IPv6 uses hexadecimal
โ IPv6 uses colons (:)
โ IPv6 has 8 groups
โ Remove leading zeros
โ :: can only appear once
โ ::1 = Loopback
โ FE80:: = Link-local
โ FC/FD = Unique Local (private)
โ 2xxx/3xxx = Global Unicast (public)
โ IPv6 does not use broadcast
โ IPv6 uses multicast and anycast
โ NAT is generally not required with IPv6
๐จ Network+ Exam Traps
โ Trap: IPv6 uses decimal numbers.
โ Correct: IPv6 uses hexadecimal (0โ9, AโF).
โ Trap: IPv6 uses periods.
โ Correct: IPv6 uses colons.
โ Trap: You can use :: multiple times.
โ Correct: Only once per IPv6 address.
โ Trap: FE80:: is a public address.
โ Correct: FE80:: is a link-local address.
โ Trap: ::1 is a network address.
โ Correct: ::1 is the loopback address.
โ Trap: IPv6 uses broadcast.
โ Correct: IPv6 uses multicast and anycast instead.
๐ Flashcards
Why was IPv6 created?
โก IPv4 ran out of addresses.
How many bits does IPv6 use?
โก 128 bits.
What number system does IPv6 use?
โก Hexadecimal.
What separator does IPv6 use?
โก Colons (:).
How many groups are in an IPv6 address?
โก 8.
What does :: do?
โก Compresses consecutive groups of zeros.
How many times can :: appear?
โก Once.
What is the IPv6 loopback address?
โก ::1.
What prefix identifies a link-local address?
โก FE80::.
What prefix identifies a Unique Local Address (ULA)?
โก FC:: or FD::.
What prefix identifies a Global Unicast address?
โก 2xxx or 3xxx (2000::/3).
Does IPv6 use broadcast?
โก No.
What replaces broadcast in IPv6?
โก Multicast and Anycast.
Is NAT generally needed with IPv6?
โก No.