How do I get a stable IPv6 address in 16.04?

Chris Keller

I have a domain name that points toward my home server. Under every Ubuntu release up through Wily, by default I had a stable EIU-64 address that I could use for my AAAA record. However, after installing Xenial, I don't seem to get a stable address by default.

joejoe@myserver:~$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:24:1d:d2:e3:f4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.101/24 brd 192.168.0.255 scope global enp2s0
       valid_lft forever preferred_lft forever
    inet6 2601:280:3068:2945:74ed:b303:6474:6e29/64 scope global temporary dynamic
       valid_lft 6965sec preferred_lft 3363sec
    inet6 2601:280:3068:2945:ac34:ea15:4340:29a4/64 scope global temporary deprecated dynamic
       valid_lft 6965sec preferred_lft 0sec
    inet6 2601:280:3068:2945:bdfd:6253:b07e:1308/64 scope global mngtmpaddr noprefixroute dynamic
       valid_lft 6965sec preferred_lft 6965sec
    inet6 fe80::dc3e:6127:bd4e:18b/64 scope link
       valid_lft forever preferred_lft forever

As you can see, all of the inet6 addresses with scope global have limited lifetimes. Is there a way to get my EIU-64 address back, or is there some other way to get a stable address that I can use in a domain name record?

saiarcot895

I just figured this out. For each connection in /etc/NetworkManager/system-connections/, you need to set the following property:

[ipv6]
addr-gen-mode=eui64

NetworkManager in 16.04 appears to set a default of stable-privacy for the addr-gen-mode setting. When stable-privacy is set, a random address is generated each time, even when ip6-privacy is set to 0.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I browse the internet from an IPv6 address?

From Dev

How do I traceroute an ipv6 address with mtr?

From Dev

How do I manually transform an IPv4 address into an IPv6 address?

From Dev

How do I manually transform an IPv4 address into an IPv6 address?

From Dev

Stable IPv6 address on Fedora

From Dev

How to get Mac address of ipv6 address?

From Dev

How to get Mac address of ipv6 address?

From Dev

How do I obtain the client's IPv6 address in the Akka/Spray framework?

From Dev

How do I add an additional IPv6 address to /etc/network/interfaces?

From Dev

How do I access a file share in the windows explorer using an IPv6 address?

From Dev

How do I add an additional IPv6 address to /etc/network/interfaces?

From Dev

How do I bind to a specific link local IPv6 address other than the default?

From Dev

How do I specify an IPv6 address in the X Window DISPLAY variable?

From Dev

how do I add a second ipv6 address on Linux without making it default

From Dev

How do I store an IPv6 address from getaddrinfo into a character array?

From Dev

How to get the ipv6 address marked with a specific scope?

From Dev

How can I purchase an IPV6 address?

From Dev

How do I enable IPv6 inbound traffic to get forwarded to my machine?

From Dev

Do I still need an ipv4 address? Can I just use an ipv6?

From Dev

I get an IPv6 address from my ISP but can't use any IPv6 services

From Dev

Why do I have an IPv4 and IPv6 address at the same time?

From Dev

Stable-private IPv6 address with systemd-networkd

From Dev

How do I know if my router supports IPv6?

From Dev

How do I tell if my Macbook supports IPv6?

From Dev

How do I ping localhost using IPv6?

From Dev

How to increment and get the next IPv6 network address from the current network address

From Dev

IPv6 address get function?

From Dev

Get dynamic and static IPv6 address

From Dev

Why do I have to add a /128 ipv6 address explicitly to a device if I have a /64 already?

Related Related

  1. 1

    How do I browse the internet from an IPv6 address?

  2. 2

    How do I traceroute an ipv6 address with mtr?

  3. 3

    How do I manually transform an IPv4 address into an IPv6 address?

  4. 4

    How do I manually transform an IPv4 address into an IPv6 address?

  5. 5

    Stable IPv6 address on Fedora

  6. 6

    How to get Mac address of ipv6 address?

  7. 7

    How to get Mac address of ipv6 address?

  8. 8

    How do I obtain the client's IPv6 address in the Akka/Spray framework?

  9. 9

    How do I add an additional IPv6 address to /etc/network/interfaces?

  10. 10

    How do I access a file share in the windows explorer using an IPv6 address?

  11. 11

    How do I add an additional IPv6 address to /etc/network/interfaces?

  12. 12

    How do I bind to a specific link local IPv6 address other than the default?

  13. 13

    How do I specify an IPv6 address in the X Window DISPLAY variable?

  14. 14

    how do I add a second ipv6 address on Linux without making it default

  15. 15

    How do I store an IPv6 address from getaddrinfo into a character array?

  16. 16

    How to get the ipv6 address marked with a specific scope?

  17. 17

    How can I purchase an IPV6 address?

  18. 18

    How do I enable IPv6 inbound traffic to get forwarded to my machine?

  19. 19

    Do I still need an ipv4 address? Can I just use an ipv6?

  20. 20

    I get an IPv6 address from my ISP but can't use any IPv6 services

  21. 21

    Why do I have an IPv4 and IPv6 address at the same time?

  22. 22

    Stable-private IPv6 address with systemd-networkd

  23. 23

    How do I know if my router supports IPv6?

  24. 24

    How do I tell if my Macbook supports IPv6?

  25. 25

    How do I ping localhost using IPv6?

  26. 26

    How to increment and get the next IPv6 network address from the current network address

  27. 27

    IPv6 address get function?

  28. 28

    Get dynamic and static IPv6 address

  29. 29

    Why do I have to add a /128 ipv6 address explicitly to a device if I have a /64 already?

HotTag

Archive