cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

[enhancement]: Implement ipv6-address-token / ip token set ::123

Open Sprinterfreak opened this issue 1 year ago • 2 comments

Enhancement

In SLAAC deployments, interface tokens are used to override the host-bits with a predictable and short value. Would be nice to be able to set this token via cloud-init too, to make ipv6-addresses somewhat predictable/readable in dynamic prefix environments.

The resulting configuration would be in netplan:

network:
  ethernets:
    eth0:
      ipv6-address-token: ::123

/etc/network/interfaces

iface eth0 inet6 auto
  up ip token set ::123 dev $IFACE

Sprinterfreak avatar Jun 06 '24 09:06 Sprinterfreak

Hello @Sprinterfreak. This is already supported in systems with netplan by netplan-passthrough. Is your request more broad support for other network stacks?

aciba90 avatar Jun 06 '24 11:06 aciba90

Hi, my goal is to have a stable solution to promote to specifically proxmox community/devs to adopt. Since there is a variety of distros and therefore different network manager's out there, so it would be preferable to have it in the network-config file and scripts taking care of rendering it out into different network managers config formats:

version: 1
config:
    - type: physical
      name: eth0
      mac_address: 'a6:af:ba:66:f6:50'
      subnets:
      - type: static
        address: '10.20.30.7'
        netmask: '255.255.255.0'
        gateway: '10.20.30.1'
      - type: ipv6_slaac
        token: ::123                        <-------
    - type: nameserver
      address:
      - '10.20.30.1'
      - 'fd12:34::1'
      search:
      - 'domain.tld'

Sprinterfreak avatar Jun 06 '24 12:06 Sprinterfreak

Same issue, any idea when this will go upsteam?

lephisto avatar Nov 04 '24 13:11 lephisto

The resulting configuration in NetworkManager would be in /etc/NetworkManager/system-connections/*.nmconnection

[connection]
id=Wired connection 1
type=ethernet
autoconnect-priority=-999
interface-name=eth0
timestamp=1748016447

[ethernet]

[ipv4]
method=auto

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

[proxy]

Sprinterfreak avatar Jul 26 '25 19:07 Sprinterfreak