Multiple IPv6 addresses being assigned to single interface

dhcpipv6windows-server-2008windows-server-2012

I'm configuring a DHCP scope for IPv6, however all my clients are getting 2 or more IPv6 addresses assigned to the interface.

I'm using fda8:6c3:ce53:a890:/64 as the prefix. The scope is on a machine running Windows Server 2008 R2 however I'm looking to roll it out on Server 2012 as well.

My clients are getting the following:

IPv6 Address. . . . . . . . . . . : 1024::1492:9288:7357:7d30(Preferred)
IPv6 Address. . . . . . . . . . . : fda8:6c3:ce53:a890::1(Preferred)
IPv6 Address. . . . . . . . . . . : fda8:6c3:ce53:a890:1492:9288:7357:7d30(Pr
rred)
Link-local IPv6 Address . . . . . : fe80::1492:9288:7357:7d30%10(Preferred)

In this example there's no DHCP scope and the machine has a static IP of fda8:6c3:ce53:a890::1. With this in mind where are the 1024 address and the fda8:6c3:ce53:a890:1492:9288:7357:7d30 address coming from?

Best Answer

DHCPv6 does not need to be configured to issue IPv6 addresses for a network to function. Rather, each machine assigns itself a link local address (within [FE80::]/16), optionally based on its MAC, but possibly random. It then listens for router advertisements, and based on the advertised prefixes, it will assign itself one or more addresses using the same logic. Typically, a host will assign itself one or more random addresses which it will use to initiate connections, thus protecting its privacy (eg. not disclosing its MAC to all hosts on the internet, and not keeping a consistent network address); it will keep a consistent one as well, for other hosts to initiate connections to. Hosts, having discovered a prefix, will then query DHCPv6 to figure out stuff like their DNS servers.

That would be where the extra addresses are coming from (your use of disabling router discovery confirms this). For it to assign itself an address within [1024::]/64, some router on the network (running a router advertisement daemon) would have to be broadcasting that subnet; a network capture could tell you which. The packets will show up as ICMPv6 NDP router advertisements.

Related Topic