The development of IPv6 included fixes for IPv4 limitations and other enhancements.
IPv4 is running out of addresses. IPv6 is the successor to IPv4. IPv6 has a much larger 128-bit address space
issues with NAT and the IoT
IPv4 – 4.3 billion addresses
IPv6 – 340 undecillion addresses
These migration techniques can be divided into three categories:
The first rule to help reduce the notation of IPv6 addresses is to omit any leading 0s (zeros).
Examples:
01ab can be represented as 1ab
09f0 can be represented as 9f0
0a00 can be represented as a00
00ab can be represented as ab
Note: This rule only applies to leading 0s, NOT to trailing 0s, otherwise the address would be ambiguous.
A double colon (::) can replace any single, contiguous string of one or more 16-bit hextets consisting of all zeros.
Example:
2001:db8:cafe:1:0:0:0:1 (leading 0s omitted) could be represented as 2001:db8:cafe:1::1
Note: The double colon (::) can only be used once within an address, otherwise there would be more than one possible resulting address.
There are three broad categories of IPv6 addresses:
Note: Unlike IPv4, IPv6 does not have a broadcast address. However, there is an IPv6 all-nodes multicast address that essentially gives the same result.
Prefix length is represented in slash notation and is used to indicate the network portion of an IPv6 address.
The IPv6 prefix length can range from 0 to 128. The recommended IPv6 prefix length for LANs and most other types of networks is /64.
Unlike IPv4 devices that have only a single address, IPv6 addresses typically have two unicast addresses:
The IPv6 unique local addresses (range fc00::/7 to fdff::/7) have some similarity to RFC 1918 private addresses for IPv4, but there are significant differences:
IPv6 global unicast addresses (GUAs) are globally unique and routable on the IPv6 internet.
Global Routing Prefix:
Subnet ID:
Interface ID:
The IPv6 interface ID is equivalent to the host portion of an IPv4 address. It is strongly recommended that in most cases /64 subnets should be used, which creates a 64-bit interface ID
An IPv6 link-local address (LLA) enables a device to communicate with other IPv6-enabled devices on the same link and only on that link (subnet).
An RA can instruct a device to use both SLAAC and stateless DHCPv6.
The RA message suggests devices use the following:
An RA can instruct a device to use stateful DHCPv6 only.
Stateful DHCPv6 is similar to DHCP for IPv4. A device can automatically receive a GUA, prefix length, and the addresses of DNS servers from a stateful DHCPv6 server.
The RA message suggests devices use the following:
IPv6 Neighbor Discovery (ND) protocol provides:
ICMPv6 redirect messages are used by routers for better next-hop selection
interface g0/1
ipv6 address 2001:db8:6783:20::1/64
do show ipv6 int g0/1
do show run
client enable auto config
ipv6config /all
it does not have dns server
ipv6 dhcp pool ourpool
dns-server 2001:db8:6783:30::3
interface g0/1
ipv6 dhcp server ourpool
ipv6 nd other-config-flag
end
show run
client
ipv6config /all and check dns
ipv6 unicast-routing
ipv6 dhcp pool IPV6POOL-A
address prefix 2001:DB8:ACAD:A::/64
dns-server 2001:DB8:ACAD:A::ABCD
domain-name ccna-StatefulDHCPv6.com
!
interface GigabitEthernet0/0
no shutdown
ipv6 address 2001:DB8:ACAD:A::1/64
ipv6 nd managed-config-flag
ipv6 dhcp server IPV6POOL-A