Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCPv6 and IAID+DUID or other means of selecting IPs by interface

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    42 Posts 7 Posters 35.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yon
      last edited by

      @jimp:

      It still makes no sense to use a /48 for that - you can use the exact same prefix, just call it /64 - it will just assume all 0's in between, then use the xxx:1::/64, xxx:2::/64 and so on for other subnets.

      DUID and IAID vary by OS, not sure we have any kind of guide. usually found in ifconfig or ipconfig output. Easiest way is to add them in the DHCP leases list and click "+" to make an entry from there so it gets the right bits. IIRC You can't set static via autoconf, only with DHCPv6 or by hardcoding the info.

      because my two NIC get the same DUID, So I can use input IAID for setup static ipv6 address?

      If you are interested in free peering for clearnet and dn42,contact me !

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        @yon:

        because my two NIC get the same DUID,

        Discussed in http://forum.pfsense.org/index.php/topic,47658.0.html

        1 Reply Last reply Reply Quote 0
        • Y
          yon
          last edited by

          just Different two MAC NIC still the same DUID.  So if maybe can use the IAID for setup static ipv6 address.

          If you are interested in free peering for clearnet and dn42,contact me !

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            It may be possible in the underlying software (isc-dhcpd) but not yet in our GUI.

            Are these two NICs plugged into the same subnet? I'm just wondering what the use case is where you need two DHCP NICs on a single host.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • Y
              yon
              last edited by

              @jimp:

              It may be possible in the underlying software (isc-dhcpd) but not yet in our GUI.

              Are these two NICs plugged into the same subnet? I'm just wondering what the use case is where you need two DHCP NICs on a single host.

              Because the my mail server has install two mail server software. one for ipv4 mail server, and other for ipv6 ipv4 mail server.  such as: 192.168.101.3 NIC for ipv6 ipv4 mail server. 192.168.101.5 for ipv4 only mail server. its will has two 25 port can use in multi-wan.

              If you are interested in free peering for clearnet and dn42,contact me !

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                That doesn't make any sense with respect to the DUID and DHCPv6. Does it have multiple interfaces? Do they both need unique DHCP IPs?

                You should never, ever have multiple NICs in the same box on the same subnet just plugged into the same switch/vlan unless you're doing LAGG/LACP.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • Y
                  yon
                  last edited by

                  @jimp:

                  That doesn't make any sense with respect to the DUID and DHCPv6. Does it have multiple interfaces? Do they both need unique DHCP IPs?

                  You should never, ever have multiple NICs in the same box on the same subnet just plugged into the same switch/vlan unless you're doing LAGG/LACP.

                  yes. I need stup static ipv4 and ipv6 address for client server.  because its have running a lot A variety of services. and I will do network link Aggregation.

                  If you are interested in free peering for clearnet and dn42,contact me !

                  1 Reply Last reply Reply Quote 0
                  • Y
                    yon
                    last edited by

                    just I need like ipv4 MAC bind fixed ip for each NIC. Can I use IAID or MAC for ipv6?

                    If you are interested in free peering for clearnet and dn42,contact me !

                    1 Reply Last reply Reply Quote 0
                    • B
                      bardelot
                      last edited by

                      The server has only one DUID, not one per network interface. The link layer address of a (any of the available) interface is however often encoded into the DUID to guarantee uniqueness.

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        But why "each nic"? The DUID would only be the same on a single machine. You shouldn't be trying to plug multiple interfaces from the same machine into the same network, so a DUID conflict shouldn't be an issue.

                        We're looking into how to get the dhcpv6 daemon to go by MAC like the v4 version does. The new version of ISC DHCPD is supposed to support that but we haven't seen an example of the syntax yet.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • B
                          bardelot
                          last edited by

                          It matches the MAC address in the DUID, not the interface MAC.

                          host otherclient {
                                  # This host entry is hopefully matched if the client supplies a DUID-LL
                                  # or DUID-LLT containing this MAC address.
                                  hardware ethernet 01:00:80:a2:55:67;
                          
                                  fixed-address6 3ffe:501:ffff:100::4321;
                          }
                          
                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            Ah, so if a client still provides the same DUID, including the mac of whatever interface it decided that should come from, then it would still be useless.

                            Windows 7 does that - DUID is the same. It picks one MAC address from one NIC and then sends it along. It sends a different IAID for each one though, I believe. I didn't see that mentioned exactly in the docs though, presumably there is a way to match on IAID.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • Y
                              yon
                              last edited by

                              I just see get the different IAID. what's IAID?

                              20120329052226.jpg
                              20120329052226.jpg_thumb

                              If you are interested in free peering for clearnet and dn42,contact me !

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                Identity association identifier. If I remember right it's meant to be an extra ID over and above the DUID to differentiate interfaces.

                                From RFC3315:

                                Identity association (IA) A collection of addresses assigned to
                                                                a client.  Each IA has an associated
                                                                IAID.  A client may have more than one
                                                                IA assigned to it; for example, one for
                                                                each of its interfaces.

                                Identity association identifier (IAID) An identifier for an IA,
                                                                chosen by the client.  Each IA has an
                                                                IAID, which is chosen to be unique among
                                                                all IAIDs for IAs belonging to that
                                                                client.

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                1 Reply Last reply Reply Quote 0
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by

                                  FYI you can confirm an IAID on Windows by looking at "ipconfig /all" - it will show both the IAID and DUID for an interface.

                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bardelot
                                    last edited by

                                    DHCPv6 allows in theory to configure multiple addresses and interfaces on a single host (unlike IPv4). However you may have to ask on the dhcp-users Mailinglist if it is already supported (e.g. using DUID+IAID to configure the addresses).

                                    Edit:
                                    Changed to DUID+IAID

                                    1 Reply Last reply Reply Quote 0
                                    • Y
                                      yon
                                      last edited by

                                      We should choose an Only and not repeat the identity identifier. For a variety of applications client.

                                      Identity should not be repeated, whether in any environment.  ::)

                                      If you are interested in free peering for clearnet and dn42,contact me !

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        For each client the DIUD is unique. For each interface the IAID is unique. So the only truly unique thing to use would appear to be IAID+DUID. The IAID is nowhere near long enough to be guaranteed unique across any two clients.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • Y
                                          yon
                                          last edited by

                                          @bardelot:

                                          DHCPv6 allows in theory to configure multiple addresses and interfaces on a single host (unlike IPv4). However you may have to ask on the dhcp-users Mailinglist if it is already supported (e.g. using DUID+IAID to configure the addresses).

                                          Edit:
                                          Changed to DUID+IAID

                                          I have post to that mail list now.  :)

                                          If you are interested in free peering for clearnet and dn42,contact me !

                                          1 Reply Last reply Reply Quote 0
                                          • jimpJ
                                            jimp Rebel Alliance Developer Netgate
                                            last edited by

                                            @mdpugh:

                                            I've been following the exchanges in dhcp-users@lists.isc.org and dhcwg@ietf.org for months now.  The first one is how I found this thread.  Please do not try to use the MAC address as a unique identifier for DHCPv6.  You will fundamentally break pfSense if you do and it will fly in the face of everything that has gone into DHCPv6 thus far.  The correct method is, as suggested, DUID and IAID.  I have been running IPv6 on three subnets for several months using Server 2008 as the DHCPv6 server and pfSense as the router with both Windows and FreeBSD clients.  All computers are multihomed to at least two of these subnets with no hitches on the DHCPv6 end (I still have router advertisement issues, which I hope is where you decide to focus your attention).

                                            I would much prefer the DUID+IAID if we can find a way to make it feasible. Seeing as we already extract this info from the leases view surely there is a way to apply that to a fixed address.

                                            @mdpugh:

                                            The only real reason that I can discern for why people seem to want to use the MAC as a unique identifier in DHCPv6 is for provisioning; they want to know the host with this IPv4 address has that IPv6 address (and vice versa).  But I still haven't seen a sufficient reason to break DHCPv6 as it currently stands to accomplish this.

                                            It would be nice to have a way to do that, yes, but it seems more to me that people want to use it because it's easy and familiar. You can read the MAC on a sticker on most cards but getting the DUID and IAID is not so cut and dry. Though as someone mentioned earlier in this thread the mac command for dhcpv6 seems to actually read the mac portion of the DUID so it would be worthless for distinguishing interfaces anyhow.

                                            @mdpugh:

                                            Incidentally, I gave an example of the syntax for IAID usage in the client configuration file in a much older post in this forum.  I've tested this, so I know it works.

                                            It looks like the example you gave was for the dhcp6c client not the server unless I missed the post. Do you have a link?

                                            If we can get the syntax hashed out then we just need to add another box to the GUI.

                                            Or if it's as simple as prepending the IAID onto the DUID (we have to split them in the leases view) then it may be even easier.

                                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                            Need help fast? Netgate Global Support!

                                            Do not Chat/PM for help!

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.