Back to Dashboard
Module 15
IPv6 Addressing and Configuration
โ Previous Module
Next Module โ
# ๐ CCNA 200-301 - Video 15: IPv6 Addressing and Configuration ## Deep Study Notes --- ## ๐ Learning Objectives By the end of this video, you should understand: - Why IPv6 is necessary - IPv6 address format and types - IPv6 address shortening rules - IPv6 address types (Unicast, Multicast, Anycast) - IPv6 address configuration methods (Static, SLAAC, DHCPv6) - IPv6 configuration on routers and switches --- ## ๐ง Core Concepts ### 1. Why IPv6? **Problem:** IPv4 has only 4.3 billion addresses, which is insufficient for modern internet-connected devices. **Analogy:** IPv4 is like a 10-digit phone number system in a small town. As the town grows into a city, you run out of phone numbers. IPv6 is like adding area codes, country codes, and more digits to create billions of possible numbers. ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ IPv4 vs. IPv6 COMPARISON โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ IPv4: โ โ โโโ 32-bit addresses โ โ โโโ 4.3 billion addresses (~4.3 ร 10โน) โ โ โโโ Dotted decimal notation: 192.168.1.1 โ โ โโโ Exhausted (no new public /8 allocations) โ โ โ โ IPv6: โ โ โโโ 128-bit addresses โ โ โโโ 340 undecillion addresses (3.4 ร 10ยณโธ) โ โ โโโ Hexadecimal colon notation: 2001:0db8:0000:0000:0000:ff00:0042:8329 โ โ โโโ Enough for every atom on Earth ร 100 โ โ โโโ No NAT required (end-to-end connectivity) โ โ โ โ IPv4 vs. IPv6 Address Count: โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ IPv4: 2ยณยฒ = 4,294,967,296 addresses โ โ โ โ IPv6: 2ยนยฒโธ = 340,282,366,920,938,463,463,374,607,431,768,211,456 โ โ โ โ = 340 undecillion addresses โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` **IPv6 Key Features:** | Feature | Description | |---------|-------------| | **Larger Address Space** | 128-bit addresses vs. 32-bit IPv4 | | **No NAT** | Enough addresses for every device to have public IP | | **Built-in Security** | IPsec required by default | | **Simplified Header** | Fixed 40-byte header, no checksum | | **Autoconfiguration** | SLAAC allows devices to auto-configure | | **Multicast & Anycast** | Built-in support; no broadcast | | **Better QoS** | Flow label field for traffic classification | --- ### 2. IPv6 Address Format **128-bit address represented as 8 groups of 4 hexadecimal digits:** ``` 2001:0db8:0000:0000:0000:ff00:0042:8329 โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โโโ 16 bits (4 hex digits) โ โ โ โ โ โ โโโโโโโโ 16 bits โ โ โ โ โ โโโโโโโโโโโโโ 16 bits โ โ โ โ โโโโโโโโโโโโโโโโโโ 16 bits โ โ โ โโโโโโโโโโโโโโโโโโโโโโโ 16 bits โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ 16 bits โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 16 bits โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 16 bits Total: 16 bits ร 8 = 128 bits ``` **Binary Representation:** ``` 2001:0db8:0000:0000:0000:ff00:0042:8329 2001 = 0010 0000 0000 0001 (16 bits) 0db8 = 0000 1101 1011 1000 0000 = 0000 0000 0000 0000 0000 = 0000 0000 0000 0000 0000 = 0000 0000 0000 0000 ff00 = 1111 1111 0000 0000 0042 = 0000 0000 0100 0010 8329 = 1000 0011 0010 1001 ``` --- ### 3. IPv6 Address Shortening Rules **Rule 1: Leading zeros can be omitted in each block** ``` Original: 2001:0db8:0000:0000:0000:ff00:0042:8329 After Rule 1:2001:db8:0:0:0:ff00:42:8329 ``` **Rule 2: Consecutive blocks of zeros can be replaced with :: (only once)** ``` After Rule 1: 2001:db8:0:0:0:ff00:42:8329 After Rule 2: 2001:db8::ff00:42:8329 ``` **Valid Shortening Examples:** | Original | Shortened | |----------|-----------| | 2001:0db8:0000:0000:0000:0000:0000:0001 | 2001:db8::1 | | 2001:0db8:0000:0000:0000:0000:0000:0000 | 2001:db8:: | | 2001:0db8:0000:0000:1111:0000:0000:0001 | 2001:db8::1111:0:0:1 or 2001:db8:0:0:1111::1 | | 2001:0db8:0001:0000:0000:0000:0000:0000 | 2001:db8:1:: | **Common Mistakes:** - Using :: more than once (ambiguous) - 2001:db8::1::2 (INVALID) - Leaving more than 8 groups after expansion --- ### 4. IPv6 Prefix Representation **IPv6 uses CIDR notation (prefix/length):** ``` 2001:0db8:1234:5678::/64 โ โ โ โโโ Prefix length (bits) โโโโโโโโโโโโโโโโโโโโโโโโ Network prefix (first 64 bits) ``` **Common Prefix Lengths:** | Prefix | Network Bits | Host Bits | Number of Subnets/Network | |--------|--------------|-----------|---------------------------| | /128 | 128 | 0 | Single host (loopback) | | /64 | 64 | 64 | Standard subnet (most common) | | /56 | 56 | 72 | Larger subnets for enterprises | | /48 | 48 | 80 | Typical site prefix (ISP allocation) | | /32 | 32 | 96 | ISP allocation to customer | **Why /64 is Standard:** - EUI-64 addressing requires 64 bits for interface ID - SLAAC requires /64 for autoconfiguration - Allows 18,446,744,073,709,551,616 hosts per subnet --- ### 5. IPv6 Address Types **Three Main Types:** ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ IPv6 ADDRESS TYPES โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ 1. UNICAST - One-to-one communication โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โข Global Unicast: Routable on internet โ โ โ โ โข Link-Local: FE80::/10, only on local link โ โ โ โ โข Unique Local: FD00::/8, private, routable within organization โ โ โ โ โข Loopback: ::1/128 โ โ โ โ โข Unspecified: ::/128 โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ 2. MULTICAST - One-to-many communication โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โข FF00::/8 โ โ โ โ โข Replaces IPv4 broadcast โ โ โ โ โข Well-known: FF02::1 (all nodes), FF02::2 (all routers) โ โ โ โ โข Solicited-Node: FF02::1:FFxx:xxxx (for NDP) โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ 3. ANYCAST - One-to-nearest communication โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โข Same address assigned to multiple devices โ โ โ โ โข Packets delivered to nearest device โ โ โ โ โข Used for DNS servers, load balancing โ โ โ โ โข Anycast addresses look like unicast โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` --- ### 6. IPv6 Unicast Address Types **Global Unicast Address (GUA):** ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ GLOBAL UNICAST ADDRESS FORMAT โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ Bits: 3 45 16 64 โ โ โโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ 001 โ Global ID โ Subnet ID โ Interface ID โ โ โ โ โ (45 bits) โ (16 bits) โ (64 bits) โ โ โ โโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ Range: 2000::/3 (2000:: to 3FFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF) โ โ โ โ Example: 2001:0db8:1234:5678:0000:0000:0000:0001/64 โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` **Link-Local Address (LLA):** ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ LINK-LOCAL ADDRESS FORMAT โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ Bits: 10 54 64 โ โ โโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ 1111111010 โ Zeros โ Interface ID โ โ โ โ FE80:: โ (54 bits) โ (64 bits) โ โ โ โโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ Range: FE80::/10 โ โ โ โ Example: FE80::1 โ โ โ โ Characteristics: โ โ โข Automatically configured on every IPv6 interface โ โ โข Only valid on local link (not routable) โ โ โข Used for NDP, routing protocols, next-hop addressing โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` **Unique Local Address (ULA):** ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ UNIQUE LOCAL ADDRESS FORMAT โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ Bits: 7 1 40 16 64 โ โ โโโโโโโฌโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโ โ โ โ FD โ L โ Global ID โ Subnet ID โ Interface ID โ โ โ โ โ (1) โ (40 bits) โ (16 bits) โ (64 bits) โ โ โ โโโโโโโดโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ Range: FC00::/7 (FD00::/8 for locally assigned) โ โ โ โ Example: FD00:1234:5678:1::1/64 โ โ โ โ Characteristics: โ โ โข Private, not routable on internet โ โ โข Similar to IPv4 private addresses โ โ โข Routable within organization โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` **Special Addresses:** | Address | Purpose | |---------|---------| | `::1/128` | Loopback (equivalent to 127.0.0.1) | | `::/128` | Unspecified address (used as source when no address) | | `::/0` | Default route | | `::/96` | IPv4-mapped IPv6 address (deprecated) | --- ### 7. IPv6 Multicast Addresses **Well-Known Multicast Addresses:** | Address | Scope | Purpose | |---------|-------|---------| | `FF02::1` | Link-Local | All nodes | | `FF02::2` | Link-Local | All routers | | `FF02::5` | Link-Local | OSPFv3 routers | | `FF02::6` | Link-Local | OSPFv3 designated routers | | `FF02::9` | Link-Local | RIPng routers | | `FF02::A` | Link-Local | EIGRP routers | | `FF02::1:FFxx:xxxx` | Link-Local | Solicited-Node (last 24 bits of unicast) | **Solicited-Node Multicast:** - Used for NDP (Neighbor Discovery Protocol) - Address: FF02::1:FF + last 24 bits of unicast address - Example: For address 2001:db8::1, solicited-node is FF02::1:FF00:0001 --- ### 8. IPv6 Interface Identifier (EUI-64) **EUI-64 Format:** 64-bit interface ID derived from MAC address ``` MAC Address: 00:1A:2B:3C:4D:5E MAC (hex): 00-1A-2B-3C-4D-5E Step 1: Split MAC into two halves 00-1A-2B 3C-4D-5E Step 2: Insert FFFE in the middle 00-1A-2B-FF-FE-3C-4D-5E Step 3: Flip the 7th bit (Universal/Local bit) 00-1A-2B โ 00000000 00011010 00101011 Flip bit 7: 00000010 00011010 00101011 02-1A-2B Step 4: Resulting EUI-64 address 021A:2BFF:FE3C:4D5E ``` **EUI-64 Example:** ``` MAC: 00:1A:2B:3C:4D:5E EUI-64: 021A:2BFF:FE3C:4D5E ``` **Configuring EUI-64:** ```cisco ! Configure IPv6 address using EUI-64 interface GigabitEthernet0/0 ipv6 address 2001:db8:1:1::/64 eui-64 ! Results in: 2001:db8:1:1:021A:2BFF:FE3C:4D5E/64 ``` --- ### 9. IPv6 Address Configuration Methods | Method | Description | Use Case | |--------|-------------|----------| | **Static** | Manual configuration | Routers, servers, critical infrastructure | | **SLAAC** | Router Advertisement + EUI-64 | Clients, IoT devices | | **Stateless DHCPv6** | SLAAC for addressing, DHCPv6 for other info | Need DNS but want SLAAC addressing | | **Stateful DHCPv6** | DHCPv6 for everything | Full control over addressing | ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ IPv6 ADDRESS CONFIGURATION METHODS โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ STATIC CONFIGURATION: โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ Router(config-if)# ipv6 address 2001:db8:1:1::1/64 โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ SLAAC (Stateless Address Autoconfiguration): โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ Router sends RA (Router Advertisement) with prefix โ โ โ โ Client uses EUI-64 to create interface ID โ โ โ โ Client performs DAD (Duplicate Address Detection) โ โ โ โ Client configures address โ โ โ โ โ โ โ โ Client(config-if)# ipv6 address autoconfig โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ STATELESS DHCPv6: โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โข Router sends RA with "Other Configuration" flag โ โ โ โ โข Client uses SLAAC for IP address โ โ โ โ โข Client uses DHCPv6 for DNS, domain, etc. โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ STATEFUL DHCPv6: โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โข Router sends RA with "Managed Address Configuration" flag โ โ โ โ โข Client gets both IP and other info from DHCPv6 server โ โ โ โ โ โ โ โ Client(config-if)# ipv6 address dhcp โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` --- ### 10. Neighbor Discovery Protocol (NDP) **NDP replaces ARP in IPv4:** | IPv4 Function | IPv6 NDP Function | |---------------|-------------------| | ARP (address resolution) | Neighbor Solicitation / Neighbor Advertisement | | ICMP Router Discovery | Router Solicitation / Router Advertisement | | ICMP Redirect | ICMPv6 Redirect | **NDP Message Types:** | Type | ICMPv6 Type | Purpose | |------|-------------|---------| | **Router Solicitation (RS)** | 133 | Client requests router information | | **Router Advertisement (RA)** | 134 | Router announces prefix and configuration flags | | **Neighbor Solicitation (NS)** | 135 | Address resolution, DAD | | **Neighbor Advertisement (NA)** | 136 | Response to NS | | **Redirect** | 137 | Better next-hop information | ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ NDP PROCESS - ADDRESS RESOLUTION โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ PC1 (2001:db8::1) PC2 (2001:db8::2) โ โ โ โ โ โ โ NS: Who has 2001:db8::2? โ โ โ โ (Sent to solicited-node multicast) โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ โ โ โ โ โ โ NA: 2001:db8::2 is at MAC AA:BB โ โ โ โ (Sent unicast) โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ โ โ โ โ โ NDP PROCESS - DAD (Duplicate Address Detection): โ โ โ โ PC1 acquires new address: 2001:db8::3 โ โ โ โ โ โ โ NS: Who has 2001:db8::3? (sending to itself) โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ (all nodes) โ โ โ โ โ โ โ If no NA received, address is unique โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` --- ### 11. IPv6 Configuration on Routers **Basic IPv6 Configuration:** ```cisco ! Enable IPv6 routing globally Router(config)# ipv6 unicast-routing ! Configure IPv6 on interface Router(config)# interface gigabitEthernet 0/0 Router(config-if)# ipv6 address 2001:db8:1:1::1/64 Router(config-if)# ipv6 enable ! Enables link-local address Router(config-if)# no shutdown Router(config-if)# exit ! Configure IPv6 static route Router(config)# ipv6 route 2001:db8:2::/64 2001:db8:1:1::2 ! Configure IPv6 default route Router(config)# ipv6 route ::/0 2001:db8:1:1::2 ! Verify configuration Router# show ipv6 interface brief Router# show ipv6 route ``` **IPv6 EUI-64 Configuration:** ```cisco ! Configure interface with EUI-64 Router(config)# interface gigabitEthernet 0/0 Router(config-if)# ipv6 address 2001:db8:1:1::/64 eui-64 ! Router MAC used to generate interface ID ``` **IPv6 SLAAC Configuration:** ```cisco ! Router sends Router Advertisements Router(config)# interface gigabitEthernet 0/0 Router(config-if)# ipv6 address 2001:db8:1:1::1/64 Router(config-if)# ipv6 nd prefix 2001:db8:1:1::/64 Router(config-if)# ipv6 nd ra-interval 200 Router(config-if)# no ipv6 nd suppress-ra ! Enable RAs (default) ! Client configuration Client(config)# interface gigabitEthernet 0/0 Client(config-if)# ipv6 address autoconfig ``` **DHCPv6 Server Configuration:** ```cisco ! Configure DHCPv6 pool Router(config)# ipv6 dhcp pool DHCP_POOL Router(config-dhcpv6)# address prefix 2001:db8:1:1::/64 Router(config-dhcpv6)# dns-server 2001:4860:4860::8888 Router(config-dhcpv6)# domain-name example.com Router(config-dhcpv6)# exit ! Apply DHCPv6 to interface Router(config)# interface gigabitEthernet 0/0 Router(config-if)# ipv6 address 2001:db8:1:1::1/64 Router(config-if)# ipv6 dhcp server DHCP_POOL Router(config-if)# ipv6 nd managed-config-flag ! Stateful DHCPv6 ``` --- ### 12. IPv6 Verification Commands | Command | Purpose | |---------|---------| | `show ipv6 interface brief` | Display IPv6 interface status | | `show ipv6 interface [interface]` | Detailed interface IPv6 info | | `show ipv6 route` | Display IPv6 routing table | | `show ipv6 neighbors` | Display NDP neighbor cache (IPv6 ARP) | | `show ipv6 routers` | Display IPv6 router advertisements received | | `show ipv6 dhcp pool` | Display DHCPv6 pool configuration | | `ping ipv6 [address]` | Test IPv6 connectivity | | `traceroute ipv6 [address]` | Trace IPv6 route | **Example Outputs:** ```cisco Router# show ipv6 interface brief GigabitEthernet0/0 [up/up] FE80::1 2001:DB8:1:1::1 GigabitEthernet0/1 [up/up] FE80::2 2001:DB8:2:1::1 Router# show ipv6 route IPv6 Routing Table - default - 6 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static B - BGP, R - RIP, I1 - ISIS L1, I2 - ISIS L2 O - OSPF, ON - OSPF NSSA C 2001:DB8:1:1::/64 [0/0] via GigabitEthernet0/0, directly connected L 2001:DB8:1:1::1/128 [0/0] via GigabitEthernet0/0, receive C 2001:DB8:2:1::/64 [0/0] via GigabitEthernet0/1, directly connected L 2001:DB8:2:1::1/128 [0/0] via GigabitEthernet0/1, receive Router# show ipv6 neighbors IPv6 Address Age Link-layer Addr State Interface 2001:DB8:1:1::2 0 aaaa.bbbb.cccc REACH Gi0/0 FE80::AAAA:BBBB:CCCC 0 aaaa.bbbb.cccc REACH Gi0/0 2001:DB8:1:1::3 3 dddd.eeee.ffff STALE Gi0/0 ``` --- ## ๐ง Complete Configuration Examples ### Lab 1: Basic IPv6 Static Configuration **Topology:** ``` Router A Router B โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ Gi0/0 โ โ Gi0/0 โ โ 2001:db8:1::1/64โโโโโโโโโโโโโโโโโโโโโโโโโโโ 2001:db8:1::2/64โ โ โ โ โ โ Loopback0 โ โ Loopback0 โ โ 2001:db8:2::1/64โ โ 2001:db8:3::1/64โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ ``` **Router A Configuration:** ```cisco hostname RouterA ! ! Enable IPv6 routing ipv6 unicast-routing ! ! Configure interfaces interface GigabitEthernet0/0 ipv6 address 2001:db8:1::1/64 no shutdown ! interface Loopback0 ipv6 address 2001:db8:2::1/64 ! ! Static route to Router B's loopback ipv6 route 2001:db8:3::/64 2001:db8:1::2 ! end ``` **Router B Configuration:** ```cisco hostname RouterB ! ! Enable IPv6 routing ipv6 unicast-routing ! ! Configure interfaces interface GigabitEthernet0/0 ipv6 address 2001:db8:1::2/64 no shutdown ! interface Loopback0 ipv6 address 2001:db8:3::1/64 ! ! Static route to Router A's loopback ipv6 route 2001:db8:2::/64 2001:db8:1::1 ! end ``` --- ### Lab 2: IPv6 SLAAC Configuration **Topology:** ``` Router (Default Gateway) PC (Client) โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ Gi0/0 โโโโโโโโโโโโโโโโโโโโโโโโโโโ Gi0/0 โ โ 2001:db8:1::1/64โ โ โ โ โ โ โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ ``` **Router Configuration:** ```cisco hostname Router ! ! Enable IPv6 routing ipv6 unicast-routing ! ! Configure interface interface GigabitEthernet0/0 ipv6 address 2001:db8:1::1/64 ipv6 nd ra-interval 200 ipv6 nd ra-lifetime 1800 no shutdown ! end ``` **PC (Client) Configuration:** ```cisco hostname PC ! ! Enable IPv6 routing ipv6 unicast-routing ! ! Interface auto-configuration interface GigabitEthernet0/0 ipv6 address autoconfig no shutdown ! end ``` **Result:** PC automatically configures with address like `2001:db8:1::EUI-64/64` --- ### Lab 3: DHCPv6 Stateful Configuration **Topology:** ``` DHCPv6 Server DHCPv6 Client โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ Gi0/0 โโโโโโโโโโโโโโโโโโโโโโโโโโโ Gi0/0 โ โ 2001:db8:1::1/64โ โ โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ ``` **DHCPv6 Server Configuration:** ```cisco hostname DHCP_Server ! ! Enable IPv6 routing ipv6 unicast-routing ! ! Configure DHCPv6 pool ipv6 dhcp pool CLIENT_POOL address prefix 2001:db8:1::/64 dns-server 2001:4860:4860::8888 domain-name example.com ! ! Configure interface interface GigabitEthernet0/0 ipv6 address 2001:db8:1::1/64 ipv6 dhcp server CLIENT_POOL ipv6 nd managed-config-flag ipv6 nd other-config-flag no shutdown ! end ``` **DHCPv6 Client Configuration:** ```cisco hostname DHCP_Client ! ! Enable IPv6 routing ipv6 unicast-routing ! ! Interface to obtain address via DHCPv6 interface GigabitEthernet0/0 ipv6 address dhcp no shutdown ! end ``` --- ## ๐ Text-Based Diagrams ### IPv6 Address Structure ``` โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ IPv6 ADDRESS STRUCTURE โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ 128-bit address: โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ Bits: 0-15 โ 16-31 โ 32-47 โ 48-63 โ 64-79 โ 80-95 โ 96-111โ112-127โ โ โ โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโผโโโโโโโโค โ โ โ 2001 โ 0db8 โ 0000 โ 0000 โ 0000 โ ff00 โ 0042 โ 8329 โ โ โ โโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโ โ โ โ โ Standard /64 subnet: โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ 64 bits โ 64 bits โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ Network Prefix โ Interface ID โ โ โ โ (2001:db8:1:1) โ (::1) โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ``` --- ## โ Exam Tips (For CCNA 200-301) | Topic | What Cisco Tests | |-------|------------------| | **IPv6 Address Format** | 128-bit, 8 groups of 4 hex digits | | **Shortening Rules** | Omit leading zeros, use :: once | | **Address Types** | Global Unicast (2000::/3), Link-Local (FE80::/10), Unique Local (FD00::/8) | | **Multicast** | FF02::1 (all nodes), FF02::2 (all routers) | | **NDP** | Replaces ARP; uses NS/NA messages | | **EUI-64** | 64-bit interface ID from MAC address | | **SLAAC** | Autoconfiguration using RA prefixes | | **Command** | `ipv6 unicast-routing` enables IPv6 routing | ### Common Exam Scenarios: **Scenario 1:** "A router interface has IPv6 address 2001:db8:1:1::1/64. What is the network prefix?" - **Answer:** 2001:db8:1:1::/64 **Scenario 2:** "What is the shortened version of 2001:0db8:0000:0000:0000:0000:0000:0001?" - **Answer:** 2001:db8::1 **Scenario 3:** "A client needs IPv6 addressing but also DNS server information. Which method should be used?" - **Answer:** Stateless DHCPv6 (SLAAC for addressing, DHCPv6 for DNS) ### Mnemonics: **IPv6 Address Types:** **"GUL" - Global, Unique Local** - **G**lobal Unicast: 2000::/3 - **U**nique Local: FD00::/8 - **L**ink-Local: FE80::/10 **IPv6 Multicast:** **"All Nodes 1, All Routers 2"** - FF02::1 = All nodes - FF02::2 = All routers --- ## ๐ Summary (1-Minute Revision) ``` IPv6 BASICS: ADDRESS FORMAT: โโโ 128-bit, 8 groups of 4 hex digits โโโ Shortening: omit leading zeros, :: once โโโ Example: 2001:db8::1 ADDRESS TYPES: โโโ Global Unicast (2000::/3) - Internet routable โโโ Link-Local (FE80::/10) - Automatic, local only โโโ Unique Local (FD00::/8) - Private, routable within org โโโ Multicast (FF00::/8) - One-to-many CONFIGURATION METHODS: โโโ Static: ipv6 address 2001:db8::1/64 โโโ SLAAC: ipv6 address autoconfig โโโ DHCPv6: ipv6 address dhcp NDP (Neighbor Discovery): โโโ Replaces ARP โโโ NS/NA for address resolution โโโ RS/RA for router discovery โโโ DAD for duplicate address detection KEY COMMANDS: โโโ ipv6 unicast-routing โโโ ipv6 address [prefix]/[mask] โโโ ipv6 address autoconfig โโโ show ipv6 interface brief โโโ show ipv6 route โโโ show ipv6 neighbors PING: ping ipv6 [address] ``` --- ## ๐งช Practice Questions **1. How many bits are in an IPv6 address?** - A) 32 bits - B) 64 bits - C) 128 bits - D) 256 bits <details> <summary>Answer</summary> <b>C) 128 bits</b> - IPv6 addresses are 128 bits (16 bytes) compared to IPv4's 32 bits. </details> **2. What is the shortened version of 2001:0db8:0000:0000:0000:0000:0000:0001?** - A) 2001:db8::1 - B) 2001:db8:0:0:0:0:0:1 - C) 2001:db8:0:0:0:0:0:0001 - D) 2001:db8:0:0:0:0:0:1 <details> <summary>Answer</summary> <b>A) 2001:db8::1</b> - Omit leading zeros and replace consecutive zeros with :: once. </details> **3. Which prefix is used for Global Unicast addresses?** - A) FE80::/10 - B) FD00::/8 - C) 2000::/3 - D) FF00::/8 <details> <summary>Answer</summary> <b>C) 2000::/3</b> - Global Unicast addresses start with binary 001 (2000:: to 3FFF::). </details> **4. What command enables IPv6 routing on a Cisco router?** - A) `ipv6 enable` - B) `ipv6 unicast-routing` - C) `ip routing ipv6` - D) `ipv6 routing` <details> <summary>Answer</summary> <b>B) `ipv6 unicast-routing`</b> - This global command enables IPv6 routing on the router. </details> **5. Which address is the IPv6 loopback address?** - A) 0.0.0.0 - B) 127.0.0.1 - C) ::1 - D) FE80::1 <details> <summary>Answer</summary> <b>C) ::1</b> - IPv6 loopback address is ::1 (equivalent to 127.0.0.1 in IPv4). </details> **6. What does SLAAC stand for?** - A) Stateless Link-Local Autoconfiguration - B) Stateful Address Autoconfiguration - C) Stateless Address Autoconfiguration - D) Static Link Address Autoconfiguration <details> <summary>Answer</summary> <b>C) Stateless Address Autoconfiguration</b> - SLAAC allows devices to autoconfigure IPv6 addresses without a server. </details> **7. Which protocol replaces ARP in IPv6?** - A) ICMPv6 - B) NDP (Neighbor Discovery Protocol) - C) DHCPv6 - D) DNS <details> <summary>Answer</summary> <b>B) NDP (Neighbor Discovery Protocol)</b> - NDP handles address resolution, router discovery, and DAD in IPv6. </details> **8. What is the solicited-node multicast address for 2001:db8::1?** - A) FF02::1 - B) FF02::2 - C) FF02::1:FF00:0001 - D) FF02::1:FF00:0002 <details> <summary>Answer</summary> <b>C) FF02::1:FF00:0001</b> - Solicited-node multicast uses the last 24 bits of the unicast address. </details> **9. Which command displays IPv6 neighbor cache (IPv6 ARP)?** - A) `show arp` - B) `show ipv6 arp` - C) `show ipv6 neighbors` - D) `show neighbors ipv6` <details> <summary>Answer</summary> <b>C) `show ipv6 neighbors`</b> - This displays the IPv6 neighbor cache with MAC address mappings. </details> **10. What is the EUI-64 interface ID for MAC address 00:1A:2B:3C:4D:5E?** - A) 00:1A:2B:FF:FE:3C:4D:5E - B) 02:1A:2B:FF:FE:3C:4D:5E - C) 00:1A:2B:FE:FF:3C:4D:5E - D) 02:1A:2B:FE:FF:3C:4D:5E <details> <summary>Answer</summary> <b>B) 02:1A:2B:FF:FE:3C:4D:5E</b> - Insert FFFE and flip the 7th bit (00 to 02). </details> **11. Which IPv6 address type is equivalent to IPv4 private addresses?** - A) Global Unicast - B) Link-Local - C) Unique Local - D) Multicast <details> <summary>Answer</summary> <b>C) Unique Local</b> - FD00::/8 addresses are private and routable within an organization. </details> **12. What is the purpose of the `ipv6 nd managed-config-flag` command?** - A) Enable SLAAC - B) Enable stateful DHCPv6 - C) Disable router advertisements - D) Enable EUI-64 <details> <summary>Answer</summary> <b>B) Enable stateful DHCPv6</b> - This flag tells clients to use DHCPv6 for address configuration. </details> --- ## ๐ Next Steps After completing Video 15, you should be ready for: - **Video 16:** IPv6 Routing and Transition Mechanisms - **Video 17:** Wireless Networking Fundamentals **Lab Practice:** 1. Enable IPv6 routing on a router 2. Configure static IPv6 addresses on interfaces 3. Configure IPv6 static routes 4. Configure SLAAC on router and test client autoconfiguration 5. Configure DHCPv6 server and client 6. Verify with `show ipv6 interface brief`, `show ipv6 route`, `show ipv6 neighbors` --- **Ready for Video 16?** Share the link or say "next" and I'll continue with IPv6 Routing and Transition Mechanisms. I'll create comprehensive deep notes for **Video 16: IPv6 Routing and Transition Mechanisms** based on the standard CCNA 200-301 curriculum. ---