🌐IPv6 Addressing

 

📖 Introduction

With the rapid growth of the internet and the increasing number of devices such as computers, smartphones, IoT devices, and servers, the limitation of IPv4 addresses became a major issue, and to overcome this limitation, IPv6 was introduced as the next generation Internet Protocol, which provides a 📖 very large address space along with improved features for modern networking.

 

Definition

IPv6 (Internet Protocol Version 6) is a network layer protocol that provides unique IP addresses to devices in a network, and it uses a 128-bit address format represented in hexadecimal form, which allows a massive number of devices to be connected efficiently.

 

🧠 Basic Information

  • IPv6 is a 128-bit address 
  • It is represented using hexadecimal format 
  • It contains 8 groups 
  • Each group contains 16 bits 
  • Total → 8 × 16 = 128 bits 
  • Groups are separated using colon (:) 
  • It is not case-sensitive 

 

🔍 Structure of IPv6 Address

An IPv6 address consists of 8 groups, and each group contains 4 hexadecimal digits, where each digit represents 4 bits, and this structure makes IPv6 addresses longer than IPv4 but much more powerful and scalable, which helps in supporting a very large number of devices on the internet.

 

📌 Format of IPv6 Address

xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

  • Each group → 4 hexadecimal digits 
  • Each digit → 4 bits 
  • Total → 128 bits 

 

📊 Example of IPv6 Address

2001:1A2B:50D1:FCB3:1212:0000:CADB:45A1

 

🧠 Simple Understanding

👉 IPv6 address =
8 blocks separated by colon (:)

 

📡 Network and Interface Portion

An IPv6 address is logically divided into two parts:

 

1️⃣ Network Portion

👉 First 64 bits represent the network

 

2️⃣ Interface ID

👉 Last 64 bits represent the device

 

📏 Prefix Length

IPv6 uses prefix length instead of subnet mask, and it is written using slash notation to represent the network portion of the address.

👉 Example:

2001:db8::/64

  • /64 → Network portion 
  • Remaining bits → Host portion 

 

⚠️ Important Concepts

  • IPv6 does not use broadcast communication 
  • Broadcast is replaced by multicast 
  • It is case-insensitive
  • Designed to support future internet growth 

 

✨ Advantages of IPv6

 

  • IPv6 provides a very large address space, which solves the problem of IP address exhaustion 
  • It reduces the need for NAT (Network Address Translation) 
  • It improves routing efficiency due to better hierarchical addressing 
  • It supports auto-configuration (stateless configuration) 
  • It provides better security features 
  • It is suitable for modern applications and IoT devices 

 

❌ Disadvantages of IPv6

 

  • IPv6 is more complex to understand and configure compared to IPv4 
  • It requires new infrastructure and compatible devices 
  • Not all networks are fully migrated to IPv6 
  • Compatibility issues may occur with older systems 
  • Requires proper knowledge and training 

 

⚠️ Important Understanding

IPv6 address structure is designed to provide a scalable and future-ready addressing system, and although it is more complex than IPv4, it offers better performance, flexibility, and a huge address space, which makes it essential for modern networking.

 

✂️ Rules to Shorten an IPv6 Address

There are two main rules used to shorten an IPv6 address: removing leading zeros in each group and replacing continuous groups of zeros with a double colon (::).

 

1️⃣Rule 1 : Leading Zeros Rule

In an IPv6 address, leading zeros (zeros at the beginning of a group) can be removed to simplify the address.

👉 Explanation:

Each group contains 4 hexadecimal digits, but if the digits start with 0, those zeros can be removed without changing the value.

📊 Examples

0001 → 1
00A2 → A2
0F23 → F23

👉 Example:

2001:0DB8:0000:0000:0000:0000:0000:0001
→ 2001:DB8:0:0:0:0:0:1

 

2️⃣ Rule 2 : Double Colon (::) Rule

Double colon (::) is used to replace one or more continuous groups of zeros in an IPv6 address, which helps in significantly shortening long addresses.

📌 Explanation

If there are multiple groups containing only zeros, they can be replaced by ::, but this rule must be used carefully.

⚠️ Important Rules

  • :: can be used only once in an IPv6 address 
  • It replaces continuous groups of zeros 
  • If multiple zero groups exist, only one continuous group can be replaced using :: 
  • Remaining zero groups must be written as single 0 

📊 Examples

Example 1

2001:1A2B:50D1:FCB3:1212:0000:CADB:45A1
→ 2001:1A2B:50D1:FCB3:1212::CADB:45A1

Example 2

2001:1A2B:50D1:0000:0000:0000:CADB:45A1
→ 2001:1A2B:50D1::CADB:45A1

Example 3

2001:1A2B:50D1:0000:1111:0000:CADB:45A1
→ 2001:1A2B:50D1::1111:0:CADB:45A1

 

🧠 Step-by-Step Shortening Process

  1. Remove all leading zeros in each group 
  2. Identify continuous zero groups 
  3. Replace them using :: (only once) 
  4. Write remaining groups normally 

 

⚠️ Important Understanding

While shortening an IPv6 address, it is very important to ensure that the meaning of the address does not change, and the use of shorthand notation should follow proper rules, otherwise it may lead to incorrect interpretation of the address.

 

✨ Key Features of Shorthand Notation

  • Makes IPv6 addresses shorter 
  • Improves readability 
  • Reduces complexity 
  • Maintains same address value 

 

❌ Common Mistakes

  • Using :: more than once ❌ 
  • Removing zeros from middle of group ❌ 
  • Skipping non-zero values ❌ 

 

🎯 Key Idea

👉 IPv6 shorthand =
Remove leading zeros + Replace continuous zeros with ::


 

 

🌐Main Types of IPv6 Addresses

 

📡 1. Unicast Address (One-to-One Communication)

 

📖 Definition

Unicast address is used to identify a single device in a network, and data sent to this address is delivered to only one specific destination.

 

🔽 Types of Unicast Address :-

1️⃣ Global Unicast Address

2️⃣ Unique Local Address (ULA)

3️⃣ Link-Local Address

 

1️⃣ Global Unicast Address :

 

📖 Definition

A Global Unicast Address is used for communication over the internet, and it is globally unique, which means it can identify a device across the entire internet.

🧠 Simple Meaning 👉 Same as Public IP in IPv4

 

📌 Key Points :-

  • Routable on the internet 
  • Globally unique 
  • Assigned by ISP 
  • Used for public communication 

 

🔢 Range : 2000::/3

🔍 Identification Rule : If an IPv6 address starts with 2 or 3, then it is a Global Unicast Address

📊 Example : 2001:1A2B:50D1:FCB3::1

 

2️⃣ Unique Local Address (ULA)

 

📖 Definition

A Unique Local Address is used for communication within a private network, and it is not routable on the internet.

🧠 Simple Meaning 👉 Same as Private IP in IPv4

📌 Key Points

  • Used inside organization 
  • Not routable on internet 
  • Free to use 
  • Provides internal communication 

🔢 Range :👉FC00::/7

🔍 Identification Rule :👉 If an IPv6 address starts with FC or FD, then it is a Unique Local Address

📊 Example : FD00:1A2B:50D1::1

 

3️⃣ Link-Local Address

 

📖 Definition

A Link-Local Address is automatically assigned to IPv6-enabled devices, and it is used for communication within the same local network segment.

🧠 Simple Meaning👉 Used for local communication only

📌 Key Points

  • Automatically assigned 
  • Not routable on internet 
  • Used for neighbor discovery 
  • Works within same network 

🔢 Range :👉FE80::/10

🔍 Identification Rule :👉 If an IPv6 address starts with FE80, then it is a Link-Local Address

📊 Example : FE80::1A2B:50D1:1

 

📡 2. Multicast Address (One-to-Many Communication)

 

📖 Definition

Multicast address is used to send data from one device to multiple devices at the same time, and it replaces the broadcast concept used in IPv4.

🧠 Simple Meaning 👉 One-to-many communication

📌 Key Points

  • Replaces broadcast 
  • Efficient communication 
  • Used for group communication 

🔢 Range: FF00::/8

🔍 Identification Rule :  If an IPv6 address starts with FF, then it is a Multicast Address

📊 Example : FF02::1

 

📡 3. Anycast Address (One-to-Nearest Communication)

 

📖 Definition

Anycast address is used to send data to the nearest device among multiple devices having the same address, which helps in reducing delay and improving performance.

🧠 Simple Meaning 👉 One-to-nearest device

📌 Key Points

  • Same address assigned to multiple devices 
  • Packet goes to nearest device 
  • Used in load balancing 

⚠️ Important Concept (Very Important) :-

👉 Anycast does not have a separate address range

👉 It uses Unicast address range (mostly Global Unicast)

🔍 Identification Rule : ❌ Cannot be identified just by looking at the address, It depends on configuration, not prefix

⚠️ Important Points

  • IPv6 does not use broadcast 
  • Multicast replaces broadcast 
  • Unicast is most commonly used 
  • Anycast cannot be identified by prefix


 

 

⚙️IPv6 Static Routing Configuration (Syntax & Steps)

 

📖 Definition

IPv6 static routing is a method of manually configuring routes in a router, where the network administrator specifies the destination network and the next-hop address or exit interface, so that packets can be forwarded correctly between different networks.

 

🧠 Basic Idea

👉 Static Routing =
Manually telling router where to send packets

 

📌 IPv6 Static Routing Syntax

ipv6 route <destination-network>/<prefix-length> <next-hop-ipv6-address>

 

🔍 Explanation of Syntax

  • ipv6 route → Command to configure IPv6 static route 
  • destination-network → Target network address 
  • /prefix-length → Network portion (e.g., /64) 
  • next-hop-ipv6-address → Address of next router 

 

📊 Example

ipv6 route 2001:db8:2::/64 2001:db8:1::2

👉 Meaning:

  • Destination network → 2001:db8:2::/64 
  • Next hop → 2001:db8:1::2 

 

⚠️ Important Points

  • IPv6 must be enabled using: 

ipv6 unicast-routing

  • Interfaces must have IPv6 addresses 
  • Use correct prefix length 
  • Next-hop must be reachable 

 

📌 Types of IPv6 Static Routes (Basic Idea) :-

 

1️⃣ Next-Hop Based Route

ipv6 route 2001:db8:2::/64 2001:db8:1::2

👉 Uses next-hop IPv6 address

 

2️⃣ Exit Interface Based Route

ipv6 route 2001:db8:2::/64 fa0/0

👉 Uses outgoing interface

 

3️⃣ Fully Specified Route

ipv6 route 2001:db8:2::/64 fa0/0 2001:db8:1::2

👉 Uses both interface + next-hop

 

⚙️ Steps to Configure IPv6 Static Routing 

 

🔧 Step-by-Step Configuration :-

 

1️⃣ Enable Privileged Mode

Router> enable

 

2️⃣ Enter Global Configuration Mode

Router# configure terminal

 

3️⃣ Enable IPv6 Routing

Router(config)# ipv6 unicast-routing

 

4️⃣ Configure IPv6 Address on Interface

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

 

5️⃣ Configure Static Route

Router(config)# ipv6 route 2001:db8:2::/64 2001:db8:1::2

 

6️⃣ Exit Configuration Mode

Router(config)# end

 

7️⃣ Verify Configuration

show ipv6 route

👉 Shows routing table

 

ping 2001:db8:2::1

👉 Tests connectivity

 

📊 Complete Example

Router> enable
Router# configure terminal
Router(config)# ipv6 unicast-routing

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

Router(config)# ipv6 route 2001:db8:2::/64 2001:db8:1::2

Router(config)# end
Router# show ipv6 route

 

✨ Key Features

  • Manual routing configuration 
  • No automatic updates 
  • Full control over routing 
  • Suitable for small networks 

 

✅ Advantages

  • Simple to configure 
  • No routing overhead 
  • Secure (no route advertisements) 
  • Predictable path selection 

 

❌ Disadvantages

  • Not scalable 
  • Requires manual updates 
  • Difficult in large networks 
  • No automatic adaptation 

 

🎯 Key Idea

👉 IPv6 Static Routing =
Manual + Prefix + Next-Hop


 

 

🌐 IPv6 Static Routing Configuration in Multi-LAN Topology

 

📖 Introduction

In this setup, IPv6 static routing is configured in a network with four LANs connected through multiple routers, where each router is manually configured with routes using the ipv6 route command to enable communication between different networks, allowing successful end-to-end connectivity such as from PC1 to Server1.

🧠 Topology Overview

👉 This topology consists of:

  • 4 LANs 
  • 3 Routers 
  • Devices:  
    • PC1, PC2 (LAN 1) 
    • Server1, Server2 (LAN 4) 

 

🌐 IPv6 Addressing Scheme

🟡 LAN 1 - FC00:1111:2222:3333::/64

🟣 LAN 2 - FC00:1112:2222:3333::/64

🟠 LAN 3 - FC00:1113:2222:3333::/64

🟢 LAN 4 - FC00:1114:2222:3333::/64

 

⚠️ Important Step

👉 Enable IPv6 routing on all routers:

ipv6 unicast-routing

 

⚙️ Router Configurations :-

 

🔧 GATEWAY1 CONFIGURATION

Router> enable
Router# configure terminal
Router(config)# hostname GATEWAY1

GATEWAY1(config)# ipv6 unicast-routing

GATEWAY1(config)# interface fa0/0
GATEWAY1(config-if)# ipv6 address FC00:1111:2222:3333::1/64
GATEWAY1(config-if)# no shutdown
GATEWAY1(config-if)# exit

GATEWAY1(config)# interface fa0/1
GATEWAY1(config-if)# ipv6 address FC00:1112:2222:3333::1/64
GATEWAY1(config-if)# no shutdown
GATEWAY1(config-if)# exit

GATEWAY1(config)# ipv6 route FC00:1113:2222:3333::/64 FC00:1112:2222:3333::2
GATEWAY1(config)# ipv6 route FC00:1114:2222:3333::/64 FC00:1112:2222:3333::2

GATEWAY1(config)# exit

 

🔧 ROUTER1 CONFIGURATION

Router> enable
Router# configure terminal
Router(config)# hostname ROUTER1

ROUTER1(config)# ipv6 unicast-routing

ROUTER1(config)# interface fa0/0
ROUTER1(config-if)# ipv6 address FC00:1112:2222:3333::2/64
ROUTER1(config-if)# no shutdown
ROUTER1(config-if)# exit

ROUTER1(config)# interface fa0/1
ROUTER1(config-if)# ipv6 address FC00:1113:2222:3333::1/64
ROUTER1(config-if)# no shutdown
ROUTER1(config-if)# exit

ROUTER1(config)# ipv6 route FC00:1111:2222:3333::/64 FC00:1112:2222:3333::1
ROUTER1(config)# ipv6 route FC00:1114:2222:3333::/64 FC00:1113:2222:3333::2

ROUTER1(config)# exit

 

🔧 GATEWAY2 CONFIGURATION

Router> enable
Router# configure terminal
Router(config)# hostname GATEWAY2

GATEWAY2(config)# ipv6 unicast-routing

GATEWAY2(config)# interface fa0/0
GATEWAY2(config-if)# ipv6 address FC00:1113:2222:3333::2/64
GATEWAY2(config-if)# no shutdown
GATEWAY2(config-if)# exit

GATEWAY2(config)# interface fa0/1
GATEWAY2(config-if)# ipv6 address FC00:1114:2222:3333::1/64
GATEWAY2(config-if)# no shutdown
GATEWAY2(config-if)# exit

GATEWAY2(config)# ipv6 route FC00:1111:2222:3333::/64 FC00:1113:2222:3333::1
GATEWAY2(config)# ipv6 route FC00:1112:2222:3333::/64 FC00:1113:2222:3333::1

GATEWAY2(config)# exit

 

💻 End Device IPv6 Configuration Example

PC1 :-

IPv6 Address: FC00:1111:2222:3333::4444
Gateway: FC00:1111:2222:3333::1

Server1 :-

IPv6 Address: FC00:1114:2222:3333::2222
Gateway: FC00:1114:2222:3333::1

 

📊 Verification

 

🔗 Connectivity Test :-

 

📖 Description

After configuring IPv6 static routing on all routers, it is important to verify whether end-to-end communication is working properly, and this can be done by sending ICMP echo requests (ping) from one device to another device located in a different network.

 

🧠 Test Scenario

👉We are pinging from PC1 (LAN 1) to Server1 (LAN 4)

 

💻 Command

ping FC00:1114:2222:3333::2222

 

✅ Expected Result

  • You should receive reply messages 
  • This confirms that routing is working correctly 
  • All routers are forwarding packets properly 

 

🔍 Routing Table Verification :

 

📖 Description

Routing table verification is used to check whether the static routes configured on the router are correctly installed, and it helps to confirm that the router knows the path to reach all remote networks.

 

💻 Command

show ipv6 route

 

🧠 What to Check

  • Presence of static routes (S) 
  • Correct destination networks  
  • Proper next-hop addresses 

 

✅ Expected Result

  • All remote networks should be visible 
  • Routes should be marked with S (Static) 
  • No missing routes 

 

🎯 Final Verification Understanding

If:

  • Ping is successful ✔ 
  • Routing table shows correct routes ✔ 

👉 Then configuration is successful and complete

 

⚠️ Important Points

  • Enable ipv6 unicast-routing 
  • Assign IPv6 to all interfaces 
  • Configure correct static routes 
  • Use correct prefix (/64) 
  • Gateway must be correct 

 

🎯 Summary

In this topology, IPv6 static routing is configured manually on all routers, where each router is provided with routes to reach remote networks, and communication is successfully verified from PC1 to Server1.

👉 Start your IPv6 practical lab now:

https://www.evisiontechnoserve.com/internships/it/45-days-job-internship-program-live