Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. can dhcpd keep working when encountering a syntax error (Pat Dery) 2. Re: can dhcpd keep working when encountering a syntax error (Philippe Maechler) 3. Re: can dhcpd keep working when encountering a syntax error (Bruce Hudson) 4. Re: Different hardware options based on subnet (Ricardo Stella) ---------------------------------------------------------------------- Message: 1 Date: Wed, 2 Sep 2020 10:24:48 -0500 (CDT) From: Pat Dery <patrick.for...@derytelecom.ca> To: dhcp-users@lists.isc.org Subject: can dhcpd keep working when encountering a syntax error Message-ID: <1599060288249-0.p...@n4.nabble.com> Content-Type: text/plain; charset=us-ascii Hi is it possible to configure dhcpd to keep working when the dhcpd.conf contains a syntax error for example if someone enters the mac address : aa:bb:cc:dd:ee:gg by mistake at reload the whole service stops and can't restart until someone corrects the error we would like it if it would continue serving ip and reporting the error in the log file maybe a major warning in the log instead of stopping , something like that thanks -- Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/ ------------------------------ Message: 2 Date: Wed, 2 Sep 2020 19:02:41 +0200 From: Philippe Maechler <plcmaech...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: can dhcpd keep working when encountering a syntax error Message-ID: <caphukgabbkxo1ru6pnbuswrjcdmg777auupkvfnfyhn9kkx...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" we use the -t option (syntax check) to check if the conf file looks ok and if so, then we restart the service. if the syntax is not ok, we report the error by mail the downside to this is, that the daemon reports the copyright notice and an unexpirienced worker tought, that there is a problem because the service was so often restarted. we did adjust the logging and now everything works fine hth philippe Pat Dery <patrick.for...@derytelecom.ca> schrieb am Mi., 2. Sept. 2020, 17:25: > Hi > > is it possible to configure dhcpd to keep working when the dhcpd.conf > contains a syntax error > > for example if someone enters the mac address : aa:bb:cc:dd:ee:gg by > mistake > > at reload the whole service stops and can't restart until someone corrects > the error > > we would like it if it would continue serving ip and reporting the error in > the log file > > maybe a major warning in the log instead of stopping , something like that > > thanks > > > > -- > Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/ > _______________________________________________ > 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 > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200902/e451885e/attachment-0001.htm> ------------------------------ Message: 3 Date: Wed, 2 Sep 2020 17:15:24 -0300 From: Bruce Hudson <bruce.hud...@dal.ca> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: can dhcpd keep working when encountering a syntax error Message-ID: <20200902201524.ga31...@kil-bah-1.its.dal.ca> Content-Type: text/plain; charset=us-ascii On Wed, Sep 02, 2020 at 10:24:48AM -0500, Pat Dery wrote: > is it possible to configure dhcpd to keep working when the dhcpd.conf > contains a syntax error The usual way to do this would be to create a script for restarting the DHCP server. Then, before restarting the server, use the "-t" option to test the configuration file. If the test fails, exit and leave the old version running. -- Bruce A. Hudson | bruce.hud...@dal.ca ITS, Networks and Systems | Dalhousie University | Halifax, Nova Scotia, Canada | (902) 494-3405 ------------------------------ Message: 4 Date: Wed, 2 Sep 2020 17:18:48 -0400 From: Ricardo Stella <ste...@rider.edu> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Different hardware options based on subnet Message-ID: <caehoxgu-wkvs3qearzzzdo9zv9wgjybyr8mgv_yakzc8rvg...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" 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 <ste...@rider.edu> 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 < > b...@c3po.polymerindustries.biz> 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 >> listdhcp-us...@lists.isc.orghttps://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 >> dhcp-users@lists.isc.org >> https://lists.isc.org/mailman/listinfo/dhcp-users >> > > > -- > ?(((=((===???(((================================================ > -- ?(((=((===???(((================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200902/b707ec16/attachment-0001.htm> ------------------------------ Subject: Digest Footer _______________________________________________ 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 dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 143, Issue 1 ******************************************