group and agent.circuit-id
Nick Urbanik
nicku at nicku.org
Sun Dec 4 05:01:18 UTC 2016
Daer Niall,
On 03/12/16 16:44 +0000, Niall O'Reilly wrote:
>On 3 Dec 2016, at 5:59, Nick Urbanik wrote:
>
>> class "a-particular-agent.circuit-id" {
>> match if option agent.circuit-id = "a-particular-agent.circuit-id";
>> option domain-name-servers 1.2.3.4, 5.6.7.8;
>> }
>> class "another-particular-agent.circuit-id" {
>> match if option agent.circuit-id =
>> "another-particular-agent.circuit-id";
>> option domain-name-servers 1.2.3.4, 5.6.7.8;
>> }
>> ...
>> Would that work?
>
> Yes, but using subclasses (Droms & Lemon: The DHCP Handbook, 1st edn.
>p. 273)
> should be more efficient.
>
> For example:
>
> class "dns-by-circuit-id" {
> match option agent-circuit-id;
> option domain-name-servers 1.2.3.4, 5.6.7.8;
> }
>
> subclass "dns-by-circuit-id" "a-particular";
> subclass "dns-by-circuit-id" "a-nother";
> subclass "dns-by-circuit-id" "a-third" {
> # subclass can over-ride master class if necessary
> option domain-name-servers 2.3.4.5, 6.7.8.9;
> }
Thank you again. 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";
}
...
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 have some questions:
1. Would this existing scheme clash with that you proposed?
2. Could things work better if I changed the static allocation scheme
to use subclasses? 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.
I appreciate the time you have spent in your thoughtful replies, and
hope that this discussion can help others who are implementing systems
like the NBN (national broadband network) system in Australia, where
people are identified by agent.circuit-id.
--
Nick Urbanik http://nicku.org nicku at nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
More information about the dhcp-users
mailing list