My home machine has two IPv6 address, that look like this (obfuscated for security sake):

2: enp1s0    inet6 2500:1600:4650:bc59::49/128 scope global dynamic noprefixroute \       valid_lft 1127515sec preferred_lft 1127515sec
2: enp1s0    inet6 2500:1600:4650:bc59:1440:adb5:bacb:4447/64 scope global dynamic noprefixroute \       valid_lft 1209597sec preferred_lft 1209597sec
2: enp1s0    inet6 fe80::a42a:340c:d982:163c/64 scope link noprefixroute \       valid_lft forever preferred_lft forever

I get that the last one (fe80) is a link-local address, but the other two- I'm not sure why I have both. My system is a Pi-Hole server, and thus it's a DHCPv6 server (SLAAC+RA turned on).

Could you explain the 2 addresses? I guess the /64 is my host's real IP?

  • Excellent. Try to figure out what's going on, get downvoted twice without even any reason given. Way to be, StackExchange! Very helpful on so many levels. I mean, some trivial Bash questions get 55 upvotes: unix.stackexchange.com/questions/16024/… . I mean, it's not like this article: cyberciti.biz/faq/… hadn't been around years before that question was asked. For pete's sake. Maybe I should have asked something more basic, answered in a man page... – Mike S Jun 19 '18 at 17:48

You've got two global IPv6 addresses, one assigned by DHCPv6 and the other locally generated (via SLAAC).

By default Fedora 28 generates RFC 7217 stable privacy addresses when told to use SLAAC, so that is why you are getting a privacy address.

Which address actually gets used for outgoing connections is probably not predictable from the limited information provided in the question.

But if you intend to have privacy addresses, you may wish to disable DHCPv6 addressing on the local network.

  • Thanks for the reply. I suppose I would be able to give you more information if I know more about IPv6. ;-\ What else would you need to know, to be able to predict which address gets used? Are privacy addresses important in the IPv6 world? – Mike S Jul 11 '18 at 22:59

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.