Introduction
Imagine running out of phone numbers for everyone in the world. The same problem happened with internet addresses, so a new system was created to give more unique addresses to devices.
Think of IPv6 addresses like phone numbers in a huge city. The long numbers help make sure everyone has a unique number. Some numbers are for individuals, some for groups, and some for the closest available person. To save time, people shorten numbers by dropping unnecessary zeros or using shortcuts.
┌─────────────────────────────┐ │ IPv6 Address │ ├─────────────┬───────────────┤ │ 128 bits │ Eight groups │ │ │ of 4 hex digits│ ├─────────────┴───────────────┤ │ Types: │ │ ├─ Unicast (single device) │ │ ├─ Multicast (group) │ │ └─ Anycast (nearest device) │ ├─────────────────────────────┤ │ Shortening Rules: │ │ - Remove leading zeros │ │ - Use :: once for zeros │ ├─────────────────────────────┤ │ Address Examples: │ │ - Global Unicast: 2001::1 │ │ - Link-Local: fe80::1 │ └─────────────────────────────┘
2001:db8::1?2001::db8::1fe80::1ff:fe23:4567:890a. Which part of this address indicates it is a link-local address?fe80::/10, meaning the first 10 bits are fixed as '1111111010'.fe80, matching the link-local prefix.Pass the test and this pattern moves unknown