canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.98k stars 880 forks source link

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

Open Sprinterfreak opened 5 months ago

Sprinterfreak commented 5 months ago

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
aciba90 commented 5 months ago

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

Sprinterfreak commented 5 months ago

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'
lephisto commented 5 days ago

Same issue, any idea when this will go upsteam?