DHCPv6 and IAID+DUID or other means of selecting IPs by interface
-
Such as 2001:470:15::2 use for my web server.
now I setup 2001:470:15::1/64 in LAN interface, just it is can get ipv6 address from DHCP6.
if setup 2001:470:15::1/48 in LAN interface, it can't support all client system.
-
now I plan use fixed /48 address for web server etc. use /64 subnet for client system and winfi etc.
Could you tell me how setup static ipv6 address?
where are get the DUID ?
-
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.
-
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?
-
@yon:
because my two NIC get the same DUID,
Discussed in http://forum.pfsense.org/index.php/topic,47658.0.html
-
just Different two MAC NIC still the same DUID. So if maybe can use the IAID for setup static ipv6 address.
-
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.
-
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.
-
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.
-
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.
-
just I need like ipv4 MAC bind fixed ip for each NIC. Can I use IAID or MAC for ipv6?
-
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.
-
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.
-
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; }
-
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.
-
I just see get the different IAID. what's IAID?
-
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. -
FYI you can confirm an IAID on Windows by looking at "ipconfig /all" - it will show both the IAID and DUID for an interface.
-
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 -
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. ::)