Introduction to IPv6 on MikroTik

What is IPv6?

IPv6 (Internet Protocol version 6) is the most recent version of the Internet Protocol (IP). It was developed to replace IPv4, which has been around since the early days of the internet.


🌍 Why do we need IPv6?

IPv4 uses 32-bit addresses, which gives about 4.3 billion unique IP addresses. That seemed like a lot in the 1980s, but with modern devices (phones, tablets, laptops, smart TVs, smart fridges, IoT devices…) β€” we ran out of IPv4 addresses.

IPv6 solves this problem by using 128-bit addresses, which gives us:

πŸ‘‰ 340 undecillion addresses (that’s 340,282,366,920,938,463,463,374,607,431,768,211,456!)


🧠 How does IPv6 look?

IPv6 addresses are written as eight groups of four hexadecimal digits, separated by colons :.

Example:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

You can shorten it (remove leading zeros and collapse consecutive zeros) like:

2001:db8:85a3::8a2e:370:7334

βš™οΈ IPv6 Features

  • βœ… Huge Address Space
    No more running out of IP addresses.
  • βœ… Simpler Routing
    More efficient and scalable, especially for ISPs.
  • βœ… Built-in Security
    IPSec (encryption and authentication) is mandatory.
  • βœ… No More NAT
    Devices can have globally unique addresses, so no need for Network Address Translation.
  • βœ… Better Multicast and Anycast Support
    Efficient delivery of data to multiple destinations.

🏑 IPv6 Address Types

  1. Unicast β€” one-to-one communication (like IPv4).
  2. Multicast β€” one-to-many (IPv6 replaces IPv4’s broadcast).
  3. Anycast β€” one-to-nearest (used for things like DNS servers).

πŸ”₯ Quick Comparison: IPv4 vs IPv6

FeatureIPv4IPv6
Address size32-bit128-bit
Address example192.168.1.12001:0db8:85a3::8a2e:0370:7334
Address count~4.3 billion~340 undecillion
NATOften requiredTypically not needed
SecurityOptional (IPSec)Built-in
ConfigurationManual / DHCPAuto-configuration (SLAAC)

πŸ’‘ How IPv6 Assigns Addresses

  • Link-local (starts with fe80::) β€” for communication inside the same network link.
  • Global Unicast (starts with 2xxx: or 3xxx:) β€” public addresses.
  • Unique Local (starts with fc00::/7) β€” like private IPv4 (10.0.0.0/8 or 192.168.0.0/16).

ISP Prefix (DHCPv6 Client)

Our ISP Provided Prefix is: 2403:5818:aef::/48

Create LAN subnet from prefix

Simplest way is to use an online IPv6 Subnet Calculator. Use the first /64 from the prefix:

https://www.site24x7.com/tools/ipv6-subnetcalculator.html

Assign IP to LAN

From the subnet use the first host as the IP for the LAN :1

Client IP Assignment (Neighbour Discovery)

Instead of DHCP for IP assignment in IPv4, use the Neighbour Discovery to advertise the range to the clients. Select the interface as the LAN bridge (lan_bridge). Unlick Advertise MAC Address and tick Other Configuration.

Leave a Comment

Your email address will not be published. Required fields are marked *