[8.900][ANSWERED] IPv6 RA +stateful autoconfig with DHCPv6

Why is it not possible to configure stateless autoconfig for IPv6 by enabling prefix advertisement and DHCPv6 at the same time?
  • Why do you want to enable two address assignment methods at the same time?
    Its impossible, a flag within the prefix advertisement states if the prefix is used for stateless or statefull address autoconfiguration.

    Cheers
     Ulrich
  • If it will be true if all computers support DHCPv6, but today that's not the case.

    If a computer which doesn't support DHCPv6, receive a RA with the prefix information option and the M flag ... it will use SLAAC,  that's the case for MacOS 
  • Ok I see your point [:)]

    As I said, its impossible to announces stateless and statefull at the same time for a prefix, thats a protocol limitation.

    So you either activate Prefix Advertisement instead of DHCPv6 or you add an additional prefix as additional address and announce that too. However your DHCPv6 capable clients will assign two IPv6 addresses then (also one via RA).

    Cheers
     Ulrich
  • Hi !

    You're right, I just send RA messages with the managed Flag and a prefix information header, my windows seven obtains an IP per SLAAC and an other IP per DHCPv6 .. (and a third temporary address of course). 

    I thought DHCPv6 may have the priority on SLAAC if it's supported by the device ... but no, so as you said DHCPv6 and SLAAC can't be used together for address assignement.

    I have a question on interaction between DHCPv6 and RA messages on astaro.

    I understand that when DHCPv6 is used on an interface, RA are sent automatically to provide the gateway.

    The question is, why do you specify the prefix without the autonomous flag ?
    You can just send RA without prefix information header, that's the difference ?  To set On link Determination Option ?

    Exemple : DHCPv6 sever is enable on eth2,  FC00::/64 prefix is define without the autonomous flag.

    interface eth2
    {
      prefix FC00:0:0:0:0:0:0:0/64
      {
        AdvOnLink on;
        AdvAutonomous off;
        AdvValidLifetime 2592000;
        AdvPreferredLifetime 2592000;
      };
  • Well you are right, its possible to use SLAAC and DHCPv6 for the same prefix at the same time.
    Wasn't aware of that fact. RFC 4862: "It should be noted that a host may use both stateless address  autoconfiguration and DHCPv6 simultaneously."

    As I wrote above, its not possible in the GUI to enable SLAAC and DHCPv6 at the same time, so depending on the auto configuration type, AdvAutonomous is either on of off for a prefix.

    About AdvOnLink: We only support directly attached DHCP clients (no DHCP relay mode), so that flag is always on.

    Cheers
     Ulrich
  • RA can provision a client with a prefix and the link-local IPv6 of the default gateway but not the dns servers without RFC6106 support which at this time no client OS has.
    So you need DHCPv6 additionally for the dns servers.