Different hardware options based on subnet

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Different hardware options based on subnet

Ricardo Stella

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.


--
°(((=((===°°°(((================================================

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Different hardware options based on subnet

Bill Shirley-2

How do you decide which phones you want on:?

          option nortel-specific-info =
          "Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15.";

Are they on a different subnet?

Bill

On 8/20/2020 12:30 PM, Ricardo Stella wrote:

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.


--
°(((=((===°°°(((================================================

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Different hardware options based on subnet

Ricardo Stella

Yes. In our case, one particular subnet needs a different config. All others the current one.

TIA

On Thu, Aug 20, 2020 at 4:17 PM Bill Shirley <[hidden email]> wrote:

How do you decide which phones you want on:?

          option nortel-specific-info =
          "Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15.";

Are they on a different subnet?

Bill

On 8/20/2020 12:30 PM, Ricardo Stella wrote:

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.


--
°(((=((===°°°(((================================================

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


--
°(((=((===°°°(((================================================

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Different hardware options based on subnet

Ricardo Stella

Is the problem that the definition in the global section of the config trumps whatever is defined inside a subnet? 

On Thu, Aug 20, 2020 at 4:23 PM Ricardo Stella <[hidden email]> wrote:

Yes. In our case, one particular subnet needs a different config. All others the current one.

TIA

On Thu, Aug 20, 2020 at 4:17 PM Bill Shirley <[hidden email]> wrote:

How do you decide which phones you want on:?

          option nortel-specific-info =
          "Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15.";

Are they on a different subnet?

Bill

On 8/20/2020 12:30 PM, Ricardo Stella wrote:

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.


--
°(((=((===°°°(((================================================

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


--
°(((=((===°°°(((================================================


--
°(((=((===°°°(((================================================

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Different hardware options based on subnet

Simon Hobson
Ricardo Stella <[hidden email]> wrote:

> Is the problem that the definition in the global section of the config trumps whatever is defined inside a subnet?

Normally, definitions in a lower scope (e.g. in a subnet) override options made at a higher level (e.g. at the global level). So (for example) you can set your DNS servers globally and override them for specific subnets or pools.

However, class definitions and host definitions are always global even if declared within a lower scope. This is one that can catch people out.
As classes are "special" in this respect, I could imagine there being similar oddities with option inheritance in cases like yours. But I don't recall this particular setup being asked before, and I'm not familiar with implementation details - I guess if you can read code (I assume it's in C) then you could spend the time (possibly a lot of it) working out how this particular scenario works.

Simon

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Different hardware options based on subnet

glenn.satchell
Hi Ricardo,

How about omitting the allow class option in the specific pool, and add
all the required info? eg something like this?

pool {
   # allow members of "i2004-clients";
   range ... ;
   option nortel-specific-info =
"Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15.";
]

regards,
-glenn

On 2020-09-03 23:41, Simon Hobson wrote:

> Ricardo Stella <[hidden email]> wrote:
>
>> Is the problem that the definition in the global section of the config
>> trumps whatever is defined inside a subnet?
>
> Normally, definitions in a lower scope (e.g. in a subnet) override
> options made at a higher level (e.g. at the global level). So (for
> example) you can set your DNS servers globally and override them for
> specific subnets or pools.
>
> However, class definitions and host definitions are always global even
> if declared within a lower scope. This is one that can catch people
> out.
> As classes are "special" in this respect, I could imagine there being
> similar oddities with option inheritance in cases like yours. But I
> don't recall this particular setup being asked before, and I'm not
> familiar with implementation details - I guess if you can read code (I
> assume it's in C) then you could spend the time (possibly a lot of it)
> working out how this particular scenario works.
>
> Simon
>
> _______________________________________________
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
> dhcp-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users