duid and dhcpd6.client-id
Andreas Burger
andreas at ethz.ch
Mon Mar 31 12:39:16 UTC 2014
On 31.03.2014 13:51, Carsten Strotmann wrote:
> Hello Andreas,
>
> Andreas Burger <andreas at ethz.ch> writes:
>
>> hi there,
>>
>> i try to figure out how i have to write the dhcpd6.client-id
>> in the dhcpd6.conf
>>
>
> I use this code snippet in my dhcpd6.conf to print out the Client-DUID
> of a DHCPv6 request
>
> log (info, concat("--> Client-DUID: ", binary-to-ascii(16, 8, ":", option dhcp6.client-id)));
>
> the logoutput is like this:
>
> Mar 31 13:48:37 blackbox dhcpd: Renew message from fe80::20a:e4ff:fe2c:707f port 546, transaction ID 0x6C3B3E
> Mar 31 13:48:37 blackbox dhcpd: --> Client-DUID: 0:1:0:1:1a:cb:d7:fa:0:a:e4:2c:70:7f
>
> A host-reservation with DUID is done like this:
>
> host x40 {
> host-identifier option dhcp6.client-id 0:1:0:1:1a:c4:2f:ce:0:a:e4:2c:70:7f;
> fixed-address6 2001:db8:100:0:ffff::40;
> }
hallo carsten,
ich nehme mal an .de heisst deutschsprachig ;-)
zunaechst mal besten dank.
ich hab die zeile ins config geschrieben und das tut klaglos.
aber am schluss bekomme ich trotzdem nicht, was ich anstrebe:
client:
/var/lib/dhcp/dhcp6.lease
default-duid "blubbblubbblubb";
--> Client-DUID: 62:6c:75:62:62:62:6c:75:62:62:62:6c:75:62:62
(von beiden clients, was ich erwarte, da ja die duid identisch ist)
server:
host isg70-214f { host-identifier option dhcp6.client-id
62:6c:75:62:62:62:6c:75:62:62:62:6c:75:62:62; fixed-address6
2001:xxxxxx::0117;}
lease for the first client with this duid:
ia-na "\316o\334~blubbblubbblubb" {
cltt 1 2014/03/31 12:07:20;
iaaddr 2001:xxxxxx::b8 {
binding state active;
preferred-life 7200;
max-life 86400;
ends 2 2014/04/01 12:07:20;
}
}
a little bit later, i try with the same duid on a second host:
ia-na "\332\351\014hblubbblubbblubb" {
cltt 1 2014/03/31 12:27:56;
iaaddr 2001:xxxxxx::ca {
binding state active;
preferred-life 312;
max-life 500;
ends 1 2014/03/31 12:36:16;
}
}
obwohl beide clients unter fedora 20 laufen ist der praefix im leasefile
unterschiedlich, ich hatte da eigentlich etwas wie duid-typ-spezifische
praefixe erwartet, wenn ueberhaubt.
irgendwie entgeht mir etwas bei der funktionsweise des isc-dhcp beim
beziehungen herstellen zwischen duid, host-eintraegen und ia-na-eintragen
gruss
andreas
--
________________________________________________
Andreas Burger
Eidgenoessische Technische Hochschule Zuerich
Departement Hest ISG
LFV E31 8092 Zuerich +41 44 632 68 54
andreas.burger at hest.ethz.ch
_________________________________________________
More information about the dhcp-users
mailing list