Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: group and agent.circuit-id (Niall O'Reilly) 2. Re: Set up DHCP server IPv6 on Ubuntu 14.04 (Reed Xia) 3. Re: Set up DHCP server IPv6 on Ubuntu 14.04 (Reed Xia) ---------------------------------------------------------------------- Message: 1 Date: Sun, 04 Dec 2016 16:06:42 +0000 From: "Niall O'Reilly" <niall.orei...@ucd.ie> To: "Users of ISC DHCP" <dhcp-users@lists.isc.org> Subject: Re: group and agent.circuit-id Message-ID: <c6089254-6b85-49c5-8257-362828267...@ucd.ie> Content-Type: text/plain; format=flowed On 4 Dec 2016, at 5:01, Nick Urbanik wrote: > Currently, we have more than 2000 classes of the > form: > class "a-circuit-id" { > match if option agent.circuit-id = "a-circuit-id"; > set logged-class = "static"; > } From what I've read in the Handbook and man-pages, this configuration will give you a mean of more than 1000 trips around the loop that compares the value provided by the client with each in turn of your configured values. > ... > that are then used to allocate static IPs like this, inside subnet > declarations: > pool { failover peer "partner"; allow members of "a-circuit-id"; range > 11.12.13.14; } > ... I'm not sure that failover gains you anything for a singleton range, as there isn't any arbitrary state to be communicated to the partner. Without failover, you can gain resilience by having identical configurations on more than two servers; failover limits you to two (per pool). > I have some questions: > 1. Would this existing scheme clash with that you proposed? I can't say for sure, as I've never used or even tested such a combination of schemes. I don't know why they would cause each other problems unless you (mis-) configured the same value in a 'match if ...' statement as in a 'subclass' declaration. > 2. Could things work better if I changed the static allocation scheme > to use subclasses? The matching would be faster, as subclasses are implemented using a hash table rather than a comparison loop. > I'm not really sure how, since currently, each > static assignment corresponds to a separate class, whereas > subclasses provide a way to add multiple members to one class. It's subtler than that: each subclass is a class of its own as well, although without a distinct name to be referenced by. This doesn't necessarily mean that the 'subclass' approach can meet your needs. It's not clear from either the Handbook or the man-page whether a 'fixed-address' declaration is allowed or forbidden in a 'subclass' declaration. If it's allowed, then I think there's a solution which gives the performance advantage of subclass hashing and avoids the complexity of failover, like this: class "dns-by-circuit-id" { match option agent.circuit-id; option domain-name-servers 1.2.3.4, 5.6.7.8; } # per-circuit-id subclasses, each with its own IP address subclass "dns-by-circuit-id" "whatever" { fixed-address 11.12.13.14; } If 'fixed-address' isn't allowed here, then I think you have to continue with multiple classes. I expect you can drop failover except for customers (if any) for whom you assign a non-singleton pool. I hope this helps. Best regards, Niall O'Reilly ------------------------------ Message: 2 Date: Mon, 5 Dec 2016 10:18:53 +0800 From: Reed Xia <huaqin2...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Set up DHCP server IPv6 on Ubuntu 14.04 Message-ID: <CAB_-H09iPnpHg=7amBuyGCmKZmKvKrZXfmamX0QVJzrQmS=d...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi Niall, Yes I mean 2001::7. Thanks for help point out the problem! I learn that it need IPv6 prefix, I referred to a dhcpd6.conf from Internet and looked it worked. *default-lease-time 640;max-lease-time 700;log-facility local7;subnet6 2011:1:2::/48 { # Range for clients range6 2011:1:2::111 2011:1:2::234; # Additional options option dhcp6.name-servers 2011:1:2::2012; option dhcp6.domain-search "ipv6.domain.example"; # Prefix range for delegation to sub-routers prefix6 2011:1:2:2:: 2011:1:2:2:: /64; # Example for a fixed host address host specialclient { host-identifier option dhcp6.client-id 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45; fixed-address6 2011:1:2::110; }}* *root@reed-Lenovo:/etc/dhcp# /root/dhcp-4.3.4/server/dhcpd -6 -d -cf /etc/dhcp/dhcpd6.conf eth0Internet Systems Consortium DHCP Server 4.3.4Copyright 2004-2016 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp/ <https://www.isc.org/software/dhcp/>WARNING: Host declarations are global. They are not limited to the scope you declared them in.Config file: /etc/dhcp/dhcpd6.confDatabase file: /var/db/dhcpd6.leasesPID file: /var/run/dhcpd6.pidWrote 0 deleted host decls to leases file.Wrote 0 new dynamic host decls to leases file.Wrote 0 NA, 0 TA, 1 PD leases to lease file.Bound to *:547Listening on Socket/5/eth0/2011:1:2::/48Sending on Socket/5/eth0/2011:1:2::/48Server starting service.Solicit message from fe80::3291:8fff:fe05:bf86 port 546, transaction ID 0xF5FFA00Advertise PD: address 2011:1:2:2::/64 to client with duid 00:03:00:01:30:91:8f:05:bf:86 iaid = 1 valid for 640 secondsSending Advertise to fe80::3291:8fff:fe05:bf86 port 546Request message from fe80::3291:8fff:fe05:bf86 port 546, transaction ID 0x936B200Reply PD: address 2011:1:2:2::/64 to client with duid 00:03:00:01:30:91:8f:05:bf:86 iaid = 1 valid for 640 secondsSending Reply to fe80::3291:8fff:fe05:bf86 port 546* Thanks, Reed On Thu, Dec 1, 2016 at 6:31 PM, Niall O'Reilly <niall.orei...@ucd.ie> wrote: > On 1 Dec 2016, at 9:47, Reed Xia wrote: > > I have a Ubuntu 14.04 with 2 Ethernet adapters(eth0 and eth1), eth0 is >> connected to an homeware device, I need set up DHCP IPv6 service against >> eth0(I set the IPv6 address for eth0 as 2007::7/64 in Ubuntu), >> > > Perhaps you mean 2001::7 (mentioned in the configuration fragment you > sent) ? > > and I want the homeware to obtain a fixed IPv6 address(2001::10), >> > > 2001::/32 is reserved for a specific purpose (see > https://www.iana.org/assignments/iana-ipv6-special-registry/ > iana-ipv6-special-registry.xhtml). Re-using part of this address space > for your own, private > purpose is likely to cause trouble for you or others. > > You should not do this. > > If you have not been assigned a global address prefix, you should > consider using a Unique > Local IPv6 prefix (see https://tools.ietf.org/html/rfc4193). > > so I did it in following way, now the problem is the homeware always >> cannot get IPv6, I can see message "Unable to pick client prefix: no IPv6 >> pools on this shared network" from dhcpd service, I guess the dhcpd6.conf >> have some problem, can you please help figure out? >> > > The message is telling you that a 'pool6' specification is expected. It > is clear from > the man-page that this is allowed, but NOT clear that it is required. > I'ld suggest > trying the following where you currently have just a 'range6' > specification: > > pool6 { > range6 ... > } > > Best regards, > > Niall O'Reilly > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -- Thanks, - Reed -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20161205/6b0c6fae/attachment-0001.html> ------------------------------ Message: 3 Date: Mon, 5 Dec 2016 17:26:44 +0800 From: Reed Xia <huaqin2...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Set up DHCP server IPv6 on Ubuntu 14.04 Message-ID: <cab_-h08kkavz5xlfjwfdmxxcv60x3kvtp1cyttmi-01bkjm...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi Niall, After I use this dhcpd6.conf, the homeware(it's a router actually) always obtain the IP 2011:1:2:2::1, may I ask do you know how to refine the dhcpd6.conf to make it obtain the IP such as 2011:1:2:2::7? *default-lease-time 640;max-lease-time 700;log-facility local7;subnet6 2011:1:2::/48 { # Range for clients range6 2011:1:2::111 2011:1:2::234; # Additional options option dhcp6.name-servers 2011:1:2::2012; option dhcp6.domain-search "ipv6.domain.example"; # Prefix range for delegation to sub-routers prefix6 2011:1:2:2:: 2011:1:2:2:: /64; # Example for a fixed host address host specialclient { host-identifier option dhcp6.client-id 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45; fixed-address6 2011:1:2::110; }}* Thanks, Reed On Mon, Dec 5, 2016 at 10:18 AM, Reed Xia <huaqin2...@gmail.com> wrote: > Hi Niall, > > Yes I mean 2001::7. Thanks for help point out the problem! I learn that > it need IPv6 prefix, I referred to a dhcpd6.conf from Internet and looked > it worked. > > > > > > > > > > > > > > > > > > > > > > > *default-lease-time 640;max-lease-time 700;log-facility local7;subnet6 > 2011:1:2::/48 { # Range for clients range6 2011:1:2::111 > 2011:1:2::234; # Additional options option dhcp6.name-servers > 2011:1:2::2012; option dhcp6.domain-search > "ipv6.domain.example"; # Prefix range for delegation to > sub-routers prefix6 2011:1:2:2:: 2011:1:2:2:: /64; # Example > for a fixed host address host specialclient { > host-identifier option dhcp6.client-id > 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45; fixed-address6 > 2011:1:2::110; }}* > > > *root@reed-Lenovo:/etc/dhcp# /root/dhcp-4.3.4/server/dhcpd -6 -d -cf > /etc/dhcp/dhcpd6.conf eth0Internet Systems Consortium DHCP Server > 4.3.4Copyright 2004-2016 Internet Systems Consortium.All rights > reserved.For info, please visit https://www.isc.org/software/dhcp/ > <https://www.isc.org/software/dhcp/>WARNING: Host declarations are global. > They are not limited to the scope you declared them in.Config file: > /etc/dhcp/dhcpd6.confDatabase file: /var/db/dhcpd6.leasesPID file: > /var/run/dhcpd6.pidWrote 0 deleted host decls to leases file.Wrote 0 new > dynamic host decls to leases file.Wrote 0 NA, 0 TA, 1 PD leases to lease > file.Bound to *:547Listening on Socket/5/eth0/2011:1:2::/48Sending on > Socket/5/eth0/2011:1:2::/48Server starting service.Solicit message from > fe80::3291:8fff:fe05:bf86 port 546, transaction ID 0xF5FFA00Advertise PD: > address 2011:1:2:2::/64 to client with duid 00:03:00:01:30:91:8f:05:bf:86 > iaid = 1 valid for 640 secondsSending Advertise to > fe80::3291:8fff:fe05:bf86 port 546Request message from > fe80::3291:8fff:fe05:bf86 port 546, transaction ID 0x936B200Reply PD: > address 2011:1:2:2::/64 to client with duid 00:03:00:01:30:91:8f:05:bf:86 > iaid = 1 valid for 640 secondsSending Reply to fe80::3291:8fff:fe05:bf86 > port 546* > Thanks, > Reed > > On Thu, Dec 1, 2016 at 6:31 PM, Niall O'Reilly <niall.orei...@ucd.ie> > wrote: > >> On 1 Dec 2016, at 9:47, Reed Xia wrote: >> >> I have a Ubuntu 14.04 with 2 Ethernet adapters(eth0 and eth1), eth0 is >>> connected to an homeware device, I need set up DHCP IPv6 service against >>> eth0(I set the IPv6 address for eth0 as 2007::7/64 in Ubuntu), >>> >> >> Perhaps you mean 2001::7 (mentioned in the configuration fragment you >> sent) ? >> >> and I want the homeware to obtain a fixed IPv6 address(2001::10), >>> >> >> 2001::/32 is reserved for a specific purpose (see >> https://www.iana.org/assignments/iana-ipv6-special-registry/ >> iana-ipv6-special-registry.xhtml). Re-using part of this address space >> for your own, private >> purpose is likely to cause trouble for you or others. >> >> You should not do this. >> >> If you have not been assigned a global address prefix, you should >> consider using a Unique >> Local IPv6 prefix (see https://tools.ietf.org/html/rfc4193). >> >> so I did it in following way, now the problem is the homeware always >>> cannot get IPv6, I can see message "Unable to pick client prefix: no IPv6 >>> pools on this shared network" from dhcpd service, I guess the dhcpd6.conf >>> have some problem, can you please help figure out? >>> >> >> The message is telling you that a 'pool6' specification is expected. >> It is clear from >> the man-page that this is allowed, but NOT clear that it is required. >> I'ld suggest >> trying the following where you currently have just a 'range6' >> specification: >> >> pool6 { >> range6 ... >> } >> >> Best regards, >> >> Niall O'Reilly >> _______________________________________________ >> dhcp-users mailing list >> dhcp-users@lists.isc.org >> https://lists.isc.org/mailman/listinfo/dhcp-users >> > > > > -- > Thanks, > - Reed > -- Thanks, - Reed -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20161205/dc2b610f/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 98, Issue 8 *****************************************