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?