Configuring and Verifying IPv6 Addressing and Prefix

In this section, we will discuss how to configure and verify IPv6 Adress and its Prefix.

IPv6 (Internet Protocol version 6) is the next-generation IP protocol, designed to replace IPv4 due to the exhaustion of IPv4 addresses and the growing demands of the internet. IPv4 uses 32-bit addresses, which allows for about 4.3 billion unique addresses — a number that’s no longer sufficient.

IPv6 uses 128-bit addresses, allowing for 340 undecillion (3.4 × 10³⁸) possible addresses. that my serve as Virtually unlimited address space for future growth


IPv6 Address Format

An IPv6 address is a 128-bit identifier for a device on an IPv6 network. It is written in hexadecimal (base 16) and divided into 8 groups (or blocks) of 16 bits (4 hex digits each), separated by colons (:).

  • Length: 128 bits
  • Written in hexadecimal (base-16)
  • Divided into 8 groups of 4 hex digits (16 bits per group)
  • Groups are separated by colons (:)

Example:

2001 : 0db8 : 0000 :0000 :0000 : ff00 : 0042 : 8329

The above IPv6 address consists of 8 groups of 16 bits written hexadecimal digits. Each group is separated by colon (:).

4 hex digit = 16 bits.

16 bits X 8 blocks = 128 bits


Rules for IPv6 Address Simplification

IPv6 addresses can be shortened using the following rules:

1. Remove Leading Zeros:

2001:0db8:0000:0000:0000:ff00:0042:8329
↓
2001:db8:0:0:0:ff00:42:8329

2. Use: Colon (:) for Consecutive Zero Blocks (only once per address):

2001:db8:0:0:0:ff00:42:8329
↓
2001:db8::ff00:42:8329

In one Step we can simplify in this way.

2001:0db8:0000:0000:0000:ff00:0042:8329
↓
2001:db8::ff00:42:8329

IPv6 Address Types

IPv6 addresses are 128-bit identifiers used to uniquely identify interfaces and nodes in an IPv6 network. Unlike IPv4, IPv6 introduces different types of addresses designed for scalability, efficiency, and flexibility.

Unicast Addresses

A unicast address uniquely identifies a single interface. Packets sent to a unicast address are delivered to one specific device.
There are three main categories:

  1. Global Unicast (2000::/3)
    • Equivalent to public IPv4 addresses.
    • Globally routable and unique across the Internet.
    • Assigned by IANA/ISPs.
    • Example: 2001:0db8:85a3::8a2e:0370:7334.
  2. Unique Local (fc00::/7)
    • Equivalent to IPv4 private addresses.
    • Used inside organizations, not routable on the Internet.
    • Range: fc00::/7 (commonly fd00::/8).
    • Example: fd12:3456:789a::1.
  3. Link-Local (fe80::/10)
    • Automatically assigned to every interface.
    • Required for communication between nodes on the same link.
    • Always starts with fe80.
    • Cannot be routed beyond the local link.
    • Example: fe80::1a2b:3c4d:5e6f.

Anycast Addresses

  • Assigned to multiple interfaces, usually on different devices.
  • A packet sent to an anycast address is delivered to the nearest interface (based on routing distance).
  • Often used for load balancing and service redundancy (e.g., DNS root servers).
  • No special prefix; any unicast address can be designated as an anycast.

Multicast Addresses (ff00::/8)

  • Used to deliver packets to multiple devices simultaneously.
  • Replaces broadcast in IPv6 (IPv6 has no broadcast).
  • Always starts with ff.
  • Example uses:
    • ff02::1 → all nodes on the link.
    • ff02::2 → all routers on the link.

Modified EUI-64

  • A method to automatically create the interface identifier (last 64 bits of an IPv6 address) from a device’s MAC address.
  • Process:
    1. Take the 48-bit MAC address.
    2. Insert FFFE in the middle → 64 bits.
    3. Flip the 7th bit of the first byte (Universal/Local bit).
  • Example:
    • MAC: 00:1A:2B:3C:4D:5E
    • Modified EUI-64: 021A:2BFF:FE3C:4D5E.

This ensures each interface can auto-configure its IPv6 address without manual assignment.

TypePrefixUse
Unicast(varies)One-to-one communication
MulticastFF00::/8One-to-many communication
Anycast(assigned to multiple interfaces)Delivered to nearest one
Link-localFE80::/10Used within a single network link
Global Unicast2000::/3Routable over the internet
Unique LocalFC00::/7Private, internal network use

Key Differences: IPv4 vs IPv6

FeatureIPv4IPv6
Address Length32 bits128 bits
NotationDecimal (e.g. 192.0.2.1)Hexadecimal (e.g. 2001:db8::1)
Total Addresses~4.3 billion340 undecillion (3.4×10³⁸)
BroadcastSupportedNot supported (uses multicast)
SecurityOptional (IPSec)Mandatory (IPSec support built-in)
NAT (Network Address Translation)CommonNot needed (ample addresses)

Sample IPv6 Address Breakdown

IPv6 Address:

2001:0db8:85a3:0000:0000:8a2e:0370:7334
  • 2001:0db8::/32 → Documentation/test prefix (often used in examples)
  • 85a3 → Subnet
  • 0000:0000 → Can be compressed to ::
  • 8a2e:0370:7334 → Interface ID (like host portion in IPv4)

Compressed:

2001:db8:85a3::8a2e:370:7334

IPv6 Configuration

Manual Configuration

Router(config)# interface GigabitEthernet0/0
Router(config-if)# ipv6 address 2001:db8:1:1::1/64
Router(config-if)# no shutdown

EUI-64 Configuration

Router(config-if)# ipv6 address 2001:db8:1:1::/64 eui-64
  • Automatically generates interface ID using MAC address
  • Inserts FFFE in middle of MAC
  • Flips 7th bit (U/L bit)

Link-Local Address

Router(config-if)# ipv6 address fe80::1 link-local

or auto-generated:

Router(config-if)# ipv6 enable

IPv6 Verification Commands

CommandDescription
show ipv6 interface briefDisplays IPv6 interface status
show ipv6 interfaceDetailed IPv6 interface info
show ipv6 routeIPv6 routing table
ping ipv6IPv6 connectivity test
traceroute ipv6IPv6 path discovery

IPv6 Address Prefix

In IPv6, an address prefix is similar to the concept of a subnet mask in IPv4. It indicates the network portion of an IPv6 address and helps in identifying how many bits are used for the network and how many are available for host or interface identifiers. Prefixes play a vital role in routing and organizing IPv6 addresses.

Structure of an IPv6 Prefix

  • Written in CIDR notation (Classless Inter-Domain Routing).
  • Format: IPv6 address/prefix-length.
    • Example: 2001:db8:abcd:1234::/64
  • The number after the slash (/64) shows how many leading bits are fixed as the network portion.

Common IPv6 Prefix Lengths

  • /128 → Identifies a single interface (like a host address).
  • /64 → Most common prefix length for a subnet. The first 64 bits are for the network, and the last 64 bits are for the interface ID.
  • /48 → Often allocated to an organization by an ISP, which can then be further divided into subnets.
  • /32 → Assigned to ISPs for further distribution.

Types of IPv6 Prefixes

  1. Global Routing Prefix
    • The part of the address assigned by an ISP to a customer.
    • Used for routing on the global internet.
    • Example: 2001:db8::/32.
  2. Subnet ID
    • Used to identify subnets within a larger network.
    • Example: dividing 2001:db8:abcd::/48 into multiple /64 subnets.
  3. Interface ID
    • The remaining portion of the IPv6 address (usually 64 bits).
    • Identifies a unique interface on the subnet.

Special IPv6 Prefixes

  • Link-local (FE80::/10) → Used for communication within a single link (not routable).
  • Unique Local (FC00::/7) → Private addressing, similar to IPv4 private addresses.
  • Multicast (FF00::/8) → Used for one-to-many communication.
  • Default Route (::/0) → Similar to 0.0.0.0/0 in IPv4; used for sending packets to unknown destinations.
  • Loopback (::1/128) → Refers to the local host.

Importance of IPv6 Prefix

  • Makes large-scale address allocation and aggregation easier for ISPs and enterprises.
  • Enables hierarchical addressing, which makes routing more efficient.
  • Provides flexibility in subnetting without the limitations of IPv4 subnet masks.
  • Simplifies network design, as /64 is a standard subnet size in IPv6.