Link-Local vs. Global Unicast (IPv6) – Detailed Explanation
1. Definition and Scope
🔹 Link-Local Address
- Valid only on a single physical/logical link.
- Automatically assigned and mandatory for IPv6-enabled interfaces.
- Used primarily for local communications, including neighbor discovery.
🔹 Global Unicast Address
- Globally routable IPv6 address used for Internet-wide communication.
- Equivalent to IPv4 public addresses.
2. Address Formats and Prefixes
Address Type | Prefix Range | Prefix Length | Notes |
---|---|---|---|
Link-Local | FE80::/10 |
10 bits | Starts from FE80 to FEBF |
Global Unicast | 2000::/3 |
3 bits | Starts with 2 or 3 |
3. Address Structure
- Interface Identifier (IID): Usually derived automatically (EUI-64 or randomly generated).
- IID uniquely identifies an interface on a given link.
4. Automatic Address Configuration
- Link-Local: Automatically configured upon enabling IPv6 (no DHCP).
- Global Unicast: Can use manual, SLAAC, or DHCPv6 for configuration.
5. Usage and Reachability
Address Type | Scope | Routing Behavior |
---|---|---|
Link-Local | Single Link (LAN) | Not forwarded by routers (local only) |
Global Unicast | Global (Internet) | Forwarded globally by routers |
6. Neighbor Discovery Protocol (NDP)
- Uses Link-Local addresses for Neighbor Solicitation (NS), Neighbor Advertisement (NA), and router discovery.
- Routers use link-local for device management and routing protocols locally.
7. Routing and Forwarding Behavior
- Link-Local: Traffic remains within local link segment.
- Global Unicast: Traffic routed across the IPv6 Internet.
8. Multicast and Anycast Interaction
- Link-local utilizes solicited-node multicast addresses for neighbor discovery.
- Global unicast can employ anycast for optimized routing.
9. Security Considerations
- Use RA guard and ND inspection for securing link-local addresses.
- Properly configure firewall and ACLs to filter global unicast addresses at network boundaries.
10. Practical Examples
Ping Link-Local Address:
ping6 fe80::1%eth0
Ping Global Unicast Address:
ping6 2001:db8::1
View IPv6 Addresses:
ip -6 addr show
11. Transition Mechanisms
- Used in tunneling (6to4, ISATAP) for IPv6 encapsulation.
- Critical for establishing tunnels and neighbor relationships.
12. Troubleshooting Techniques
Commands for troubleshooting IPv6:
show ipv6 neighbors
show ipv6 route
13. Best Practices
- Use link-local addresses for local communication, NDP, and routing management.
- Global unicast addressing should be carefully planned for scalability.
- Regularly monitor and secure link-local and global unicast traffic.
✅ Summary Table
Aspect | Link-Local Address | Global Unicast Address |
---|---|---|
Prefix | FE80::/10 |
2000::/3 |
Scope | Local Link Only | Global (Internet) |
Routable | No | Yes |
Address Assignment | Automatic (SLAAC) | Manual, SLAAC, DHCPv6 |
Used For | NDP, Local Communication | Internet Communication |
Packet Forwarding | Not Forwarded | Globally Forwarded |