Is it possible to build classes on dhcp6.interface-id or dhcp6.remote-id?

David Ramage dramage at lsnetworks.net
Thu Jun 1 23:16:44 UTC 2017


Hey folks,

I'm trying to restrict access to a pool of addresses based on either the dhcp6 interface id or remote id (I've tried both, same outcome).


Here's a config snippet which can probably explain things a lot faster:


class "my_dhcp6" {
  match if option dhcp6.interface-id = "GOOD_DHCP6";
  log(info, option dhcp6.interface-id);
}


log(info, option dhcp6.remote-id);
# The path of the lease file
dhcpv6-lease-file-name "/srv/dhcpd6.leases";

shared-network  "network6" {
    subnet6 2607:fa40:fffd:0:0:0:0:0/64 {
    }
    subnet6 2607:fa40:fffe::/48 {
        pool6 {
            allow members of "my_dhcp6";
            prefix6 2607:fa40:fffe:9100:: 2607:fa40:fffe:ffff:: /64;
            range6 2607:fa40:fffe:9000::/56;
        }
    }
}


When I do this, I get errors about no addresses being available.  As soon as I remove the allow_members statement from the pool, it works.  I'm doing this with DHCPD 4.3.5.


Is this functionality supported?

________________________________
The information contained in this email and any attachments may be privileged, confidential, and/or proprietary and is intended solely for the use of the person(s) to whom it is addressed. If you are not the intended recipient, any review, retransmission, dissemination or any other use of the information contained in this email and any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately by replying to this email and then delete this material from any system that it may be on. LightSpeed Networks, Inc. does not accept responsibility for any changes made to the information contained in this communication after it was originally sent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170601/67d32d24/attachment.html>


More information about the dhcp-users mailing list