2

In my home network I have dual IPv4 + IPv6 stack. IPv4 runs DHCP whereas IPv6 depends on SLAAC.

On my Ubuntu Server 20.04 the /etc/netplan/00-installer-config.yaml file looks like this:

network:
    ethernets:
        eth0:
            addresses:
            - 10.0.4.43/24
            dhcp6: false
            accept-ra: true
            gateway4: 10.0.4.1
            nameservers:
                addresses:
                - 10.0.6.3
                search:
                - example.com
    version: 2

It works fine however the IPv6 address that Ubuntu generates is standard EUI64, which allows you to read network adapter's MAC address. For comparison, Windows operating system generates a new randomised IPv6 address (or at least last 64 bits) every 24 hours that does not depends on network adapter's MAC address.

My question: Is it possible for Ubuntu to generate temporary IPv6 address like Windows does?

2

As documented on https://netplan.io/reference, you can specify ipv6-privacy: true to enable IPV6 privacy extensions.

| improve this answer | |
  • This is exactly what I was looking for, thank you. – ProTofik May 28 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.