IPv6 in a Peerlify network
Every device has an IPv6 address in the network next to its IPv4 one. How the address is formed, what carries IPv6 and what doesn't yet.
Updated · ·By Ivan Vyshniak
Nothing on this page changes with your selection.
Every device in a network has two addresses in it: the IPv4 address shown as Peerlify IP, and an IPv6 address. Devices can reach each other at either one. This works whether or not your internet provider offers IPv6, because the traffic travels inside the same encrypted connections as IPv4.
The address
- Each network has its own private IPv6 range, a unique-local
/64such asfd17:d5a8:f04f:1::/64. It is derived from the network's ID and never changes. - A device's IPv6 address is that range followed by its IPv4 address. A device at
100.100.0.10is atfd17:d5a8:f04f:1::6464:a(6464:000ais100.100.0.10in hexadecimal). - The IPv6 address therefore follows the IPv4 one. If an administrator changes a device's IP or the network's subnet, its IPv6 address changes with it.
You don't choose or assign IPv6 addresses.
Where to find it
- Console: open a device; Peerlify IPv6 is under Addresses.
- On the device:
peerlify statusprints anIPv6:line.peerlify status --jsonhasassignedIp6, and each entry ofconnectableDeviceshas the peer's. - REST API and webhooks: a device's
addresseslists the IPv4 address first, then the IPv6 one.
Access rules
Rules are about devices, not address families. A rule that lets a device reach another on a port applies to its IPv4 and its IPv6 traffic alike, and icmp in a rule covers ICMPv6 too. There is nothing to add to a policy for IPv6. A rule that names a device by ip: uses its IPv4 address and still covers both.
What doesn't carry IPv6 yet
- Names. Device names still resolve to the IPv4 address only, so nothing changes for programs that connect by name. Use the IPv6 address itself to connect over IPv6.
- Exit points and subnet routers carry IPv4. IPv6 traffic to the internet isn't sent through an exit point; see Use an exit point.
- Network flow logs record IPv4 connections.
- macOS: IPv6 isn't available while the network extension carries the connection.
- Multicast (and so anything that discovers devices by multicast) isn't carried, as with IPv4.
Requirements
- The device runs a client version with IPv6 support. A device on an older client keeps working over IPv4 and simply doesn't answer at its IPv6 address.
- IPv6 isn't switched off in the device's operating system. If it is, the device stays IPv4-only; nothing else is affected.
To switch IPv6 off on one device, set TapClient:Adapter:EnableIpv6 to false in its client configuration and restart the service.