๐ŸŒŽ 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.10

Uses:


  • Decimal numbers


  • Periods (.)


IPv6

2001:0db8:85a3:0000:0000:8a2e:0370:7334

Uses:


  • 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 F

Where:

A = 10
B = 11
C = 12
D = 13
E = 14
F = 15

IPv6 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:

0db8

becomes

db8

Another:

0007

becomes

7

โŒ Don't remove zeros from the end.


Rule #2 โ€” Replace Consecutive Zero Groups with ::

Example:

Before:

2001:0db8:0000:0000:0000:0000:0000:0001

After:

2001:db8::1

Important

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:

2xxx

or

3xxx

Example:

2001:db8::1

Used 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::1

It 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::50

The 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.8

  • Private 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 Unicast

As 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 Internet

So whenever you see:

2001:db8::1

Don'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:

FC

or

FD

Private IPv6 addresses.

Similar to:

192.168.x.x

in IPv4.

Think:

Unique Local = Private Network


Loopback

::1

Equivalent to:

127.0.0.1

Represents:

"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.