Why does this not work.

Glenn Satchell glenn.satchell at uniq.com.au
Sat Jun 28 14:37:43 UTC 2014


ok, I stand corrected. I am using 4.2.6 and the man page only talks about
dhcpv6 with this option. Document update needed maybe?

regards,
-glenn

On Sat, June 28, 2014 11:44 pm, Christian Kratzer wrote:
> Hi,
>
> On Fri, 27 Jun 2014, Glenn Satchell wrote:
>
>> host-identifier only works with dhcpv6 options so this will never work
>> with dhcpv4. See the dhcpd.conf man page and search for host-identifier.
>
>
> it does work for v4 with recent isc dhcp versions.
>
> I use this regularly:
>
>      host foo {
>  	host-identifier option agent.subscriber-id "test1";
>  	fixed-address XX.XX.XX.219;
>      }
>
> The prerequisites are:
>
> - recent dhcp version
>
> - fixed-address matches subnet
>
> - agent options match
>
> Greetings
> Christian
>
>
>>
>> regards,
>> -glenn
>>
>> On Fri, June 27, 2014 7:04 pm, Simon Hobson wrote:
>>> Thomas Raabo - Zitcom A/S <tr at zitcom.dk> wrote:
>>>
>>>> Really no one?
>>>
>>> If you demand a response within 15 hours, then pay for a support
>>> contract.
>>> If you ask on an open support list, where all support is provided by
>>> volunteers within the constraints of having a personal life and earning
>>> a
>>> living, then be prepared for an answer when someone has time to give
>>> it.
>>> http://www.catb.org/~esr/faqs/smart-questions.html#idp54192224
>>>
>>>
>>>> I wanted to do something like
>>>>
>>>>
>>>> subnet 9x.xx.xx.0 netmask 255.255.255.0 {
>>>>         option routers 91.133.32.1;
>>>>         option domain-name-servers 8.8.8.8, 8.8.4.4;
>>>>         max-lease-time 28800;
>>>> }
>>>> host test3 {
>>>>      host-identifier option agent.subscriber-id
>>>> ?sv-e-pe-3.g0/0/0.100";
>>>>      fixed-address 9x.xx.xx.2;
>>>>  }
>>>>
>>>>
>>>> But this does not work?
>>>>
>>>>
>>>> But this does
>>>>
>>>> class "sv-e-pe-3.g0/0/0.100" {
>>>>         match if option agent.subscriber-id = "sv-e-pe-3.g0/0/0.100";
>>>> }
>>>> subnet 9x.xx.xx.0 netmask 255.255.255.0 {
>>>>         option routers 91.133.32.1;
>>>>         option domain-name-servers 8.8.8.8, 8.8.4.4;
>>>>         max-lease-time 28800;
>>>>         pool {
>>>>         deny dynamic bootp clients;
>>>>         allow members of "sv-e-pe-3.g0/0/0.100";
>>>>         range 9x.xx.xx.2;
>>>>         }
>>>> }
>>>>
>>>>
>>>> What is the difference?
>>>
>>> The difference ? One uses host statements, one uses classes <rolleyes>.
>>> They also have significant differences in how leases are handled -
>>> fixed
>>> addresses handed out with host statements never appear in the lease
>>> database, and don't go through the normal lease lifecycle (no DNS
>>> updates,
>>> no expiry).
>>>
>>> Why doesn't the first option work ? I *think* a host statement is
>>> limited
>>> to identifying a host by it's hardware (MAC) address - therefore the
>>> host
>>> statement doesn't actually have a statement that the server recognises
>>> as
>>> matching anything.
>>>
>>>
>>> _______________________________________________
>>> dhcp-users mailing list
>>> dhcp-users at lists.isc.org
>>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>>
>>>
>>
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>
> --
> Christian Kratzer                   CK Software GmbH
> Email:   ck at cksoft.de               Wildberger Weg 24/2
> Phone:   +49 7032 893 997 - 0       D-71126 Gaeufelden
> Fax:     +49 7032 893 997 - 9       HRB 245288, Amtsgericht Stuttgart
> Mobile:  +49 171 1947 843           Geschaeftsfuehrer: Christian Kratzer
> Web:     http://www.cksoft.de/
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>




More information about the dhcp-users mailing list