TechKnowSurge
Cisco CCNA 1.8 Cisco CCNA 1.9 Cisco CCST Networking 2.3 CompTIA Network+ 3.4 Cisco CCST Networking 2.1
VideoNetworkFree

IPv6 Addresses

IPv6 addressing introduces a vastly expanded address space using 128-bit hexadecimal notation, along with improvements to security, quality of service, and network performance. This content covers the structure of IPv6 addresses, prefix notation, and shorthand rules for condensing lengthy addresses.

Complete this video to capture a CTF flag worth 1 point.

About this video

IPv6 exists primarily because the IPv4 address space, even with stopgap measures like NAT, can no longer meet the demands of a growing global network. By using 128-bit addresses, IPv6 provides an astronomically larger pool of possible addresses, and every additional bit doubles that capacity. Beyond address space, IPv6 also introduces architectural improvements over IPv4, including enhanced security features and better support for quality of service and network performance. The transition from IPv4 is ongoing, with full adoption expected to accelerate as remaining dependencies on IPv4 infrastructure are resolved. IPv6 addresses are expressed in hexadecimal, where each character represents four bits, or one nibble. Four hexadecimal characters form a hextet, and eight hextets make up a complete 128-bit address, with each hextet separated by a colon. Lowercase characters are the RFC-recommended standard, though uppercase is commonly encountered in practice. The prefix length follows the same CIDR-style notation used in IPv4, indicating how many bits belong to the network portion of the address, with slash 64 serving as the default and recommended prefix length for most deployments. Because IPv6 addresses are long and frequently contain stretches of zeros, two shorthand rules exist to make them more manageable. First, any leading zeros within a hextet can be omitted without ambiguity. Second, one contiguous sequence of all-zero hextets anywhere in the address can be collapsed into a double colon. This second rule may only be applied once per address, because using it more than once would make it impossible to determine how many hextets each collapsed section represents, and the original full address could no longer be reliably reconstructed.

What you'll learn

What's covered

IPv6 Addressing Fundamentals

Aligned to

Cisco CCNA
1.8 Configure and verify IPv6 addressing and prefix
1.9 Describe IPv6 address types
Cisco CCST Networking
2.3 Identify IPv6 addresses and prefix formats
2.1 Compare and contrast private addresses and public addresses
CompTIA Network+
3.4 Given a scenario, implement IPv4 and IPv6 network services

Key terms

Internet Protocol
IP
The principal communications protocol for routing packets across network boundaries.
IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Network Address Translation
NAT
A method that maps private IP addresses to a public IP address, allowing multiple devices to share a single public IP.
IPv6
The sixth version of the Internet Protocol, using 128-bit addresses written in hexadecimal and separated by colons to provide a vastly larger address space than IPv4's 32-bit addresses. IPv6 also introduces built-in features like SLAAC, NDP, and mandatory support for IPsec.
IPv4
The fourth version of the Internet Protocol, using 32-bit addresses that provide approximately 4.3 billion unique addresses.
Hexadecimal
Hex
A base-16 number system using digits 0–9 and letters A–F; each hex digit maps to exactly 4 bits, making it a compact shorthand for representing binary data.
Hextet
A group of four hexadecimal digits in an IPv6 address; eight hextets separated by colons form a complete 128-bit IPv6 address.
Prefix Length
The number of consecutive 1-bits in a subnet mask, written after a slash (e.g., /24), that defines how many bits of an IP address represent the network portion versus the host portion. A /24 prefix means the first 24 bits identify the network, leaving 8 bits for host addresses.
Shorthand Notation
IPv6 address abbreviation rules that allow removal of leading zeros within hextets and replacement of one contiguous group of all-zero hextets with a double colon (::).

Transcript

The Reasons for IPv6

The huge driving factor behind IPv6 is just the need for more addresses. As we mentioned along the way, our needs kept growing and we had to create other ways to stretch out IPv4, but we have to get away from it. So IPv6 is really what we need to transition to, and over the next few years we'll make more and more progress towards that. The only reason why IPv4 is hanging around as long as it has is there's still some things that are holding on to that IPv4 communication. As soon as we break that boundary, though, we're most likely going to switch everything over to IPv6, and that will be the way of the future.

They just threw a ton of bits at it, because every time you add another bit it doubles the amount of possibilities there are. So you've got this huge amount, 10 to the 128th power — a huge amount of possibilities, allowing us to do a lot more and get a lot more granular with how we want to manage our different networks.

So although increasing address space was a huge motivating factor to come up with IPv6, and is going to be the driver for us to transition, there are other advantages as well. There are some features that they've worked in to improve security, to improve quality of service, or to make better performance. There's just a bunch of other features that have been worked into IPv6, and they've done away with some of the old architecture of IPv4 too, which is really going to enhance things.

IPv6 Formatting

Let's talk about the formatting of an IPv6 address. The first thing that you may notice is there's both numbers and letters. That should be a clue that we're dealing with hexadecimal numbers. So these are hexadecimal numbers here. And we know that a hexadecimal number has four bits behind it, so each one of these is a hexadecimal number, but it's also a nibble. So it's composed of all these little nibbles. Nibbles are grouped up in fours — there are four hexadecimal numbers here — and we call this a hextet. We grouped it up in these groups of four like this just so that it's a little bit easier to read, and we separate that out by colons here to once again make this an easier number to read. So we see that there are colons in between each one of these, and we've got hexadecimal numbers with these hextets in between those colons.

One thing to note here is these are lowercase, and that is the recommended according to the RFC. So if you look at the RFCs, these are supposed to be lowercase, although you won't always see that being used out there. There's a lot of equipment that I've seen that is actually using uppercase, that isn't following the RFCs.

Here's just another view of that formatting. You can see the hexadecimal numbers here with the little nibbles, and then all the binary numbers represented there. So this is just another format that you can use. This is only showing half the address — this format didn't allow me to put it all on one slide, so this is only showing the first 64 bits of it.

The Prefix and Prefix Length

We also have the prefix. The prefix is essentially IPv6's CIDR notation, so this tells you how many bits are assigned to the network, or sometimes it's just representing the network that's being handed to you. So in this case right here it's 64. We see that 64 would be the first half of this address, so this side is the network bits and this side is the host bits for this particular address. And 64 is the default and the standard and the recommended way to use it. Really, at this point in time there's no need to use anything other than a /64 for your networks, so you really should be using 64 unless there's a really good reason not to.

Shorthand Notation

6 numbers can be very large and a little cumbersome to deal with, and because the address space is so huge, a lot of times you're dealing with just a lot of zeros. So one thing we could do is remove a lot of the zeros and really not affect the readability — in fact, increase the readability of this number.

The first trick here for shorthand notation of an IPv6 address is we can remove any leading zeros. Leading zeros are the zeros at the front of the number. We can't remove this year right here, at least not for what we're talking about yet. So what we can do is remove all of these leading zeros of all of these numbers to condense this down, and this is what we end up with by removing those numbers.

Now there is one other trick that we can do, and that is if there's two zeros that are next to each other, we can actually condense that just into a colon. You can see this double colon here — this is condensed now. You can only do this once, though, within here, because we know that we can reconstruct this. At this point we know that there's supposed to be eight hextets, so we've got one, two, three, four, five, six, seven, eight hextets. But when we condense it down like this, I can count these out: one, two, three, four, five, six. So I know that this represents two more that are in there, and I can fill that in now and assume that this is what it is. If I were to condense another one somewhere else within the address, then you wouldn't know where the condensing is happening at, and it would be really confusing. So you can only do this trick once within an IP address.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →