Skip to content

Instantly share code, notes, and snippets.

@Sprinterfreak
Last active May 29, 2026 11:04
Show Gist options
  • Select an option

  • Save Sprinterfreak/c18ce32c3b3f01deb0c0e880fc59a5c4 to your computer and use it in GitHub Desktop.

Select an option

Save Sprinterfreak/c18ce32c3b3f01deb0c0e880fc59a5c4 to your computer and use it in GitHub Desktop.
SLAAC Static IPv6 Token

Static IPv6 addresses in SLAAC environments

Make IPv6 addresses predictable while retaining benefits of IPv6 SLAAC

Linux

/etc/network/interfaces.d/10-token

iface eth0 inet6 manual
  accept_ra 2
  autoconf 1
  up ip token set ::80 dev $IFACE

netplan

/etc/netplan/60-iptoken.yaml

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: true
      ipv6-address-token: "::80"

NetworkManager

/etc/NetworkManager/system-connections/<connectionname>.nmconnection

[connection]
interface-name=eth0
...

[ipv6]
addr-gen-mode=eui64
method=auto
token=::80

systemd-networkd

TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment