Linux DHCP sending wrong parameters in offer packet

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

Linux DHCP sending wrong parameters in offer packet

Gaikwad Yogesh

Hi,

 

There is issue that linux DHCP is sending wrong parameters while sending offer packet for Cisco AP’s in one of our office locations.

 

I have taken packet captures on the DHCP server side.

 

As you can see in below packet capture there is DHCP DISCOVER message from Cisco AP requesting for IP and other parameters.

 

Then in DHCP offer packet, it offers IP from correct subnet, but with wrong router IP, subnet mask and broadcast address.

 

Basically, my observation is that it is giving wrong parameters in offer from the topmost subnet (as linux works from top to bottom approach) that has cisco option 43 configured. If I remove the Cisco option 43 from that subnet then it provides parameters from next subnet which has the Cisco option 43 in it.

 

The correct subnet from which I am expecting that the AP should get all its parameters is configured at the end of the DHCP conf file.

 

 

DHCP DISCOVER PACKET

 

 

 

DHCP OFFER PACKET

 

 

 

 

 

Best regards,

 

Yogesh Gaikwad, Technical Architect - TECA Network

 

Tieto Corporation, TSM

 

email [hidden email], direct +91 (0)2067303120

Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune - 411 014, India

 

Tieto_logo_for_email_signature_127x50

 

Please note: The information contained in this message may be legally privileged, confidential and protected from disclosure. If you received this in error, please notify the sender immediately and delete the message from your computer. Thank you.

 


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

Re: Linux DHCP sending wrong parameters in offer packet

glenn.satchell
Hi Yogesh,

Without seeing hyour config file I can guess that the option 43 setting
should be set in the global configuration rather than inside one of your
subnets. Setting it inside the subnet causes inheritance of those subnet
values.

To confirm, could you please post your dhcpd.conf? If it is is very large
perhaps you might post the relevant parts.

regards,
-glenn
--
Glenn Satchell    mailto:[hidden email]  |  Today is the past
Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
Mobile 0409 458 580                                  |  the future will
Member IT Professionals Association www.itpa.org.au  |  dream about.

On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:

> Hi,
>
>
> There is issue that linux DHCP is sending wrong parameters while sending
> offer packet for Cisco AP's in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in offer
> from the topmost subnet (as linux works from top to bottom approach) that
> has cisco option 43 configured. If I remove the Cisco option 43 from that
> subnet then it provides parameters from next subnet which has the Cisco
> option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get all
> its parameters is configured at the end of the DHCP conf file.
>
>
> DHCP DISCOVER PACKET
>
>
> [cid:image001.png@01D4B4D9.6F320900]
>
>
>
> DHCP OFFER PACKET
>
>
> [cid:image002.png@01D4B4D9.6F320900]
>
>
>
>
>
> Best regards,
>
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
>
> Tieto Corporation, TSM
>
>
> email [hidden email]<mailto:[hidden email]>, direct
> +91 (0)2067303120
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune - 411
> 014, India
>
>
> [Tieto_logo_for_email_signature_127x50]<http://www.tieto.com/>
>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you received
> this in error, please notify the sender immediately and delete the
> message from your computer. Thank you.
>
> _______________________________________________
> dhcp-users mailing list [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>




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

RE: Linux DHCP sending wrong parameters in offer packet

Gaikwad Yogesh
Hi Glenn,

I followed Cisco documentation on below link to configure the option 43 for Cisco AP's:

https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html


There are two parts to this config, one is in the global config, and other part sits inside the subnet.

Below lines are in the global configuration

# CISCO OPTION 43
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;


And then below is the subnet configuration

subnet 10.56.20.0 netmask 255.255.255.0 {
   option routers 10.56.20.1;
   option subnet-mask 255.255.255.0;
   option broadcast-address 10.56.20.255;
   default-lease-time 43200;

class "Cisco AP c3800" {

   match if option vendor-class-identifier = "Cisco AP c3800";
   option vendor-class-identifier "Cisco AP c3800";
   vendor-option-space Cisco_LWAPP_AP;
   option Cisco_LWAPP_AP.server-address 10.140.1.1; }

   pool {
      failover peer "te-failover";
      deny dynamic bootp clients;
      range 10.56.20.10 10.56.20.250;
   }
}



We have several such subnets configured which have this 'class "Cisco AP c3800"' configuration inside the subnets, the above mentioned subnet sits at the end of the dhcpd.conf file.

I understood your concern to have it configured globally, but then what if I want to have a different 'Cisco_LWAPP_AP.server-address' for different subnets?



Best regards,

Yogesh Gaikwad, Technical Architect - TECA Network

Tieto Corporation, TSM

-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Glenn Satchell
Sent: Friday, January 25, 2019 7:45 PM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Linux DHCP sending wrong parameters in offer packet

Hi Yogesh,

Without seeing hyour config file I can guess that the option 43 setting should be set in the global configuration rather than inside one of your subnets. Setting it inside the subnet causes inheritance of those subnet values.

To confirm, could you please post your dhcpd.conf? If it is is very large perhaps you might post the relevant parts.

regards,
-glenn
--
Glenn Satchell    mailto:[hidden email]  |  Today is the past
Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
Mobile 0409 458 580                                  |  the future will
Member IT Professionals Association www.itpa.org.au  |  dream about.

On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:

> Hi,
>
>
> There is issue that linux DHCP is sending wrong parameters while
> sending offer packet for Cisco AP's in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in
> offer from the topmost subnet (as linux works from top to bottom
> approach) that has cisco option 43 configured. If I remove the Cisco
> option 43 from that subnet then it provides parameters from next
> subnet which has the Cisco option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get
> all its parameters is configured at the end of the DHCP conf file.
>
>
> DHCP DISCOVER PACKET
>
>
> [cid:image001.png@01D4B4D9.6F320900]
>
>
>
> DHCP OFFER PACKET
>
>
> [cid:image002.png@01D4B4D9.6F320900]
>
>
>
>
>
> Best regards,
>
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
>
> Tieto Corporation, TSM
>
>
> email [hidden email]<mailto:[hidden email]>,
> direct
> +91 (0)2067303120
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune -
> 411 014, India
>
>
> [Tieto_logo_for_email_signature_127x50]<http://www.tieto.com/>
>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you
> received this in error, please notify the sender immediately and
> delete the message from your computer. Thank you.
>
> _______________________________________________
> dhcp-users mailing list [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>




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

Re: Linux DHCP sending wrong parameters in offer packet

Anderson, Charles R
Put this in each subnet:

   option Cisco_LWAPP_AP.server-address 10.140.1.1;

But keep the class itself (with enclosed match, vendor-option-space, etc.) global.

On Fri, Jan 25, 2019 at 02:43:48PM +0000, Gaikwad Yogesh wrote:

> Hi Glenn,
>
> I followed Cisco documentation on below link to configure the option 43 for Cisco AP's:
>
> https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html
>
>
> There are two parts to this config, one is in the global config, and other part sits inside the subnet.
>
> Below lines are in the global configuration
>
> # CISCO OPTION 43
> option space Cisco_LWAPP_AP;
> option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;
>
>
> And then below is the subnet configuration
>
> subnet 10.56.20.0 netmask 255.255.255.0 {
>    option routers 10.56.20.1;
>    option subnet-mask 255.255.255.0;
>    option broadcast-address 10.56.20.255;
>    default-lease-time 43200;
>
> class "Cisco AP c3800" {
>
>    match if option vendor-class-identifier = "Cisco AP c3800";
>    option vendor-class-identifier "Cisco AP c3800";
>    vendor-option-space Cisco_LWAPP_AP;
>    option Cisco_LWAPP_AP.server-address 10.140.1.1; }
>
>    pool {
>       failover peer "te-failover";
>       deny dynamic bootp clients;
>       range 10.56.20.10 10.56.20.250;
>    }
> }
>
>
>
> We have several such subnets configured which have this 'class "Cisco AP c3800"' configuration inside the subnets, the above mentioned subnet sits at the end of the dhcpd.conf file.
>
> I understood your concern to have it configured globally, but then what if I want to have a different 'Cisco_LWAPP_AP.server-address' for different subnets?
>
>
>
> Best regards,
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
> Tieto Corporation, TSM
>
> -----Original Message-----
> From: dhcp-users [mailto:[hidden email]] On Behalf Of Glenn Satchell
> Sent: Friday, January 25, 2019 7:45 PM
> To: Users of ISC DHCP <[hidden email]>
> Subject: Re: Linux DHCP sending wrong parameters in offer packet
>
> Hi Yogesh,
>
> Without seeing hyour config file I can guess that the option 43 setting should be set in the global configuration rather than inside one of your subnets. Setting it inside the subnet causes inheritance of those subnet values.
>
> To confirm, could you please post your dhcpd.conf? If it is is very large perhaps you might post the relevant parts.
>
> regards,
> -glenn
> --
> Glenn Satchell    mailto:[hidden email]  |  Today is the past
> Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
> Mobile 0409 458 580                                  |  the future will
> Member IT Professionals Association www.itpa.org.au  |  dream about.
>
> On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:
> > Hi,
> >
> >
> > There is issue that linux DHCP is sending wrong parameters while
> > sending offer packet for Cisco AP's in one of our office locations.
> >
> > I have taken packet captures on the DHCP server side.
> >
> >
> > As you can see in below packet capture there is DHCP DISCOVER message
> > from Cisco AP requesting for IP and other parameters.
> >
> > Then in DHCP offer packet, it offers IP from correct subnet, but with
> > wrong router IP, subnet mask and broadcast address.
> >
> > Basically, my observation is that it is giving wrong parameters in
> > offer from the topmost subnet (as linux works from top to bottom
> > approach) that has cisco option 43 configured. If I remove the Cisco
> > option 43 from that subnet then it provides parameters from next
> > subnet which has the Cisco option 43 in it.
> >
> > The correct subnet from which I am expecting that the AP should get
> > all its parameters is configured at the end of the DHCP conf file.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Linux DHCP sending wrong parameters in offer packet

Rudy Zijlstra
In reply to this post by Gaikwad Yogesh
Hi

Without an (anomymised) version of your config file not much usefull can
be said...

Cheers

Rudy

On 25.01.19 13:41, Gaikwad Yogesh wrote:

>
> Hi,
>
> There is issue that linux DHCP is sending wrong parameters while
> sending offer packet for Cisco AP’s in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in
> offer from the topmost subnet (as linux works from top to bottom
> approach) that has cisco option 43 configured. If I remove the Cisco
> option 43 from that subnet then it provides parameters from next
> subnet which has the Cisco option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get
> all its parameters is configured at the end of the DHCP conf file.
>
> *DHCP DISCOVER PACKET*
>
> **
>
> *DHCP OFFER PACKET*
>
> Best regards,
>
> *Yogesh Gaikwad*, Technical Architect - TECA Network
>
> *Tieto Corporation, TSM*
>
> email [hidden email] <mailto:[hidden email]>,
> direct +91 (0)2067303120
>
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune -
> 411 014, India
>
> Tieto_logo_for_email_signature_127x50 <http://www.tieto.com/>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you
> received this in error, please notify the sender immediately and
> delete the message from your computer. Thank you.
>
>
> _______________________________________________
> dhcp-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users

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

Re: Linux DHCP sending wrong parameters in offer packet

perl-list
In reply to this post by Gaikwad Yogesh
Class should be global, I believe.  That is my understanding anyway.  You shouldn't have them inside of a subnet {} or shared-network {} statement.  The limiting occurs with the match if statement.  That is my understanding anyways.


From: "Gaikwad Yogesh" <[hidden email]>
To: "Users of ISC DHCP" <[hidden email]>
Sent: Friday, January 25, 2019 9:43:48 AM
Subject: RE: Linux DHCP sending wrong parameters in offer packet
Hi Glenn,

I followed Cisco documentation on below link to configure the option 43 for Cisco AP's:

https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html


There are two parts to this config, one is in the global config, and other part sits inside the subnet.

Below lines are in the global configuration

# CISCO OPTION 43
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;


And then below is the subnet configuration

subnet 10.56.20.0 netmask 255.255.255.0 {
   option routers 10.56.20.1;
   option subnet-mask 255.255.255.0;
   option broadcast-address 10.56.20.255;
   default-lease-time 43200;

class "Cisco AP c3800" {

   match if option vendor-class-identifier = "Cisco AP c3800";
   option vendor-class-identifier "Cisco AP c3800";
   vendor-option-space Cisco_LWAPP_AP;
   option Cisco_LWAPP_AP.server-address 10.140.1.1; }

   pool {
      failover peer "te-failover";
      deny dynamic bootp clients;
      range 10.56.20.10 10.56.20.250;
   }
}



We have several such subnets configured which have this 'class "Cisco AP c3800"' configuration inside the subnets, the above mentioned subnet sits at the end of the dhcpd.conf file.

I understood your concern to have it configured globally, but then what if I want to have a different 'Cisco_LWAPP_AP.server-address' for different subnets?



Best regards,

Yogesh Gaikwad, Technical Architect - TECA Network

Tieto Corporation, TSM

-----Original Message-----
From: dhcp-users [mailto:[hidden email]] On Behalf Of Glenn Satchell
Sent: Friday, January 25, 2019 7:45 PM
To: Users of ISC DHCP <[hidden email]>
Subject: Re: Linux DHCP sending wrong parameters in offer packet

Hi Yogesh,

Without seeing hyour config file I can guess that the option 43 setting should be set in the global configuration rather than inside one of your subnets. Setting it inside the subnet causes inheritance of those subnet values.

To confirm, could you please post your dhcpd.conf? If it is is very large perhaps you might post the relevant parts.

regards,
-glenn
--
Glenn Satchell    mailto:[hidden email]  |  Today is the past
Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
Mobile 0409 458 580                                  |  the future will
Member IT Professionals Association www.itpa.org.au  |  dream about.

On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:

> Hi,
>
>
> There is issue that linux DHCP is sending wrong parameters while
> sending offer packet for Cisco AP's in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in
> offer from the topmost subnet (as linux works from top to bottom
> approach) that has cisco option 43 configured. If I remove the Cisco
> option 43 from that subnet then it provides parameters from next
> subnet which has the Cisco option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get
> all its parameters is configured at the end of the DHCP conf file.
>
>
> DHCP DISCOVER PACKET
>
>
> [cid:image001.png@01D4B4D9.6F320900]
>
>
>
> DHCP OFFER PACKET
>
>
> [cid:image002.png@01D4B4D9.6F320900]
>
>
>
>
>
> Best regards,
>
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
>
> Tieto Corporation, TSM
>
>
> email [hidden email]<mailto:[hidden email]>,
> direct
> +91 (0)2067303120
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune -
> 411 014, India
>
>
> [Tieto_logo_for_email_signature_127x50]<http://www.tieto.com/>
>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you
> received this in error, please notify the sender immediately and
> delete the message from your computer. Thank you.
>
> _______________________________________________
> dhcp-users mailing list [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>




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


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

Re: Linux DHCP sending wrong parameters in offer packet

Thomas Markwalder
Hello

As others have pointed out, classes must only be defined globally.  Defining them within subnets or networks is not supported and it can have odd effects on statement execution/option values.  The configuration parser currently does not complain when you do this but it probably should.  We will very likely add at least a warning if not an error for this.

Regards,

Thomas Markwalder,
ISC Software Engineering

On 1/25/19 11:29 AM, perl-list wrote:
Class should be global, I believe.  That is my understanding anyway.  You shouldn't have them inside of a subnet {} or shared-network {} statement.  The limiting occurs with the match if statement.  That is my understanding anyways.


From: "Gaikwad Yogesh" [hidden email]
To: "Users of ISC DHCP" [hidden email]
Sent: Friday, January 25, 2019 9:43:48 AM
Subject: RE: Linux DHCP sending wrong parameters in offer packet
Hi Glenn,

I followed Cisco documentation on below link to configure the option 43 for Cisco AP's:

https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html


There are two parts to this config, one is in the global config, and other part sits inside the subnet.

Below lines are in the global configuration

# CISCO OPTION 43
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;


And then below is the subnet configuration

subnet 10.56.20.0 netmask 255.255.255.0 {
   option routers 10.56.20.1;
   option subnet-mask 255.255.255.0;
   option broadcast-address 10.56.20.255;
   default-lease-time 43200;

class "Cisco AP c3800" {

   match if option vendor-class-identifier = "Cisco AP c3800";
   option vendor-class-identifier "Cisco AP c3800";
   vendor-option-space Cisco_LWAPP_AP;
   option Cisco_LWAPP_AP.server-address 10.140.1.1; }

   pool {
      failover peer "te-failover";
      deny dynamic bootp clients;
      range 10.56.20.10 10.56.20.250;
   }
}



We have several such subnets configured which have this 'class "Cisco AP c3800"' configuration inside the subnets, the above mentioned subnet sits at the end of the dhcpd.conf file.

I understood your concern to have it configured globally, but then what if I want to have a different 'Cisco_LWAPP_AP.server-address' for different subnets?



Best regards,

Yogesh Gaikwad, Technical Architect - TECA Network

Tieto Corporation, TSM

-----Original Message-----
From: dhcp-users [[hidden email]] On Behalf Of Glenn Satchell
Sent: Friday, January 25, 2019 7:45 PM
To: Users of ISC DHCP [hidden email]
Subject: Re: Linux DHCP sending wrong parameters in offer packet

Hi Yogesh,

Without seeing hyour config file I can guess that the option 43 setting should be set in the global configuration rather than inside one of your subnets. Setting it inside the subnet causes inheritance of those subnet values.

To confirm, could you please post your dhcpd.conf? If it is is very large perhaps you might post the relevant parts.

regards,
-glenn
--
Glenn Satchell    [hidden email]  |  Today is the past
Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
Mobile 0409 458 580                                  |  the future will
Member IT Professionals Association www.itpa.org.au  |  dream about.

On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:
> Hi,
>
>
> There is issue that linux DHCP is sending wrong parameters while
> sending offer packet for Cisco AP's in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in
> offer from the topmost subnet (as linux works from top to bottom
> approach) that has cisco option 43 configured. If I remove the Cisco
> option 43 from that subnet then it provides parameters from next
> subnet which has the Cisco option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get
> all its parameters is configured at the end of the DHCP conf file.
>
>
> DHCP DISCOVER PACKET
>
>
> [<a class="moz-txt-link-freetext" href="cid:image001.png@01D4B4D9.6F320900">cid:image001.png@01D4B4D9.6F320900]
>
>
>
> DHCP OFFER PACKET
>
>
> [<a class="moz-txt-link-freetext" href="cid:image002.png@01D4B4D9.6F320900">cid:image002.png@01D4B4D9.6F320900]
>
>
>
>
>
> Best regards,
>
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
>
> Tieto Corporation, TSM
>
>
> email [hidden email][hidden email],
> direct
> +91 (0)2067303120
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune -
> 411 014, India
>
>
> [Tieto_logo_for_email_signature_127x50]<http://www.tieto.com/>
>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you
> received this in error, please notify the sender immediately and
> delete the message from your computer. Thank you.
>
> _______________________________________________
> dhcp-users mailing list [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>




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


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


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

Re: Linux DHCP sending wrong parameters in offer packet

Sten Carlsen
I take it that classes work like host declarations that inherit parameters from where they are defined and that can be very incorrect in a given situation?

On 25/01/2019 17.37, Thomas Markwalder wrote:
Hello

As others have pointed out, classes must only be defined globally.  Defining them within subnets or networks is not supported and it can have odd effects on statement execution/option values.  The configuration parser currently does not complain when you do this but it probably should.  We will very likely add at least a warning if not an error for this.

Regards,

Thomas Markwalder,
ISC Software Engineering

On 1/25/19 11:29 AM, perl-list wrote:
Class should be global, I believe.  That is my understanding anyway.  You shouldn't have them inside of a subnet {} or shared-network {} statement.  The limiting occurs with the match if statement.  That is my understanding anyways.


From: "Gaikwad Yogesh" [hidden email]
To: "Users of ISC DHCP" [hidden email]
Sent: Friday, January 25, 2019 9:43:48 AM
Subject: RE: Linux DHCP sending wrong parameters in offer packet
Hi Glenn,

I followed Cisco documentation on below link to configure the option 43 for Cisco AP's:

https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html


There are two parts to this config, one is in the global config, and other part sits inside the subnet.

Below lines are in the global configuration

# CISCO OPTION 43
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;


And then below is the subnet configuration

subnet 10.56.20.0 netmask 255.255.255.0 {
   option routers 10.56.20.1;
   option subnet-mask 255.255.255.0;
   option broadcast-address 10.56.20.255;
   default-lease-time 43200;

class "Cisco AP c3800" {

   match if option vendor-class-identifier = "Cisco AP c3800";
   option vendor-class-identifier "Cisco AP c3800";
   vendor-option-space Cisco_LWAPP_AP;
   option Cisco_LWAPP_AP.server-address 10.140.1.1; }

   pool {
      failover peer "te-failover";
      deny dynamic bootp clients;
      range 10.56.20.10 10.56.20.250;
   }
}



We have several such subnets configured which have this 'class "Cisco AP c3800"' configuration inside the subnets, the above mentioned subnet sits at the end of the dhcpd.conf file.

I understood your concern to have it configured globally, but then what if I want to have a different 'Cisco_LWAPP_AP.server-address' for different subnets?



Best regards,

Yogesh Gaikwad, Technical Architect - TECA Network

Tieto Corporation, TSM

-----Original Message-----
From: dhcp-users [[hidden email]] On Behalf Of Glenn Satchell
Sent: Friday, January 25, 2019 7:45 PM
To: Users of ISC DHCP [hidden email]
Subject: Re: Linux DHCP sending wrong parameters in offer packet

Hi Yogesh,

Without seeing hyour config file I can guess that the option 43 setting should be set in the global configuration rather than inside one of your subnets. Setting it inside the subnet causes inheritance of those subnet values.

To confirm, could you please post your dhcpd.conf? If it is is very large perhaps you might post the relevant parts.

regards,
-glenn
--
Glenn Satchell    [hidden email]  |  Today is the past
Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
Mobile 0409 458 580                                  |  the future will
Member IT Professionals Association www.itpa.org.au  |  dream about.

On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:
> Hi,
>
>
> There is issue that linux DHCP is sending wrong parameters while
> sending offer packet for Cisco AP's in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in
> offer from the topmost subnet (as linux works from top to bottom
> approach) that has cisco option 43 configured. If I remove the Cisco
> option 43 from that subnet then it provides parameters from next
> subnet which has the Cisco option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get
> all its parameters is configured at the end of the DHCP conf file.
>
>
> DHCP DISCOVER PACKET
>
>
> [<a class="moz-txt-link-freetext" href="cid:image001.png@01D4B4D9.6F320900" moz-do-not-send="true">cid:image001.png@01D4B4D9.6F320900]
>
>
>
> DHCP OFFER PACKET
>
>
> [<a class="moz-txt-link-freetext" href="cid:image002.png@01D4B4D9.6F320900" moz-do-not-send="true">cid:image002.png@01D4B4D9.6F320900]
>
>
>
>
>
> Best regards,
>
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
>
> Tieto Corporation, TSM
>
>
> email [hidden email][hidden email],
> direct
> +91 (0)2067303120
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune -
> 411 014, India
>
>
> [Tieto_logo_for_email_signature_127x50]<http://www.tieto.com/>
>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you
> received this in error, please notify the sender immediately and
> delete the message from your computer. Thank you.
>
> _______________________________________________
> dhcp-users mailing list [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>




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


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


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


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

RE: Linux DHCP sending wrong parameters in offer packet

Gaikwad Yogesh

Hi Guys,

 

Finally, the issue is resolved after I defined the class globally as you all suggested. Below is the conf that I added globally:

 

class "Cisco AP c3800" {

 

   match if option vendor-class-identifier = "Cisco AP c3800";

   option vendor-class-identifier "Cisco AP c3800";

   vendor-option-space Cisco_LWAPP_AP;

}

 

Then I added the option in specific subnets:

 

   option Cisco_LWAPP_AP.server-address xx.xx.xx.xx;

 

 

But as Thomas mentioned there should be some kind of warning thrown if classes are configured within subnets, when we do a configtest.

 

Thank you all for your help.

 

 

 

Best regards,

 

Yogesh Gaikwad, Technical Architect - TECA Network

 

Tieto Corporation, TSM

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of Sten Carlsen
Sent: Saturday, January 26, 2019 1:10 AM
To: [hidden email]
Subject: Re: Linux DHCP sending wrong parameters in offer packet

 

I take it that classes work like host declarations that inherit parameters from where they are defined and that can be very incorrect in a given situation?

On 25/01/2019 17.37, Thomas Markwalder wrote:

Hello

As others have pointed out, classes must only be defined globally.  Defining them within subnets or networks is not supported and it can have odd effects on statement execution/option values.  The configuration parser currently does not complain when you do this but it probably should.  We will very likely add at least a warning if not an error for this.

Regards,

Thomas Markwalder,
ISC Software Engineering

On 1/25/19 11:29 AM, perl-list wrote:

Class should be global, I believe.  That is my understanding anyway.  You shouldn't have them inside of a subnet {} or shared-network {} statement.  The limiting occurs with the match if statement.  That is my understanding anyways.


From: "Gaikwad Yogesh" [hidden email]
To: "Users of ISC DHCP" [hidden email]
Sent: Friday, January 25, 2019 9:43:48 AM
Subject: RE: Linux DHCP sending wrong parameters in offer packet

Hi Glenn,

I followed Cisco documentation on below link to configure the option 43 for Cisco AP's:

https://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html


There are two parts to this config, one is in the global config, and other part sits inside the subnet.

Below lines are in the global configuration

# CISCO OPTION 43
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;


And then below is the subnet configuration

subnet 10.56.20.0 netmask 255.255.255.0 {
   option routers 10.56.20.1;
   option subnet-mask 255.255.255.0;
   option broadcast-address 10.56.20.255;
   default-lease-time 43200;

class "Cisco AP c3800" {

   match if option vendor-class-identifier = "Cisco AP c3800";
   option vendor-class-identifier "Cisco AP c3800";
   vendor-option-space Cisco_LWAPP_AP;
   option Cisco_LWAPP_AP.server-address 10.140.1.1; }

   pool {
      failover peer "te-failover";
      deny dynamic bootp clients;
      range 10.56.20.10 10.56.20.250;
   }
}



We have several such subnets configured which have this 'class "Cisco AP c3800"' configuration inside the subnets, the above mentioned subnet sits at the end of the dhcpd.conf file.

I understood your concern to have it configured globally, but then what if I want to have a different 'Cisco_LWAPP_AP.server-address' for different subnets?



Best regards,

Yogesh Gaikwad, Technical Architect - TECA Network

Tieto Corporation, TSM

-----Original Message-----
From: dhcp-users [[hidden email]] On Behalf Of Glenn Satchell
Sent: Friday, January 25, 2019 7:45 PM
To: Users of ISC DHCP [hidden email]
Subject: Re: Linux DHCP sending wrong parameters in offer packet

Hi Yogesh,

Without seeing hyour config file I can guess that the option 43 setting should be set in the global configuration rather than inside one of your subnets. Setting it inside the subnet causes inheritance of those subnet values.

To confirm, could you please post your dhcpd.conf? If it is is very large perhaps you might post the relevant parts.

regards,
-glenn
--
Glenn Satchell    [hidden email]  |  Today is the past
Uniq Advances Pty Ltd        http://www.uniq.com.au  |  that people in
Mobile 0409 458 580                                  |  the future will
Member IT Professionals Association www.itpa.org.au  |  dream about.

On Fri, January 25, 2019 11:41 pm, Gaikwad Yogesh wrote:
> Hi,
>
>
> There is issue that linux DHCP is sending wrong parameters while
> sending offer packet for Cisco AP's in one of our office locations.
>
> I have taken packet captures on the DHCP server side.
>
>
> As you can see in below packet capture there is DHCP DISCOVER message
> from Cisco AP requesting for IP and other parameters.
>
> Then in DHCP offer packet, it offers IP from correct subnet, but with
> wrong router IP, subnet mask and broadcast address.
>
> Basically, my observation is that it is giving wrong parameters in
> offer from the topmost subnet (as linux works from top to bottom
> approach) that has cisco option 43 configured. If I remove the Cisco
> option 43 from that subnet then it provides parameters from next
> subnet which has the Cisco option 43 in it.
>
> The correct subnet from which I am expecting that the AP should get
> all its parameters is configured at the end of the DHCP conf file.
>
>
> DHCP DISCOVER PACKET
>
>
> [<a href="cid:image001.png@01D4B4D9.6F320900">cid:image001.png@01D4B4D9.6F320900]
>
>
>
> DHCP OFFER PACKET
>
>
> [<a href="cid:image002.png@01D4B4D9.6F320900">cid:image002.png@01D4B4D9.6F320900]
>
>
>
>
>
> Best regards,
>
>
> Yogesh Gaikwad, Technical Architect - TECA Network
>
>
> Tieto Corporation, TSM
>
>
> email [hidden email][hidden email],
> direct
> +91 (0)2067303120
> Wing 1, Cluster D, EON Free Zone, MIDC Kharadi Knowledge Park, Pune -
> 411 014, India
>
>
> [Tieto_logo_for_email_signature_127x50]<http://www.tieto.com/>
>
>
> Please note: The information contained in this message may be legally
> privileged, confidential and protected from disclosure. If you
> received this in error, please notify the sender immediately and
> delete the message from your computer. Thank you.
>
> _______________________________________________
> dhcp-users mailing list [hidden email]
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>




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

 



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




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

 


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