This comprehensive learning management system provides everything you need to master Cisco networking concepts and pass your CCNA certification.
๐ข IPv4 & IPv6 Fundamentals
Master IP addressing, subnetting, and IPv6 implementation with interactive tools and animations.
45% Complete
๐ Network Fundamentals
Learn OSI model, TCP/IP, ethernet, and basic networking concepts.
30% Complete
๐ Switching Technologies
VLANs, STP, port security, and Layer 2 switching concepts.
20% Complete
๐ก Routing Technologies
Static routing, OSPF, EIGRP, and routing protocols.
15% Complete
๐ Network Security
ACLs, VPNs, wireless security, and network access control.
10% Complete
๐ ๏ธ Network Management
Monitoring, troubleshooting, and network automation basics.
5% Complete
๐ IPv4 & IPv6 Complete Guide
Master IP addressing from basics to advanced concepts with interactive tools and step-by-step explanations
๐ฏ Introduction to IP Addressing
Internet Protocol (IP) addressing is the foundation of network communication. Every device on a network needs a unique identifier to send and receive data. This comprehensive guide will take you through both IPv4 and IPv6 addressing schemes.
๐ Learning Objectives:
Understand IPv4 and IPv6 address structures
Master subnetting and VLSM concepts
Learn address types and special addresses
Practice with interactive calculators and tools
๐ข IPv4 Fundamentals
What is IPv4?
IPv4 (Internet Protocol version 4) uses 32-bit addresses, typically written in dotted decimal notation (e.g., 192.168.1.1). Each address consists of 4 octets, with each octet ranging from 0 to 255.
IPv4 addresses are divided into classes based on the first octet value. Each class has different characteristics for network size and usage.
Class
First Octet Range
Complete IP Range
Default Subnet Mask
CIDR
Networks
Hosts per Network
Class A
1 - 126
1.0.0.0 - 126.255.255.255
255.0.0.0
/8
126
16,777,214
Class B
128 - 191
128.0.0.0 - 191.255.255.255
255.255.0.0
/16
16,384
65,534
Class C
192 - 223
192.0.0.0 - 223.255.255.255
255.255.255.0
/24
2,097,152
254
Class D
224 - 239
224.0.0.0 - 239.255.255.255
N/A
N/A
Multicast
Class E
240 - 255
240.0.0.0 - 255.255.255.255
N/A
N/A
Experimental/Reserved
๐ฏ Class Identification Rule:
Look at the first octet to determine the class:
โข 1-126: Class A (Very large networks)
โข 128-191: Class B (Medium networks)
โข 192-223: Class C (Small networks)
โข 224-239: Class D (Multicast)
โข 240-255: Class E (Reserved)
๐ Private IP Ranges (LAN/Internal Networks)
Private IP addresses are used for internal networks and are not routable on the public internet. These addresses are defined in RFC 1918.
Class
Private IP Range
CIDR Notation
Number of IPs
Common Usage
Class A
10.0.0.0 - 10.255.255.255
10.0.0.0/8
16,777,216
Large organizations, ISPs
Class B
172.16.0.0 - 172.31.255.255
172.16.0.0/12
1,048,576
Medium businesses
Class C
192.168.0.0 - 192.168.255.255
192.168.0.0/16
65,536
Home networks, small offices
Special Private Ranges:
โข APIPA: 169.254.0.0/16 (Automatic Private IP Addressing)
โข Loopback: 127.0.0.0/8 (localhost, testing)
โข Link-Local: 169.254.0.0/16 (Auto-assigned when DHCP fails)
๐ Public IP Ranges (WAN/Internet)
Public IP addresses are globally unique and routable on the internet. These are all IPv4 addresses except for the private, reserved, and special-use ranges.
๐ Notable Public IP Examples:
โข 8.8.8.8, 8.8.4.4: Google Public DNS
โข 1.1.1.1, 1.0.0.1: Cloudflare DNS
โข 208.67.222.222: OpenDNS
โข 74.125.224.72: Google.com (example)
โข 157.240.241.35: Facebook.com (example)
Public IP Address Space Distribution:
Total IPv4 addresses: ~4.3 billion
Private addresses: ~18 million
Special/Reserved: ~268 million Available Public: ~4 billion addresses
Public IP Characteristics:
Globally Unique: No two devices on the internet can have the same public IP
Routable: Can be reached from anywhere on the internet
Assigned by ISPs: Internet Service Providers manage public IP allocation
Cost: Public IPs are a limited resource and may incur costs
Managed by IANA: Internet Assigned Numbers Authority oversees global allocation
Regional Distribution: Allocated to Regional Internet Registries (RIRs)
๐ IPv4 Class & Type Identification Tool
IP Address Analyzer
๐ Practice Examples
1
Example: 10.1.1.100
First octet: 10 (1-126 range) โ Class A
Range check: 10.0.0.0 - 10.255.255.255 โ Private IP
Usage: Internal network, not internet routable
2
Example: 172.20.1.50
First octet: 172 (128-191 range) โ Class B
Range check: 172.16.0.0 - 172.31.255.255 โ Private IP
Usage: Corporate internal network
3
Example: 8.8.8.8
First octet: 8 (1-126 range) โ Class A
Range check: Not in private ranges โ Public IP
Usage: Google's public DNS server, internet routable
4
Example: 192.168.0.1
First octet: 192 (192-223 range) โ Class C
Range check: 192.168.0.0 - 192.168.255.255 โ Private IP
Usage: Common home router default gateway
5
Example: 203.0.113.15
First octet: 203 (192-223 range) โ Class C
Range check: Not in private ranges โ Public IP
Usage: Internet routable address
๐ Quick Identification Tips:
1. Check first octet for class identification
2. Match against private ranges: 10.x.x.x, 172.16-31.x.x, 192.168.x.x
3. If not private = public (with few exceptions like loopback)
4. Special cases: 127.x.x.x (loopback), 169.254.x.x (APIPA)
Task: Classify these IP addresses and determine if they're private or public:
172.15.1.1
10.255.255.254
192.169.1.1
172.32.1.1
127.0.0.1
Answers:
1. 172.15.1.1: Class B, Public (172.15 is outside 172.16-31 range)
2. 10.255.255.254: Class A, Private (10.x.x.x range)
3. 192.169.1.1: Class C, Public (192.169 is outside 192.168 range)
4. 172.32.1.1: Class B, Public (172.32 is outside 172.16-31 range)
5. 127.0.0.1: Class A, Special (Loopback address)
๐ง Subnetting Made Simple
Subnetting allows you to divide a large network into smaller, more manageable subnetworks. This improves network performance, security, and organization.
1
Determine Requirements:
Calculate how many subnets and hosts you need.
2
Choose Subnet Mask:
Borrow bits from the host portion for subnet addressing.
3
Calculate Subnets:
Use the formula: 2^n = number of subnets (where n = borrowed bits).
๐งฎ Interactive Subnet Calculator
๐งช Practical Lab Exercise
Scenario: You need to subnet 192.168.1.0/24 for 4 departments with the following requirements:
Sales: 50 hosts
Engineering: 25 hosts
HR: 10 hosts
IT: 5 hosts
Solution approach: Use VLSM (Variable Length Subnet Masking) to efficiently allocate address space.
IPv6 uses 128-bit addresses, providing virtually unlimited address space. It was designed to solve IPv4 address exhaustion and includes built-in security and mobility features.
IPv6 Address Structure:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
8 groups of 4 hexadecimal digits separated by colons
IPv6 Address Types
Type
Prefix
Description
Example
Global Unicast
2000::/3
Internet routable addresses
2001:db8::/32
Link-Local
fe80::/10
Local network communication
fe80::1
Unique Local
fc00::/7
Private addressing
fd00::/8
Multicast
ff00::/8
One-to-many communication
ff02::1
IPv6 Address Shortening Rules
1
Remove Leading Zeros:
2001:0db8:0000:0042 โ 2001:db8:0:42
Use :: Only Once:
The double colon can only appear once in an address.
โ๏ธ IPv4 vs IPv6 Comparison
Feature
IPv4
IPv6
Address Length
32 bits
128 bits
Address Space
~4.3 billion
340 undecillion
Address Format
Dotted decimal
Hexadecimal with colons
Header Size
20-60 bytes
40 bytes (fixed)
Security
Optional (IPSec)
Built-in (IPSec mandatory)
Auto-configuration
DHCP required
Stateless auto-config
๐ Key Takeaways:
IPv6 provides vastly more address space than IPv4
IPv6 has built-in security and mobility features
Both protocols will coexist during the transition period
Understanding both is crucial for modern networking
๐ข Binary Conversion Tool
Understanding binary is crucial for IP addressing. Use this interactive tool to practice binary-to-decimal conversion:
Binary to Decimal Converter
Decimal Value: 0
โ Practice Questions
Question 1: Subnetting
Given the network 172.16.0.0/16, create 8 equal-sized subnets. What is the subnet mask and the first three subnet addresses?
Answer:
- Subnet Mask: /19 (255.255.224.0)
- First subnet: 172.16.0.0/19
- Second subnet: 172.16.32.0/19
- Third subnet: 172.16.64.0/19
Question 2: IPv6
Compress the following IPv6 address: 2001:0db8:0000:0000:0000:ff00:0042:8329
Answer:
Original: 2001:0db8:0000:0000:0000:ff00:0042:8329
Compressed: 2001:db8::ff00:42:8329
(Remove leading zeros and compress consecutive zero groups with ::)
Question 3: VLSM
You have been assigned 10.1.1.0/24. Create subnets for: Dept A (100 hosts), Dept B (50 hosts), Dept C (20 hosts), Point-to-point links (2 hosts each, need 3 links).
CIDR notation (/24, /16, etc.) allows for more flexible addressing than traditional class-based addressing.
CIDR
Subnet Mask
Hosts Available
Networks
/30
255.255.255.252
2
Point-to-point links
/29
255.255.255.248
6
Very small networks
/28
255.255.255.240
14
Small departments
/27
255.255.255.224
30
Medium departments
/26
255.255.255.192
62
Large departments
IPv6 Transition Mechanisms
Dual Stack: Running both IPv4 and IPv6 simultaneously Tunneling: Encapsulating IPv6 packets in IPv4 (6to4, Teredo) Translation: Converting between IPv4 and IPv6 (NAT64)
๐ Summary & Next Steps
๐ฏ What You've Learned:
IPv4 address structure and classes
Subnetting and VLSM techniques
IPv6 addressing and features
Binary to decimal conversion
Troubleshooting IP issues
Advanced concepts like NAT and CIDR
๐ Recommended Next Steps:
Practice More: Use online subnet calculators and practice problems
Lab Environment: Set up a virtual lab with Cisco Packet Tracer
Real Implementation: Configure IP addressing on actual network devices
Advanced Topics: Study routing protocols (OSPF, EIGRP)
Certification: Prepare for CCNA exam with focused study
# Quick Reference Commands
show ip interface brief # Show interface IP addresses
show ipv6 interface brief # Show IPv6 interface addresses
ip route 0.0.0.0 0.0.0.0 [gateway] # Configure default route
ipv6 unicast-routing # Enable IPv6 routing
no shutdown # Activate interface
๐ Available Courses
Comprehensive CCNA curriculum with hands-on labs and real-world scenarios.
Module 1: Network Fundamentals
OSI Model, TCP/IP, Ethernet, Network Topologies
12 Lessons โข 3 Labs โข 2 Exams
Module 2: IP Addressing & Subnetting
IPv4, IPv6, VLSM, Summarization
15 Lessons โข 5 Labs โข 3 Exams
Module 3: Switching Technologies
VLANs, STP, EtherChannel, Port Security
18 Lessons โข 8 Labs โข 4 Exams
๐งช Virtual Lab Environment
Practice with Cisco Packet Tracer simulations and hands-on IPv4/IPv6 configuration labs.
๐ฅ Download Required:Cisco Packet Tracer (Free with Cisco Networking Academy account)
๐ข IPv4 & IPv6 Practical Labs
๐ฌ Lab 1: Basic IPv4 Network Configuration
Objective: Configure IPv4 addresses on routers and PCs, test connectivity
Router> enable
Router# configure terminal
Router(config)# hostname Router1
Router1(config)# interface g0/0
Router1(config-if)# ip address 192.168.1.1 255.255.255.0
Router1(config-if)# no shutdown
Router1(config-if)# exit
Router1(config)# interface g0/1
Router1(config-if)# ip address 10.1.1.1 255.255.255.252
Router1(config-if)# no shutdown
Router1(config-if)# exit
Router1(config)# ip route 192.168.2.0 255.255.255.0 10.1.1.2
2
Router2 Configuration:
Router> enable
Router# configure terminal
Router(config)# hostname Router2
Router2(config)# interface g0/0
Router2(config-if)# ip address 10.1.1.2 255.255.255.252
Router2(config-if)# no shutdown
Router2(config-if)# exit
Router2(config)# interface g0/1
Router2(config-if)# ip address 192.168.2.1 255.255.255.0
Router2(config-if)# no shutdown
Router2(config-if)# exit
Router2(config)# ip route 192.168.1.0 255.255.255.0 10.1.1.1
3
PC Configuration:
PC1: IP=192.168.1.10, Subnet=255.255.255.0, Gateway=192.168.1.1
PC2: IP=192.168.2.10, Subnet=255.255.255.0, Gateway=192.168.2.1
4
Testing Commands:
# From PC1 Command Prompt:
ping 192.168.1.1 # Test local gateway
ping 10.1.1.1 # Test router WAN interface
ping 192.168.2.10 # Test remote PC
# From Router CLI:
show ip interface brief # Verify interface status
show ip route # Check routing table
ping 192.168.2.10 # Test end-to-end connectivity
๐ฌ Lab 2: IPv4 VLSM Subnetting Implementation
Objective: Implement Variable Length Subnet Masking for different department sizes
Create Network Topology:
โข Use 1 Core Router (2911) + 4 Access Switches (2960)
โข Connect departments via switch interfaces
โข Add PCs to represent each department
2
Router Interface Configuration:
interface g0/0
description Sales-Department
ip address 172.16.1.1 255.255.255.128
no shutdown
interface g0/1
description Engineering-Department
ip address 172.16.1.129 255.255.255.192
no shutdown
interface g0/2
description HR-Department
ip address 172.16.1.193 255.255.255.224
no shutdown
interface g1/0
description Management-Department
ip address 172.16.1.225 255.255.255.240
no shutdown
3
Verification Commands:
show ip interface brief
show ip route connected
ping 172.16.1.10 # Test Sales PC
ping 172.16.1.130 # Test Engineering PC
ping 172.16.1.194 # Test HR PC
ping 172.16.1.226 # Test Management PC
๐ฌ Lab 3: IPv6 Basic Configuration & Addressing
Objective: Configure IPv6 addresses and enable IPv6 routing
show ipv6 dhcp pool
show ipv6 dhcp binding
show ipv6 interface g0/0
debug ipv6 dhcp detail
๐ฌ Lab 5: IPv4/IPv6 Dual Stack Implementation
Objective: Configure both IPv4 and IPv6 on the same network infrastructure
Dual Stack Design:
IPv4 Network: 192.168.1.0/24
IPv6 Network: 2001:db8:1::/64
Router Interface will have both:
- IPv4: 192.168.1.1/24
- IPv6: 2001:db8:1::1/64
1
Dual Stack Router Configuration:
Router(config)# ipv6 unicast-routing
Router(config)# interface g0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# ipv6 address 2001:db8:1::1/64
Router(config-if)# ipv6 address fe80::1 link-local
Router(config-if)# no shutdown
# Enable both IPv4 and IPv6 routing protocols
Router(config)# router ospf 1
Router(config-router)# network 192.168.1.0 0.0.0.255 area 0
Router(config)# ipv6 router ospf 1
Router(config-rtr)# router-id 1.1.1.1
Router(config-if)# ipv6 ospf 1 area 0
2
PC Dual Stack Configuration:
IPv4: 192.168.1.10/24, Gateway: 192.168.1.1
IPv6: Auto (SLAAC) or Manual: 2001:db8:1::10/64
3
Testing Both Protocols:
# IPv4 Tests:
ping 192.168.1.1
ping 8.8.8.8
# IPv6 Tests:
ping 2001:db8:1::1
ping 2001:4860:4860::8888
# Verify both stacks:
show ip interface brief
show ipv6 interface brief
show ip route
show ipv6 route