IPv6 Addressing
IPv6 addresses are 128-bit long and written in hexadecimal
format. To simplify the address, leading zeros can be omitted, and consecutive
groups of zeros can be replaced with "::" (only once in an address).
- Technical
Tip: Always remember that "::" can be used only once in an
IPv6 address to avoid ambiguity.
Example:
Full: 2001:0db8:0000:0000:0000:ff00:0042:8329
Shortened: 2001:db8::ff00:42:8329
IPv6 Address Types
- Unicast:
Identifies a single interface (Global, Link-Local, Unique-Local).
- Multicast:
Packets sent to all interfaces in the group (e.g., FF00::/8).
- Anycast:
Address assigned to multiple interfaces, routing the packet to the nearest
device.
- Technical
Tip: IPv6 doesn't support broadcast; multicast is used for similar
purposes.
IPv6 Stateless Autoconfiguration (SLAAC)
With Stateless Address Autoconfiguration (SLAAC), hosts can
configure their own IP addresses based on the router’s advertisements. This
provides a simple mechanism for address assignment without DHCP.
- Technical
Tip: SLAAC uses Neighbor Discovery Protocol (NDP) to obtain the prefix
from Router Advertisements (RA) and then auto-generates the host portion
using EUI-64 format.
IPv6 Address Configuration
There are three ways to assign an IPv6 address to an
interface:
- Manual
Global Unicast:
Router(config-if)# ipv6 address 2001:db8::1/64
- EUI-64
Autoconfiguration:
Router(config-if)# ipv6 address 2001:db8::/64 eui-64
- This
auto-generates the host part of the address using the MAC address.
- Link-Local:
Router(config-if)# ipv6 address fe80::1 link-local
- Technical
Tip: IPv6 link-local addresses are mandatory for communication
between devices on the same link and automatically assigned.
IPv6 Routing
To enable IPv6 routing, use the following command:
Router(config)# ipv6 unicast-routing
- Technical
Tip: Without enabling IPv6 routing, routers can still have IPv6
addresses but won’t forward IPv6 traffic.
IPv6 Neighbor Discovery (NDP)
NDP replaces ARP in IPv6 and uses ICMPv6 for tasks like
address resolution and Router Discovery. It comprises five key messages:
- Router
Solicitation (RS)
- Router
Advertisement (RA)
- Neighbor
Solicitation (NS): Similar to ARP in IPv4.
- Neighbor
Advertisement (NA)
- Redirect
- Technical
Tip: NDP supports Duplicate Address Detection (DAD) to prevent IP
conflicts by ensuring no other device is using the same address.
IPv6 and EUI-64
IPv6 uses EUI-64 to create unique host addresses by
extending the 48-bit MAC address into a 64-bit interface identifier.
- Technical
Tip: EUI-64 splits the MAC address into two halves and inserts FFFE in
the middle. The 7th bit of the first byte is flipped to indicate
uniqueness.
DHCPv6
In addition to SLAAC, DHCPv6 is used for stateful address
assignment and additional configurations like DNS servers.
- Technical
Tip: When Router Advertisements set the Managed Flag (M), hosts are
prompted to use DHCPv6 for full address assignment.
IPv6 Security Considerations
- Security
Tip: IPv6 mandates the use of IPsec for end-to-end encryption. Ensure
proper ACLs and filters are in place for managing IPv6 traffic and avoid
open exposure of services.
IPv6 Transition Mechanisms
To support the transition from IPv4 to IPv6, several methods
are used:
- Dual-Stack:
Running both IPv4 and IPv6 on devices.
- Tunneling:
Encapsulating IPv6 traffic in IPv4 packets (e.g., 6to4, ISATAP, GRE).
- NAT64:
Translates IPv6 addresses to IPv4.
- Technical
Tip: Dual-Stack provides the most seamless transition as it allows
both protocols to coexist until full IPv6 adoption.
Carrier-Grade NAT (CGN)
Used by ISPs to extend the life of IPv4 addresses, CGN
translates private IPv4 addresses to a shared pool of public IPv4 addresses.
- Technical
Tip: ISPs typically use RFC 6598 (100.64.0.0/10) for CGN. This is
separate from RFC 1918 private space and is intended for use within the
ISP’s network.
By understanding these IPv6 concepts and configurations,
you'll be better equipped to answer interview questions about IPv6 deployment,
troubleshooting, and optimization.
Comments
Post a Comment