group and agent.circuit-id

Nick Urbanik nicku at nicku.org
Sat Dec 3 05:59:30 UTC 2016


Dear Folks,

I would like to provide a different
option domain-name-servers ....;
to DHCP clients with particular agent.circuit-id values.

What is the most appropriate way to do that?

I could do something like this:

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?

Or can I use group and specify membership of that group somehow if the
agent.circuit-id has one of a particular set of values?

The context here is the Australian NBN, and the agent.circuit-id is
the AVC identifier used to identify the particular subscriber.
-- 
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