Different hardware options based on subnet
Ricardo Stella
stella at rider.edu
Thu Aug 20 16:30:07 UTC 2020
Not a newby but definitely beginner in terms of experience here.
In our dhcpd.conf file we have a class set up to identify IP phones and we
assign the server they need to connect to:
class "i2004-clients" {
match if substring (option vendor-class-identifier, 0, 14) =
"Nortel-i2004-A";
option nortel-specific-info =
"Nortel-i2004-A,10.1.0.10:4100,1,15;10.1.0.10:4100,1,15.";
option vendor-class-identifier "Nortel-i2004-A";
}
In a subnet, I have the following, which works perfectly fine.
subnet 10.10.0.0 netmask 255.255.0.0 {
authoritative;
option routers 10.10.0.1;
one-lease-per-client true;
pool {
allow members of "i2004-clients";
range 10.10.250.50 10.10.250.249;
max-lease-time 43200;
default-lease-time 43200;
}
There's other pools as well, and we have several other vlans like the above
and all IP phones get the default configuration.
But I need to assign some phones to a different controller - that is I need
to assign those that land in this specific vlan with the following:
option nortel-specific-info =
"Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15.";
I tried creating a different class, but because hardware is the same, they
fall under the first defined one. I tried adding the above inside the pool
section but they still get the globally defined one. Am I missing
something? Or would I need to assign the class or the above lines to every
vlan and take it out of the global config?
Thanks in advance - Ricardo.
--
°(((=((===°°°(((================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200820/8b73dd5e/attachment.htm>
More information about the dhcp-users
mailing list