0

Refer to https://netplan.io/reference. There is a key "ipv6-address-generation" with possible values: eui64 or stable-privacy.

However when I tried to add that key on /etc/netplan/50-cloud-init.yaml

network:
    ethernets:
        ens3:
            dhcp6: false
            addresses: ["2003:b::/64"]
            ipv6-address-generation: eui64

There is an error:

root@ubuntu:~# netplan apply 
/etc/netplan/50-cloud-init.yaml:6:13: Error in network definition: unknown key 'ipv6-address-generation'
            ipv6-address-generation: eui64
            ^

Update 1: I tried to install version 0.99 at https://launchpad.net/ubuntu/+source/netplan.io/0.99-0ubuntu3~18.04.1/+build/19265900.

I use this configuration:

network:
    ethernets:
        ens3:
            dhcp6: false
            addresses: ["2003:b::/64"]
            ipv6-address-generation: eui64
    renderer: NetworkManager

The error has fixed, but there is no effect, I still did not get eui64 format on my ipv6:

# ip a show ens3
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 0c:cb:3b:fd:c3:00 brd ff:ff:ff:ff:ff:ff
    inet6 2003:b::/64 scope global tentative noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::ecb:3bff:fefd:c300/64 scope link tentative 
       valid_lft forever preferred_lft forever

, not eui64 format.

Anyone can help me to configure ipv6 with eui-64 interface id on ubuntu 18.04?

xdnroot
  • 65

2 Answers2

3

The ipv6-address-generation key was introduced in netplan 0.99 but is currently only available for the NetworkManager backend/renderer (which needs to be noted in the documentation...).

If you have NetworkManager installed, you can try configuring renderer: NetworkManager. Also, it should have thrown an error if used with the default networkd backend/renderer...

Slyon
  • 462
0

The ipv6-address-generation key is introduced in netplan 0.99 which is currently in bionic-proposed for SRU. This should reach bionic-updates in within the week. You can track the status at https://launchpad.net/bugs/1871825.

slangasek
  • 5,828